function checkForm(theForm)
{
	// Check username.
	invalidChars = "?*+=[]:;\"<>,/\\|";
	if ( !checkHasValue( theForm.du1_username, "TEXT" ) )
		if ( !onError( theForm, theForm.du1_username, theForm.du1_username.value, 
			"Please supply a value for\nthe user name field." ) )
			return false;	
	if ( !checkValidChars( theForm.du1_username.value, true, true, true, invalidChars, false ) )
		if ( !onError( theForm, theForm.du1_username, theForm.du1_username.value, 
			 "The user name may contain letters, numbers, spaces,\n"
			+"and special characters excluding: " + invalidChars ) )
			return false;
	
	// Check password.
	if ( !checkHasValue( theForm.du2_password, "PASSWORD" ) )
		if ( !onError( theForm, theForm.du2_password, theForm.du2_password.value, 
			"Please supply a value for\nthe password field." ) )
			return false;	

	return true;
} 

//document.frmMain.du1_username.focus();

