
function terms(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=440,height=370');");
}


function xSubmit(){
	var form=document.helpform;

var valid = "abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ -"
var ok = "yes";
var temp;	

	var fname=form.fname.value;
	if(fname==""){
		alert("Please let us know your first name");
		form.fname.focus();
		return false;
	} //end if(form.fname.value=="")

for (var i=0; i<form.fname.value.length; i++) {
temp = "" + form.fname.value.substring(i, i+1);
if (valid.indexOf(temp) == "-1") ok = "no";
}
if (ok == "no") {
alert("Invalid entry! Only characters and numbers are accepted.");
form.fname.focus();
form.fname.select();
		return false;
   }
   	
	var lname=form.lname.value;	
	if(lname==""){	
		alert("Please let us know your last name.");
		form.lname.focus();
		return false;
	} //end if(form.lname.value=="")
	
for (var i=0; i<form.lname.value.length; i++) {
temp = "" + form.lname.value.substring(i, i+1);
if (valid.indexOf(temp) == "-1") ok = "no";
}
if (ok == "no") {
alert("Invalid entry! Only characters and numbers are accepted.");
form.lname.focus();
form.lname.select();
		return false;
   }	

	var email=form.emailaddress.value;
	if(email=="" || email.length < 5 || email.search(/\S+@\S+\.\S{2,4}/ig)==-1){
		alert("Please submit a valid email address");
		form.emailaddress.focus();
		form.emailaddress.select();
		return false;
	}
	
	var phone=form.phone.value;	
	if(phone==""){	
		alert("Please let us know your phone number.");
		form.phone.focus();
		return false;
	} //end if(form.phone.value=="")	
   
for (var i=0; i<form.phone.value.length; i++) {
temp = "" + form.phone.value.substring(i, i+1);
if (valid.indexOf(temp) == "-1") ok = "no";
}
if (ok == "no") {
alert("Invalid entry! Only characters and numbers are accepted.");
form.phone.focus();
form.phone.select();
		return false;
   }
  
{
if (form.check.checked == false )
{
alert('You must accept the Privacy Policy to Continue by Checking the Privacy Policy Box.');
return false;
}else
return true;
}

	return true;
	
} //end function xSubmit

