
function contact() {
 name = document.quickcontact.n.value;
 phone = document.quickcontact.p.value;
 email = document.quickcontact.e.value;

 err = "";

 if (name=="") 
 {
    err="Please submit your name, we must know who we talk to...";
 }
 if (phone=="" && email=="") 
 {
    if (err!="")
    {
      err+="\nAlso, w";
    }
    else
    {
      err+="W";
    }
    err += "e need your phone or email so we can contact you";
 }
 if (err!="")
 {
    alert(err);  
 }
 else
 {
    document.quickcontact.go.value="Y";
    document.quickcontact.submit();  
 }
}
