function submitform(pcobject) { if (pcobject.cbodate.selectedIndex == 0 || pcobject.cbodrivetrans.selectedIndex == 0 || pcobject.txtmake.selectedIndex == 0 || pcobject.txtpart.selectedIndex == 0 || pcobject.cbocyl.selectedIndex == 0 || pcobject.cbobody.selectedIndex == 0 || pcobject.txtemail.value == "") { return alert("Please complete all fields that are marked with an *") ; } if (pcobject.txtemail.value != pcobject.txtemailconfirm.value) { return alert("The email addresses entered do not match"); } if (pcobject.cbodp) { if (pcobject.cbodp.selectedIndex ==0) { return alert("You must select Driver or Passenger Side"); } pcobject.dp.value =pcobject.cbodp.options[pcobject.cbodp.selectedIndex].text } if (pcobject.cbofr) { if (pcobject.cbofr.selectedIndex ==0) { return alert("You must select Front or Rear"); } pcobject.fr.value =pcobject.cbofr.options[pcobject.cbofr.selectedIndex].text } if (pcobject.cboul) { if (pcobject.cboul.selectedIndex ==0) { return alert("You must select Upper or Lower"); } pcobject.ul.value =pcobject.cboul.options[pcobject.cboul.selectedIndex].text } pcobject.submit() ; } function showmodels(pcobject) { var lnindex; lnindex = pcobject.selectedIndex; var lcmake ; lcmake = pcobject.options[lnindex].text ; lcmake = lcmake.replace(" ","_"); lcmake = lcmake.replace(" ","_"); lcmake = lcmake.replace(" ","_"); lcmake = lcmake.replace(" ","_"); if (lnindex == 0) { return alert("You must select a Make") ; } location.href= "http://www.qaparts.com/LookForPart/" +lcmake + "/" ; }