// SIGN UP
function SignupCheck(form) {
valcheck = form.email;hasDot = valcheck.value.indexOf(".");hasAt = valcheck.value.indexOf("@");if (hasDot == -1 || hasAt == -1) {	alert("Please enter your Email Address.");	valcheck.focus();	return false;}

//First Name Checkvalcheck = form.fname;if (valcheck.value == "") {	alert("Please enter your First Name");	valcheck.focus();	return false;}//Last Name Check			valcheck = form.lname;if (valcheck.value == "") {	alert("Please enter your Last Name");	valcheck.focus();	return false;} //Zip Check	valcheck = form.zip;if (valcheck.value == "") {	alert("Please enter your Zip Code");	valcheck.focus();	return false;}

//Birth Month Check	valcheck = form.bmonth;if (valcheck.value == "") {	alert("Please enter your Birth Month");	valcheck.focus();	return false;}

//Birth Day Check	valcheck = form.bday;if (valcheck.value == "") {	alert("Please enter your Birth Day");	valcheck.focus();	return false;}

//Birth Year Check	valcheck = form.byear;if (valcheck.value == "") {	alert("Please enter your Birth Year (YYYY)");	valcheck.focus();	return false;}

 else {	return checkAge();}}

// CHECK AGE
function checkAge() {var d = new Date();var curryear = d.getFullYear();var agelimit = 13;var thebyear = document.myForm.byear.value;var diffyear = curryear - thebyear;if (diffyear < agelimit) {window.location.href = "signup_underage.php";	return false;} else {return true;}}

//Birthday Check & Tab
function checkLength(currEl, nextEl) {
      if (currEl.value.length == currEl.maxLength) {
	document.myForm.elements[nextEl].focus();
	}
     }	

// OPEN WINDOW
function openWin(url,name,popW,popH) {w = screen.availWidth;
h = screen.availHeight;leftPos = 5;
topPos = 5;window.open(url,name,'width='+popW+',height='+popH+',scrollbars=no,toolbar=no,status=no,resizable=yes,top='+ topPos+',left='+leftPos);}

