var GoodOptionsCFHT1630PCDRK = new Array(2); GoodOptionsCFHT1630PCDRK[0] = 0; GoodOptionsCFHT1630PCDRK[1] = 0; function CheckLockedOptionsCFHT1630PCDRK(CatalogForm) { var FlagContinue=0; var FlagFound=0; var x=0; var OptionMatrix = new Array(100) ; OptionMatrix[0]= "Salsa Red" ; OptionMatrix[1]= "Don't Care" ; OptionMatrix[2]= "Tan" ; OptionMatrix[3]= "Don't Care" ; OptionMatrix[4]= "Sunshine Yellow" ; OptionMatrix[5]= "Don't Care" ; OptionMatrix[6]= "Salsa Red" ; OptionMatrix[7]= "Don't Care" ; while ((x<8) && (!FlagFound)) { FlagContinue=1 ; if (((CatalogForm.opt0.options[CatalogForm.opt0.selectedIndex].text==OptionMatrix[x]) ||(OptionMatrix[x]=="Don't Care")) && (FlagContinue)) FlagContinue=1; else FlagContinue=0; x++ ; if (((CatalogForm.opt1.options[CatalogForm.opt1.selectedIndex].text==OptionMatrix[x]) ||(OptionMatrix[x]=="Don't Care")) && (FlagContinue)) FlagContinue=1; else FlagContinue=0; x++ ; if (FlagContinue) FlagFound = 1 ; } if (FlagFound) { alert("This option is invalid. Please check your selection.") ; CatalogForm.opt0.selectedIndex=GoodOptionsCFHT1630PCDRK[0]; CatalogForm.opt1.selectedIndex=GoodOptionsCFHT1630PCDRK[1]; } else { GoodOptionsCFHT1630PCDRK[0]=CatalogForm.opt0.selectedIndex; GoodOptionsCFHT1630PCDRK[1]=CatalogForm.opt1.selectedIndex; } } function RecalcPriceCFHT1630PCDRK (CatalogForm) { var price = 152.000000; if (CatalogForm.opt1.options[CatalogForm.opt1.selectedIndex].value == 1) price += -71.820000; if (CatalogForm.opt1.options[CatalogForm.opt1.selectedIndex].value == 2) price += -68.400002; CatalogForm.realtimeprice.value = FormatCurrency (price); } function CheckOptionsCFHT1630PCDRK (CatalogForm) { CheckLockedOptionsCFHT1630PCDRK (CatalogForm); RecalcPriceCFHT1630PCDRK (CatalogForm); }