	//
	//	Single field validation, If the user leaves a required
	//	field blank we turn it red.
	//
	function isText( ValidateControl, SetFocusOnError )
	{
		if ( ValidateControl.value == "" )
		{
			ValidateControl.className = "FormTxtInValid";
			if ( SetFocusOnError && SetFocusOnError == true )
				ValidateControl.focus();
			return ( false );
		}
		return ( true );
	}
	//
	//	Once they return to the control we set it back to normal
	//	and give them a chance to fill it out properly.
	//		
	function SetNormal( ValidateControl )
	{
		ValidateControl.className = "Valid";
	}
	//
	//	Lets pass the phone number through this function and check
	//	it for form.
	//
	function isPhoneNumber( ValidateControl, SetFocusOnError )
	{
		var PhoneRegexp = new RegExp(); 
        PhoneRegexp.compile("[0-9]{3}.[0-9]{3}.[0-9]{4}"); 
        if (!PhoneRegexp.test(ValidateControl.value))
		{ 
			ValidateControl.className = "FormTxtInValid";
			if ( SetFocusOnError && SetFocusOnError == true )
				ValidateControl.focus();
			return ( false );
		}	
		return ( true );
	}
	//
	//	Lets pass the email address through this function and check 
	//	it for form.
	//
	function isEmail( ValidateControl, SetFocusOnError )
	{
		var EmailRegexp = new RegExp(); 
        EmailRegexp.compile("[A-Za-z0-9._-]+@[^.]+\..+"); 
        if (!EmailRegexp.test(ValidateControl.value))
		{ 
			ValidateControl.className = "FormTxtInValid";
			if ( SetFocusOnError && SetFocusOnError == true )
				ValidateControl.focus();
			return ( false ); 
        }
		return ( true );
	}
	function isNumeric( ValidateControl, SetFocusOnError )
	{
		var NumericRegexp = new RegExp();
		NumericRegexp.compile( "[0-9]" );
        if ( !NumericRegexp.test( ValidateControl.value ) )
		{ 
			ValidateControl.className = "FormTxtInValid";
			if ( SetFocusOnError && SetFocusOnError == true )
				ValidateControl.focus();
			return ( false ); 
        }
		return ( true );
	}
	//
	//	This function sets focus on the error field, shows a 
	//	message and passes back false so validation will fail.
	//
	function ShowErrorField( FormField, Message )
	{
		FormField.className = "FormTxtInValid";
		alert( Message );
		return false;
	}