function loadmodels(make) { if (searchform.make.selectedIndex == 0) { return false; } searchform.submit(); } function submitform() { if (searchform.make.selectedIndex == 0 || searchform.model.selectedIndex == 0 ) { return alert("You must select a Year Make and Model"); } var lcsearch = searchform.make.value+"/" + searchform.model.value ; location.href= "http://www.qualityusedengines.com/shopbymake3.php?makeindex="+ searchform.make.value + "&modelindex="+ searchform.model.value ; } function next(pcobject) { if (pcobject.cbomodel.selectedIndex == 0) { return alert("You must select a valid model"); } location.href= "http://www.qualityusedengines.com/ShopByMake" + pcobject.cbomodel.value ; }