/****************************************************************************
/* Ajax code for pass pages */
var xmlhttp;
var lastId = "";
var populateId = "";
var fixOnce = "";

function loadXMLDoc(url)
{
	// code for Mozilla, etc.
	if (window.XMLHttpRequest)
	{
		xmlhttp=new XMLHttpRequest()
		xmlhttp.onreadystatechange=state_Change
		xmlhttp.open("GET",url,true)
		xmlhttp.send(null)
	}
	// code for IE
	else if (window.ActiveXObject)
	{
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
		if (xmlhttp)
		{
			xmlhttp.onreadystatechange=state_Change
			xmlhttp.open("POST",url,true)
			xmlhttp.send()
		}
	}
}
	
function state_Change()
{
	// if xmlhttp shows "loaded"
	if (xmlhttp.readyState==4)
	{
		// if "OK"
		if (xmlhttp.status==200)
		{
			fromRemote = xmlhttp.responseText;
			dataArray = fromRemote.split('\n');
			
			if (dataArray[0] != "")
			{
				eval(dataArray[0]+"(dataArray)");
			}
						
		}
		
		if (xmlhttp.status==404)
		{
			//document.location.href="/";
			//document.forms['formText'].elements['profileText'].value = "";
		}
	
	}
}






















