// JavaScript Document

function checkform ( form )
{ 
  
  if (form.name.value == "") {
    alert( "Sorry, we will need your name to contact you, please enter a name. Thanks!" );
      form.name.focus();
    return false ;
  }
  
  if (form.contact.value == "") {
    alert( "Sorry, We will need your Email or Phone# to contact you. Thanks!" );
      form.contact.focus();
    return false ;
  }
  
   if (form.location.value == "") {
    alert( "Sorry, We will need your location to price your quotation. Thanks!" );
      form.contact.focus();
    return false ;
  }
  
  if (form.comments.value == "") {
    alert( "Sorry, can we have some details about your project. Thanks!" );
      form.comments.focus();
    return false ;
  }
  
    if (form.answer.value != 25) {
    alert( "Sorry, we need to verify that you're human, please answer the question. Thanks!" );
      form.answer.focus();
    return false ;
  }
  
  if (form.security_code.value == "") {
    alert( "Sorry, we need to stop spammers, please enter the code in the security field. Thanks! " );
      form.security_code.focus();
    return false ;
  }
  
  return true ;
}
