
function checkrequired(which) {
var pass=true;
if (document.images) {
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name=='param_dateOfPurchase'||tempobj.name=='param_dealerName'||tempobj.name=='param_firstName'||tempobj.name=='param_lastName'||tempobj.name=='param_address1'||tempobj.name=='param_city'||tempobj.name=='param_zip'||tempobj.name=='phone1'||tempobj.name=='phone2'||tempobj.name=='phone3'||tempobj.name=='param_emailAddress'||0) {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=="")||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
}
}
}
}
if (!pass) {
shortFieldName=tempobj.name.toUpperCase();
shortFieldName=shortFieldName.replace("PARAM_", "");
alert("Please make sure the "+shortFieldName+" field was properly completed.");
return false;
}
else
return true;
}

