function submitForm(){
	openpopup("thank_you.html");
	var form = document.getElementById('contact_form')
	 if(form.onsubmit())
	 {
		form.submit();
	 }
}
function ValidateContactForm()
{
    var name = document.ContactForm.name;
    var email = document.ContactForm.email;
	
    if (name.value == "")
    {
        window.alert("Please enter your name.");
        name.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;
    }
	openpopup("thank_you.html");
}

function openpopup(popurl){
var winpops=window.open(popurl,"","width=300,height=100")
}

