<!--
function Form1_Validator(theForm)
{
	if (theForm.UserNumber.value == "")
	{
		alert("Please enter a value for the \"User Number\" field.");
		theForm.UserNumber.focus();
		return (false);
	}
	
	if (theForm.UserNumber.value.length < 4)
	{
		alert("Please enter at least 4 characters in the \"User Number\" field.");
		theForm.UserNumber.focus();
		return (false);
	}
	
	if (theForm.UserNumber.value.length > 8)
	{
		alert("Please enter at most 8 characters in the \"User Number\" field.");
		theForm.UserNumber.focus();
		return (false);
	}
	
	var checkOK = "0123456789-";
	var checkStr = theForm.UserNumber.value;
	var allValid = true;
	for (i = 0; i < checkStr.length; i++)
	{
		ch = checkStr.charAt(i);
		for (j = 0; j < checkOK.length; j++)
			if (ch == checkOK.charAt(j))
				break;
		if (j == checkOK.length)
		{
			allValid = false;
			break;
		}
	}
	if (!allValid)
	{
		alert("Please enter only digit and \"-\" characters in the \"User Number\" field.");
		theForm.UserNumber.focus();
		return (false);
	}
	
	if (theForm.EmailAddress.value == "")
	{
		alert("Please enter a value for the \"Email Address\" field.");
		theForm.EmailAddress.focus();
		return (false);
	}
	
	if (theForm.EmailAddress.value.length < 7)
	{
		alert("Please enter at least 7 characters in the \"Email Address\" field.");
		theForm.EmailAddress.focus();
		return (false);
	}
	
	if (theForm.EmailAddress.value.length > 40)
	{
		alert("Please enter at most 40 characters in the \"Email Address\" field.");
		theForm.EmailAddress.focus();
		return (false);
	}
	
	 var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ0123456789-@-_.";
	var checkStr = theForm.EmailAddress.value;
	var allValid = true;
	for (i = 0;  i < checkStr.length;  i++)
		{
    	ch = checkStr.charAt(i);
    	for (j = 0;  j < checkOK.length;  j++)
      		if (ch == checkOK.charAt(j))
        	break;
    	if (j == checkOK.length)
    	{
      		allValid = false;
      		break;
    	}
  		}
	if (!allValid)
	{
    	alert("Please enter only letter, digit and \"@-_.\" characters in the \"EMail Address\" field.");
    	theForm.EmailAddress.focus();
    	return (false);
	}
}	
//-->

