
function ValidateContactForm()
{
    var fname = document.ContactForm.fname;
    var lname = document.ContactForm.lname;
    var city = document.ContactForm.city;
    var state = document.ContactForm.state;	
    var phone = document.ContactForm.phone;		
    var email = document.ContactForm.email;
    var procedure = document.ContactForm.procedure;
    var location = document.ContactForm.location;
    var comments = document.ContactForm.comments;	


    if (fname.value == "")
    {
        window.alert("Please enter your first name.");
        fname.focus();
        return false;
    }
	    if (lname.value == "")
    {
        window.alert("Please enter your last nme.");
        lname.focus();
        return false;
    } 
	    if (city.value == "")
    {
        window.alert("Please enter your city.");
        city.focus();
        return false;
    } 
	    if (state.value == "")
    {
        window.alert("Please enter your state.");
        state.focus();
        return false;
    } 
	    if (phone.value == "")
    {
        window.alert("Please enter phone number.");
        phone.focus();
        return false;
    }	
    if (email.value == "")
    {
        window.alert("Please enter a valid e-mail address.");
        email.focus();
        return false;
    }
    if (email.value.indexOf("@", 0) < 0)
    {
        window.alert("Please enter a valid e-mail address.");
        email.focus();
        return false;
    }
    if (email.value.indexOf(".", 0) < 0)
    {
        window.alert("Please enter a valid e-mail address.");
        email.focus();
        return false;
    }
    if (procedure.value == "")
    {
        window.alert("Select select procedures.");
        procedure.focus();
        return false;
    }
    if (location.value == "")
    {
        window.alert("Please Select Location.");
        location.focus();
        return false;
    }
    if (comments.value == "")
    {
        window.alert("Please write your comments.");
        comments.focus();
        return false;
    }	
	return true;
}

