<!-- // Begin hiding from old browsers.

// global variable used to capture submission method
var clickedLink = false;

function chkLogin()  
{	var data = true;

	// error if login name empty
	if (isWhitespace(document.frmLogin.txtLogin.value))
	{	data = false;
  		alert('Please enter a login.');
  		document.frmLogin.txtLogin.focus();
	}

	// remove leading chars from login
	if (data) {document.frmLogin.txtLogin.value = stripInitialWhitespace(document.frmLogin.txtLogin.value)}

	// error if login has quotes
	if (data && hasAnyQuotes(document.frmLogin.txtLogin.value))
	{	data = false;
	  	alert('Please remove all single and double quotes.');
  		document.frmLogin.txtLogin.focus();
	}

	// error if login > 25 chars
	if (data && chkLength(document.frmLogin.txtLogin.value,25))
	{	data = false;
	  	alert('The login cannot be greater than 25 characters in length.');
	  	document.frmLogin.txtLogin.focus();
	}

	// error if password empty
	if (data && isWhitespace(document.frmLogin.txtPsw.value))
	{	data = false;
  		alert('Please enter a password.');
  		document.frmLogin.txtPsw.focus();
	}

	// remove leading chars from password
	if (data) {document.frmLogin.txtPsw.value = stripInitialWhitespace(document.frmLogin.txtPsw.value)}

	// error if password has quotes
	if (data && hasAnyQuotes(document.frmLogin.txtPsw.value))
	{	data = false;
	  	alert('Please remove all single and double quotes.');
  		document.frmLogin.txtPsw.focus();
	}

	// error if password > 10 chars
	if (data && chkLength(document.frmLogin.txtPsw.value,10))
	{	data = false;
	  	alert('The password cannot be greater than 10 characters in length.');
	  	document.frmLogin.txtPsw.focus();
	}

  	if (data) {
  		document.frmLogin.txtValidate.value = "Y";
  		document.frmLogin.submit();
  	}
}

function chkSearchData()
{	var data = true;
	var theString = document.frmSelections.searchText.value;

	// determine if form is submitted using the proper link
	if (!clickedLink) {
		return false;
	} else {
		clickedLink = false;
	}

	// error if search text is empty
	if (isWhitespace(theString))
	{	data = false;
		alert('Please specify text to search for.')
		document.frmSelections.searchText.focus();
	}
  
	// remove leading chars from first name
	if (data) {theString = stripInitialWhitespace(theString)}
  
	// error if search text has quotes
	if (data && hasAnyQuotes(theString))
	{	data = false;
		alert('Please remove all single and double quotes.');
		document.frmSelections.searchText.focus();
	}	

	// continue if data has been checked
	if (data)
	{	if (parseInt(navigator.appVersion) >= 4 ) {aSpace = '%20'} else {aSpace = ' '}
		pattern = /\s/
		var myStrArray = theString.split(pattern);
		var newStrLen = myStrArray.length;
		
		var newString = ''
		for (i = 0; i < newStrLen; i++)
		{	if (i == 0)
			{
				newString = myStrArray[i]
			} else {
				newString = newString + aSpace + myStrArray[i]
			}
		}
		theURL = "/search/results.asp" + "?stype=T&sLen=" + newStrLen + "&rec=1" + "&sText=" + newString;
		newURL = escape(theURL)
		window.location = theURL
		return true;
	}
}

// End of hide. -->

