<!-- Begin
function checkrequired(which) 
{  
	if (which.acceptTerms.value != "Yes") {
		alert("Please accept the Terms of Use to proceed.");
		return false;
		}
	if (which.disclaimer.value != "Yes") {
		alert("Please acknowledge that you have read the disclaimer.");
		return false;
		}
var pass=true;
if (document.images) 
	{
	for (i=0;i<which.length;i++) 
		{
		var tempobj=which.elements[i];
		if (tempobj.name.substring(0,8)=="required") 
			{
			if (((tempobj.type=="text"||tempobj.type=="textarea"||tempobj.type=="password")&&	tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
			tempobj.selectedIndex==0)) 
				{
				pass=false;
				break;
		        }
		    }
		 }
	}
if (!pass) 
	{
	shortFieldName=tempobj.name.substring(9,30).toUpperCase();
	alert("Please make sure the "+shortFieldName+" field was properly completed.");
	return false;
	}
<!-- check password
pw1 = which.required_password1.value;
pw2 = which.required_password2.value;
if (pw1 != pw2) 
	{
	alert ("\nYou did not enter the same new password twice. Please re-enter your password.")
	return false;
	}
<!-- Check email -->
if (which.required_email) 
	{
				invalidChars = " /:,;"
			var email = which.required_email.value
			if (email == "") {						// cannot be empty
				alert("\nYou did not enter your email address.")
				return false
			}
			for (i=0; i<invalidChars.length; i++) {	// does it contain any invalid characters?
				badChar = invalidChars.charAt(i)
				if (email.indexOf(badChar,0) > -1) {
					alert("\nYour email address contains invalid characters. Please check it and correct it.")
					return false
				}
			}
			atPos = email.indexOf("@",1)			// there must be one "@" symbol
			if (atPos == -1) {
				alert("\nYour email address must contain one, but only one, @ character.")
				return false
			}
			if (email.indexOf("@",atPos+1) != -1) {	// and only one "@" symbol
				alert("\nYour email address must contain one, but only one, @ character.")				
				return false
			}
			periodPos = email.indexOf(".",atPos)
			if (periodPos == -1) {					// and at least one "." after the "@"
				alert("\nYour email address must contain at least one . character.")				
				return false
			}
			if (periodPos+3 > email.length)	{		// must be at least 2 characters after the "."
				alert("\nYour email address must contain at least 2 (two) characters after the . (dot).")				
				return false
			}
			return true
		}
}
//  End -->
