var GoodOptionsHOTE16X27WHITE = new Array(1); GoodOptionsHOTE16X27WHITE[0] = 0; function CheckLockedOptionsHOTE16X27WHITE(CatalogForm) { var FlagContinue=0; var FlagFound=0; var x=0; var OptionMatrix = new Array(100) ; OptionMatrix[0]= "White" ; while ((x<1) && (!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 (FlagContinue) FlagFound = 1 ; } if (FlagFound) { alert("This option is invalid. Please check your selection.") ; CatalogForm.opt0.selectedIndex=GoodOptionsHOTE16X27WHITE[0]; } else { GoodOptionsHOTE16X27WHITE[0]=CatalogForm.opt0.selectedIndex; } } function RecalcPriceHOTE16X27WHITE (CatalogForm) { var price = 126.000000; CatalogForm.realtimeprice.value = FormatCurrency (price); } function CheckOptionsHOTE16X27WHITE (CatalogForm) { CheckLockedOptionsHOTE16X27WHITE (CatalogForm); RecalcPriceHOTE16X27WHITE (CatalogForm); }