function ValidateContactForm()
{
    var yourname = document.ContactForm.yourname;
	var company = document.ContactForm.company;
	var email = document.ContactForm.email;
    var phone = document.ContactForm.phone;
    var comment = document.ContactForm.comment;

if (yourname.value == "")
    {
        window.alert("Please enter a Name.");
        yourname.focus();
        return false;
    }

if (company.value == "")
    {
        window.alert("Please enter your company's name");
        company.focus();
        return false;
    }

if (email.value == "")
    {
        window.alert("Please enter a your e-mail address.");
        email.focus();
        return false;
    }
if (email.value.indexOf("@", 0) < 0 || (".", 0) < 0)
    {
        window.alert("Please enter a valid e-mail address.");
        email.focus();
        return false;
    }
    
if (phone.value == "")
    {
        window.alert("Please enter your phone.");
        phone.focus();
        return false;
    }
    if (comment.value == "")
    {
        window.alert("Please enter your query.");
        comment.focus();
        return false;
    }
    return true;
}