function checkForm(theForm)
{
	// Check username.
	if ( !checkHasValue( theForm.quickusername, "TEXT" ) )
		if ( !onError( theForm, theForm.quickusername, theForm.quickusername.value, 
			"Please supply a value for\nthe user name field." ) )
			return false;	
	invalidChars = "?*+=[]:;\"<>,/\\|";
	if ( !checkValidChars( theForm.quickusername.value, true, true, true, invalidChars, false ) )
		if ( !onError( theForm, theForm.quickusername, theForm.quickusername.value, 
			 "The user name may contain letters, numbers, spaces,\n"
			+"and special characters excluding: " + invalidChars ) )
			return false;
	
	// Check password.
	if ( !checkHasValue( theForm.thepassword, "PASSWORD" ) )
		if ( !onError( theForm, theForm.thepassword, theForm.thepassword.value, 
			"Please supply a value for\nthe password field." ) )
			return false;	

	// Check passwords.
	if ( !( theForm.thepassword.value == theForm.yescompassword.value ) )
		if ( !onError( theForm, theForm.thepassword, theForm.thepassword.value, 
			"The passwords do not match." ) )
		{
			theForm.thepassword.value = "";
			theForm.yescompassword.value = "";
			return false;	
		}
		


	return true;
} 

document.frmMain.quickusername.focus();
//alert("Please completely read the help\nfile before using this function.")

