// JavaScript Document
<!--
// function to check emial
function emailCheck(emailStr){
    // checks if the e-mail address is valid
    var emailPat=/^(\".*\"|[\w_\-\.]+)@(\[\d{1,3}(\.\d{1,3}){3}]|[\w_\-\.]+(\.[\w_\-\.]+)+)$/;
    var matchArray = emailStr.match(emailPat);
    if (matchArray == null) {
        alert("Your email address seems incorrect.  Please try again (check the '\@' and '.'s in the email address)");
        return false;
    }
    // make sure the IP address domain is valid
    var IPArray = matchArray[2].match(/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/);
    if (IPArray != null) {
        for (var i=1;i<=4;i++) {
            if (IPArray[i]>255) {
                alert("Destination IP address is invalid!")
                return false;
             }
        }
     }
     return true;
}
  // function To Validate Form
  function CheckFields(){

    if (document.The_Form.lFirstName.value==""){
        alert ("Please enter your first name.");
        document.The_Form.lFirstName.focus();
        return false;
    }
    if (document.The_Form.lLastName.value==""){
        alert ("Please enter your last name.");
        document.The_Form.lLastName.focus();
        return false;
    }
	if (document.The_Form.lCountry.value==""){
        alert ("Please select your country.");
        document.The_Form.lCountry.focus();
        return false;
    }
    if (document.The_Form.lEmail.value==""){
        alert ("Please enter your email address.");
        document.The_Form.lEmail.focus();
        return false;
    } else {
        if (emailCheck(document.The_Form.lEmail.value) == 0){
            document.The_Form.lEmail.focus();
            return false;
          }
    }
    if (document.The_Form.lProspectComments.value==""){
        alert ("Please enter your comments.");
        document.The_Form.lProspectComments.focus();
        return false;
    }
    return true;
  }

//-->