function ValidateForm(){
if (document.frm_quick_contact.name.value == "") { showBlank("Name",document.frm_quick_contact.name); return false; }
if (document.frm_quick_contact.email.value == "") { showBlank("Email",document.frm_quick_contact.email); return false; }
                Email = document.frm_quick_contact.email.value;
                if (Email.length < 6) {
                        alert("The Email Address you entered was found to be invalid.\nPlease enter a valid Email Address.");
                        document.frm_quick_contact.email.select();
                        document.frm_quick_contact.email.focus();
                        return false;
                }
                if (Email.indexOf("@") == -1) {
                        alert("The Email Address you entered was found to be invalid.\nPlease enter a valid Email Address.");
                        document.frm_quick_contact.email.select();
                        document.frm_quick_contact.email.focus();
                        return false;
                }
                if (Email.indexOf(".") == -1) {
                        alert("The Email Address you entered was found to be invalid.\nPlease enter a valid Email Address.");
                        document.frm_quick_contact.email.select();
                        document.frm_quick_contact.email.focus();
                        return false;
                }
if (document.frm_quick_contact.norobot.value == "") { showBlank("Image Code",document.frm_quick_contact.norobot); return false; }

    return true
 }
 
 
function ValidateForm1(){
if (document.frmContact.Contact.value == "") { showBlank("Name",document.frmContact.Contact); return false; }
if (document.frmContact.Phone.value == "") { showBlank("Phone",document.frmContact.Phone); return false; }
if (document.frmContact.Email.value == "") { showBlank("Email",document.frmContact.Email); return false; }
                Email = document.frmContact.Email.value;
                if (Email.length < 6) {
                        alert("The Email Address you entered was found to be invalid.\nPlease enter a valid Email Address.");
                        document.frmContact.Email.select();
                        document.frmContact.Email.focus();
                        return false;
                }
                if (Email.indexOf("@") == -1) {
                        alert("The Email Address you entered was found to be invalid.\nPlease enter a valid Email Address.");
                        document.frmContact.Email.select();
                        document.frmContact.Email.focus();
                        return false;
                }
                if (Email.indexOf(".") == -1) {
                        alert("The Email Address you entered was found to be invalid.\nPlease enter a valid Email Address.");
                        document.frmContact.Email.select();
                        document.frmContact.Email.focus();
                        return false;
                }
if (document.frmContact.Comments.value == "") { showBlank("Comments or Questions",document.frmContact.Comments); return false; }
if (document.frmContact.norobot.value == "") { showBlank("Image Code",document.frmContact.norobot); return false; }

    return true
 }
 
 
 
function showBlank(field, obj) {
                msg = "You have missed one of the mandatory fields.\n" + field + " was left blank or not selected.\n";
                alert(msg)
                obj.focus();
}
function showBlank1(field, obj) {
                msg = "You have missed one of the mandatory fields.\n" + field + " is Invalid.\n";
                alert(msg)
                obj.focus();
}
