function pass_form ( )
{
    valid = true;
    if ( document.myform.Customer.value == "" )
    {
        alert ( "Please fill in your Name." );
        document.myform.Customer.focus();
        return false;
    }
    if ( document.myform.Company.value == "" )
    {
        alert ( "Please fill in your Company." );
        document.myform.Company.focus();
        return false;
    }
    if ( document.myform.Email.value == "" )
    {
        alert ( "Please fill in your Email Address." );
        document.myform.Email.focus();
        return false;
    }
    if ( document.myform.Phone.value == "" )
    {
        alert ( "Please fill in your Phone." );
        document.myform.Phone.focus();
        return false;
    }
    if ( document.myform.Comments.value == "" )
    {
        alert ( "Please fill in the Comments field." );
        document.myform.Comments.focus();
        return false;
    }
    if ( document.myform.cap.value == "" )
    {
        alert ( "Please fill in the SPAM Guard field." );
        document.myform.cap.focus();
        return false;
    }

}





function pass_form2 ( )
{
    valid = true;
    if ( document.myform2.Customer.value == "" )
    {
        alert ( "Please fill in your Name." );
        document.myform2.Customer.focus();
        return false;
    }
    if ( document.myform2.Company.value == "" )
    {
        alert ( "Please fill in your Company." );
        document.myform2.Company.focus();
        return false;
    }

    if ( document.myform2.Email.value == "" )
    {
        alert ( "Please fill in your Email Address." );
        document.myform2.Email.focus();
        return false;
    }
    if ( document.myform2.Phone.value == "" )
    {
        alert ( "Please fill in your Phone." );
        document.myform2.Phone.focus();
        return false;
    }

    if ( document.myform2.Comments.value == "" )
    {
        alert ( "Please fill in the Comments field." );
        document.myform2.Comments.focus();
        return false;
    }
    if ( document.myform2.cap.value == "" )
    {
        alert ( "Please fill in the SPAM Guard field." );
        document.myform2.cap.focus();
        return false;
    }

}


function pass_form3 ( )
{
    valid = true;
    if ( document.myform3.Customer.value == "" )
    {
        alert ( "Please fill in your Name." );
        document.myform3.Customer.focus();
        return false;
    }
    if ( document.myform3.Company.value == "" )
    {
        alert ( "Please fill in your Company." );
        document.myform3.Company.focus();
        return false;
    }

    if ( document.myform3.Email.value == "" )
    {
        alert ( "Please fill in your Email Address." );
        document.myform3.Email.focus();
        return false;
    }
    if ( document.myform3.Phone.value == "" )
    {
        alert ( "Please fill in your Phone." );
        document.myform3.Phone.focus();
        return false;
    }

    if ( document.myform3.Comments.value == "" )
    {
        alert ( "Please fill in the Comments field." );
        document.myform3.Comments.focus();
        return false;
    }
    if ( document.myform3.cap.value == "" )
    {
        alert ( "Please fill in the SPAM Guard field." );
        document.myform3.cap.focus();
        return false;
    }

}






function emp_form ( )
{
    valid = true;
    if ( document.empform.Person.value == "" )
    {
        alert ( "Please fill in your Name." );
        document.empform.Person.focus();
        return false;
    }
    if ( document.empform.Email.value == "" )
    {
        alert ( "Please fill in your Email Address." );
        document.empform.Email.focus();
        return false;
    }
    if ( document.empform.Phone.value == "" )
    {
        alert ( "Please fill in your Phone number." );
        document.empform.Phone.focus();
        return false;
    }
    if ( document.empform.Message.value == "" )
    {
        alert ( "Please fill in your Inquiry Message." );
        document.empform.Message.focus();
        return false;
    }
    if ( document.empform.cap.value == "" )
    {
        alert ( "Please fill in the SPAM Guard field." );
        document.empform.cap.focus();
        return false;
    }


}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=500');");
}


function mailpage()
{
  mail_str = "mailto:?subject= New York Leak Detection Inc.";
  mail_str += "&body= I saw this website that performs Location and Mapping, Water Leak Detection, as well as other related services, and thought I would recommend it to you. ";
  mail_str += "Check out the website link here: " + location.href;
 location.href = mail_str;
}


function show_hide(ISID){
      // Toggle visibility between none and inline
      if ((document.getElementById(ISID).style.display == 'none'))
      {
        document.getElementById(ISID).style.display = 'inline';
      } else {
        document.getElementById(ISID).style.display = 'none';
      }
  }


