var GoodOptionsCFGT16X25GHT = new Array(2); GoodOptionsCFGT16X25GHT[0] = 0; GoodOptionsCFGT16X25GHT[1] = 0; function CheckLockedOptionsCFGT16X25GHT(CatalogForm) { var FlagContinue=0; var FlagFound=0; var x=0; var OptionMatrix = new Array(100) ; OptionMatrix[0]= "Don't Care" ; OptionMatrix[1]= "Caribbean Blue" ; OptionMatrix[2]= "Don't Care" ; OptionMatrix[3]= "Hunter Green" ; while ((x<4) && (!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=GoodOptionsCFGT16X25GHT[0]; CatalogForm.opt1.selectedIndex=GoodOptionsCFGT16X25GHT[1]; } else { GoodOptionsCFGT16X25GHT[0]=CatalogForm.opt0.selectedIndex; GoodOptionsCFGT16X25GHT[1]=CatalogForm.opt1.selectedIndex; } } function RecalcPriceCFGT16X25GHT (CatalogForm) { var price = 330.000000; if (CatalogForm.opt0.options[CatalogForm.opt0.selectedIndex].value == 1) price += -150.600006; if (CatalogForm.opt0.options[CatalogForm.opt0.selectedIndex].value == 2) price += -138.000000; CatalogForm.realtimeprice.value = FormatCurrency (price); } function CheckOptionsCFGT16X25GHT (CatalogForm) { CheckLockedOptionsCFGT16X25GHT (CatalogForm); RecalcPriceCFGT16X25GHT (CatalogForm); }