<!--

//Copyright Mangolab Ltd. 2008. All rights reserved.
//SUMMARY:
// Used by fm_pcarr.htm to populate the bag sizes from the standard-size dropdown
//HISTORY:
// 23.10.08 Version 1.0 - <FC> - Reviewd / FB ref: CASE:1496

var StrSize;

function PopulateFrom_ignore_this_value(){
var FrmInput=document.forms[0];
StrSize=FrmInput.ignore_this_value.options[FrmInput.ignore_this_value.selectedIndex].text;
FrmInput.UVWIDTH.value=RemoveTextFromStrSize(" x ");
FrmInput.UVLENGTH.value=RemoveTextFromStrSize(" + ");
if (FrmInput.ignore_this_value.selectedIndex!=0){
   FrmInput.UVGUSSET.value=StrSize;
   FrmInput.UVGAUGE.value="190";
   }
   else{ //blank the boxes
   FrmInput.UVGUSSET.value="";
   FrmInput.UVGAUGE.value="";
   }
}

function RemoveTextFromStrSize(StrCharUpTo){
var IntPos=StrSize.indexOf(StrCharUpTo);
var result="";
if (IntPos>-1){
   result=StrSize.substring(0, IntPos);
   StrSize=StrSize.substring(IntPos + StrCharUpTo.length, StrSize.length);
   }
return result;
}

//-->
