function loadXMLDoc()	{
	url=Site + 'index.cfm?Do=Password.ForgotPassword&LoginName=' + LoginNameToUse;
	// code for Mozilla, etc.
	if (window.XMLHttpRequest)	{
	  xmlhttp=new XMLHttpRequest()
	  xmlhttp.onreadystatechange=xmlhttpChange
	  xmlhttp.open("GET",url,true)
	  xmlhttp.send(DSN)
	}
	// code for IE
	else if (window.ActiveXObject)	{
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
		if (xmlhttp)	{
		xmlhttp.onreadystatechange=xmlhttpChange
		xmlhttp.open("GET",url,true)
		xmlhttp.send(DSN)
		}
	}
}

function xmlhttpChange()	{
	// if xmlhttp shows "loaded"
	if (xmlhttp.readyState==4)	{
		// if "OK"
		if (xmlhttp.status==200)	{
			var response = xmlhttp.responseXML.documentElement;
			var UserNameValidity = response.getElementsByTagName('errorstatus')[0].firstChild.data;
			if (UserNameValidity == "Valid")	{
				document.getElementById("ForgotPasswordResponse").innerHTML='Your password has been reset and sent to your Registered Email Address. This password is only temporary and MUST be changed upon your next login.';
			} else	{
				document.getElementById("ForgotPasswordResponse").innerHTML='The entered Username was invalid, please try again.';
			}
		}
		else	{
			document.getElementById("ForgotPasswordResponse").innerHTML='Sorry there was a problem retrieving the data for this operation, if you continue to see this message please contact ' + Brand;
		}
	}
}
