
function ValidateContactForm()
{
    var title = document.ContactForm.title;	
    var FirstName = document.ContactForm.FirstName;
    var LastName = document.ContactForm.LastName;
    var company = document.ContactForm.company;	
    var phone = document.ContactForm.phone;		
    var Email = document.ContactForm.Email;
    var comments = document.ContactForm.comments;	


	 if (title.value == "")
    {
        window.alert("Please select title.");
        title.focus();
        return false;
    } 

    if (FirstName.value == "")
    {
        window.alert("Please enter your first name.");
        FirstName.focus();
        return false;
    }
	    if (LastName.value == "")
    {
        window.alert("Please enter your last nme.");
        LastName.focus();
        return false;
    } 

	    if (company.value == "")
    {
        window.alert("Please enter your company name.");
        company.focus();
        return false;
    } 
    if (phone.value == "")
    {
        window.alert("Please enter valid 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;
    }

	return true;
}














