<!--
	function ValidateUserName()
	{
		// Get the value of the UserName text box
		var strUserName = String(document.search_chrono.Criteria.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 == '_'
                                || 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 search term.  ";
			strError += "The search term can only contain the following characters:";
			strError += "\n\tA-z\n\ta-z\n\t0-9\n\t- (dash)\n\t_ (underscore)";
			strError += "Please remove the invalid characters and resubmit.";
			alert(strError);
		}
		
		document.search_chrono.Criteria.Focus();
	}
// -->