<!--
	function CheckInvalidCharacters()
	{
		// Get the value of the UserName text box
		var strUserName = String(document.form1.txtUsername.value);
		var strCurrentChar;
		
		// This variable will determine if our string is valid
		var bolValidUserName = true;
		
		// Step through the UserName one character at a time...
		for (var iLoop=0; iLoop < strUserName.length; iLoop++)
		{
			// Check to see if the current character is valid
			strCurrentChar = strUserName.substring(iLoop,iLoop+1);
			
			if (
				// if A-Z...
				(strCurrentChar >= 'A' && strCurrentChar <= 'Z')
				// or if a-z...
				|| (strCurrentChar >= 'a' && strCurrentChar <= 'z')
				// or if 0-9...
				|| (strCurrentChar >= '0' && strCurrentChar <= '9')
				// or if dash or underscore
				|| strCurrentChar == '-' || strCurrentChar == '_'
			   );
			   
			   // We have a valid string... do nothing.
			  else
			   // We have an invalid string, set the flag
			   bolValidUserName = false;
		}
		
		// If we have an invalid UserName, alert the user
		if (!bolValidUserName)
		{
			var strError = "You have entered an invalid UserName.   \n";
			strError += "Username can only contain the following characters:    ";
			strError += "\n\t\tA-z\n\t\ta-z\n\t\t0-9\n\t\t- (dash)\n\t\t_ (underscore)";
			
			alert(strError);
		}
		
		return bolValidUserName;
	}
// -->