function checkForm(contactPage) {
    //Name Title  VALIDATION
    if (contactPage.name.value == "") {
        contactPage.name.focus();
        alert('Please Enter Name.');
        return false;
    }

    // EMAIL VALIDATION
    if (contactPage.mail.value == "") {
        contactPage.mail.focus();
        alert('Please Enter Your Email Id.');
        return false;
    }

    if (!contactPage.mail.value
        .match(/^[\w\.-]+@(?:[A-Za-z0-9-]+\.)*[A-Za-z0-9-]{1,}\.[a-z]{2,9}$/)) {
        contactPage.mail.focus();
        contactPage.mail.value = "";
        alert('Please Enter Valid Email Id.');
        return false;
    }

    //Phone   VALIDATION
    if (contactPage.phone.value == "") {
        contactPage.phone.focus();
        alert('Please Enter Phone number.');
        return false;
    }

    if (!contactPage.phone.value.match(/^[0-9\-\(\)\ ]+$/)) {
        contactPage.phone.focus();
        contactPage.phone.value = "";
        alert('Please Enter Numeric Value.');
        return false;
    }

    if (!isLocationSet && google.loader.ClientLocation) {
        if (google.loader.ClientLocation.address.country) {
            contactPage.country.value = google.loader.ClientLocation.address.country;
        }
        if (google.loader.ClientLocation.address.country_code) {
            contactPage.country_code.value = google.loader.ClientLocation.address.country_code;
        }
        if (google.loader.ClientLocation.address.region) {
            contactPage.region.value = google.loader.ClientLocation.address.region;
        }
        if (google.loader.ClientLocation.address.city) {
            contactPage.city.value = google.loader.ClientLocation.address.city;
        }
        isLocationSet = true;
    }

    return true;
}
