	var theField;
	function checker(formcontent,valtype, field){
		document.body.style.cursor='wait';
		var theField = field;
		if (!formcontent){
			document.getElementById(theField).style.backgroundColor = "#fff";
			document.body.style.cursor='auto';
			return false;
		}
		//alert("Form Content: " + formcontent + " Validation Type: " + valtype);
		var xmlhttp=false;
		/*@cc_on @*/
		/*@if (@_jscript_version >= 5)
		// JScript gives us Conditional compilation, we can cope with old IE versions.
		// and security blocked creation of the objects.
		 try {
		  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		 } catch (e) {
		  try {
		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		  } catch (E) {
		   xmlhttp = false;
		  }
		 }
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		  xmlhttp = new XMLHttpRequest();
		}
		
	 	xmlhttp.open("get", "/globals/blocks/validator.cfm?ValidationContent=" + formcontent + "&validationType=" + valtype,false);
	 	xmlhttp.onreadystatechange=function() {
	  	if (xmlhttp.readyState==4) {
	    highlighter(xmlhttp.responseText,valtype, theField);
	  	}
	 	}
	 	xmlhttp.send(null);
		document.body.style.cursor='auto';
	}

	function highlighter(myAlert,myType,theField){
		var theAlert = myAlert;
   		theAlert = theAlert.replace(/^\s*|\s*$/g,"");
		//alert(theAlert.length);
		if (theAlert == "YES"||theAlert == "true"){
		document.getElementById(theField).style.backgroundColor = "#fff";
		return true;
		}
		else
		{
		document.getElementById(theField).style.backgroundColor = "beige";
		messenger(myType);
		alert(messenger(myType));
		document.getElementById(theField).focus();
		document.getElementById(theField).select();
		return false;
		}
	}
	
	function messenger(theType){
		var theText;
		switch (theType)
		{
			case "isAlpha" : theText = "This Field will only accept letters.  Numbers and non-alphanumeric characters cannot be used.";
							 break;
			case "isPhone" : theText = "This field will only accept numbers in a phone number format";
							 break;
			case "isEmail" : theText = "This field will only accept a properly formatted email address (name@domainname.com)";
							 break;
			case "isOnlyLetters" : theText = "This field will only accept letters or numbers.";
							 break;
			case "isZip" : theText = "This field will only accept numbers in a zipcode format.";
							break;
			case "isThereSpaces" : theText = "This field will not accept any spaces.";
								break;
			case "isEmpty" : theText = "This field needs to be filled in.";
							break;
			case "isPartialAlphaNumeric" : theText = "This field allow letters, numbers, and the ? ! , . ' characters.";
							break;
			default : theText = "An unknown validation error has occured, please try again";
		}
		return theText;
		
	}
	