function verification(){
var emailpat=/@/;
var pass=true;
if (document.prospectcust.firstname.value == 0){
alert("you must enter a first name");
document.prospectcust.firstname.focus();
var pass=false;
}
else if (document.prospectcust.lastname.value == 0){
alert("you must enter a last name");
document.prospectcust.lastname.focus();
var pass=false; 
}
else if (document.prospectcust.title.value == 0){
alert("you must enter a title");
document.prospectcust.title.focus();
var pass=false;
}
else if (document.prospectcust.company.value == 0){
alert("you must select a company");
document.prospectcust.company.focus();
var pass=false;
}

else if (document.prospectcust.phone.value == 0){
alert("you must enter a phone number");
document.prospectcust.phone.focus();
var pass=false;
}
else if (document.prospectcust.email.value == 0){
alert("you must enter an email address");
document.prospectcust.email.focus();
var pass=false;
}

//this uses a regular expression to determine if the @ is in the e-mail address
else if (document.prospectcust.email.value.match(emailpat)==null){
alert("you must enter a valid e-mail address");
document.prospectcust.email.focus();
var pass=false;
}
return pass
return pass
}
