<!--
function Form1_Validator(theForm)
{

	if (theForm.ID.value == "")
	{
		alert("Please enter a value for the \"User ID\" field.");
		theForm.ID.focus();
		return (false);
	}

	if (theForm.ID.value.length < 4)
	{
		alert("Please enter your valid Taxware User ID/Account Number in the \"User ID\" field.");
		theForm.ID.focus();
		return (false);
	}

	if (theForm.ID.value.length > 8)
	{
		alert("Please enter your valid Taxware User ID/Account Number in the \"User ID\" field.");
		theForm.ID.focus();
		return (false);
	}
  
	var checkOK = "0123456789-";
	var checkStr = theForm.ID.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 ID\" field.");
		theForm.ID.focus();
		return (false);
	}
  
	if (theForm.FULL_NAME.value == "")
	{
		alert("Please enter a value for the \"Full Name\" field.");
		theForm.FULL_NAME.focus();
		return (false);
	}

	if (theForm.FULL_NAME.value.length < 3)
	{
		alert("Please enter at least 3 characters in the \"Full Name\" field.");
		theForm.FULL_NAME.focus();
		return (false);
	}

	if (theForm.FULL_NAME.value.length > 30)
	{
		alert("Please enter at most 30 characters in the \"Full Name\" field.");
		theForm.FULL_NAME.focus();
		return (false);
	}

	if (theForm.PHONE_NUMBER.value == "")
	{
		alert("Please enter a value for the \"Phone Number\" field.");
		theForm.PHONE_NUMBER.focus();
		return (false);
	}

	if (theForm.PHONE_NUMBER.value.length < 10)
	{
		alert("Please enter at least 10 characters in the \"Phone Number\" field.");
		theForm.PHONE_NUMBER.focus();
		return (false);
	}

	if (theForm.PHONE_NUMBER.value.length > 14)
	{
		alert("Please enter at most 14 characters in the \"Phone Number\" field.");
		theForm.PHONE_NUMBER.focus();
		return (false);
	}

	var checkOK = "0123456789--() ";
	var checkStr = theForm.PHONE_NUMBER.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 \"Phone Number\" field.");
		theForm.PHONE_NUMBER.focus();
		return (false);
	}

	if (theForm.EMAIL.value == "")
	{
		alert("Please enter a value for the \"Email Address\" field.");
		theForm.EMAIL.focus();
		return (false);
	}
	
	if (theForm.EMAIL.value.length < 7)
	{
		alert("Please enter at least 7 characters in the \"Email Address\" field.");
		theForm.EMAIL.focus();
		return (false);
	}
	
	if (theForm.EMAIL.value.length > 40)
	{
		alert("Please enter at most 40 characters in the \"Email Address\" field.");
		theForm.EMAIL.focus();
		return (false);
	}
	
	var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþ0123456789-@-_.";
	var checkStr = theForm.EMAIL.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.EMAIL.focus();
    	return (false);
	}
	
	if (theForm.USERNAME.value == "")
	{
		alert("Please enter a value for the \"Username\" field.");
		theForm.USERNAME.focus();
		return (false);
	}
  
	if (theForm.USERNAME.value.length < 4)
	{
		alert("Please enter at least 4 characters in the \"Username\" field.");
		theForm.USERNAME.focus();
		return (false);
	}
	
	if (theForm.USERNAME.value.length > 10)
	{
		alert("Please enter at most 10 characters in the \"Username\" field");
		theForm.USERNAME.focus();
		return (false);
	}
	
	if (theForm.PASSWORD.value == "")
	{
		alert("Please enter a value for the \"Password\" field.");
		theForm.PASSWORD.focus();
		return (false);
	}
	
	if (theForm.PASSWORD.value.length > 15)
	{
		alert("Please enter at most 15 character in the \"Password\" field.");
		theForm.PASSWORD.focus();
		return (false);
	}
	
	if (theForm.PASSCONF.value == "")
	{
		alert("Please enter a value for the \"Password Confirmation\" field.");
		theForm.PASSCONF.focus();
		return (false);
	}
	
	if (theForm.PASSCONF.value.length > 15)
	{
		alert("Please enter at most 15 character in the \"Password Confirmation\" field.");
		theForm.PASSCONF.focus();
		return (false);
	}
	
	if (theForm.PASSWORD.value != theForm.PASSCONF.value)
	{
		alert("Please retype your password in both \"Password\" fields.");
		theForm.PASSWORD.focus();
		return (false);
	}
}
//-->

