// JavaScript Document - PiP Teaser Form Validation Functions

function ValidateForm()
{

if(document.contact_form.pip_email.value=="")
{
	alert("Please provide your current email address.");
	document.contact_form.pip_email.focus();
	return false;
}
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(document.contact_form.pip_email.value)){
}else{
	alert("The email address you entered is not valid. Please provide your current email address.");
	document.contact_form.pip_email.focus();
	return false;
}
if(document.contact_form.pip_sum.value=="" || document.contact_form.pip_sum.value!= 4 )
{
	alert("Please type the correct number of what 2 + 2 equals.");
	document.contact_form.pip_sum.focus();
	return false;
}

	document.contact_form.action="pip_confirm.aspx";
//	document.intern_form.submit();


}

function doreset()
{
	document.contact_form.action="";
	return false;
}