// JavaScript Document
function callAHAH(url, pageElement, callMessage, postScriptFX) {
	document.getElementById(pageElement).innerHTML = callMessage;
	try
	{
		req = new XMLHttpRequest();
	}
	catch (e)
	{
		try
		{
			req = new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
		{
			try
			{
				req = new ActiveXObject("Microsoft.XMLHTTP");
			}
			catch (E)
			{
				req = false;
			}
		}
	}
	req.onreadystatechange = function() {responseAHAH(pageElement, postScriptFX);};
	req.open("GET",url,true);
	req.send(null);
}

function responseAHAH(pageElement, postScriptFX) {
	var output = '';
	if(req.readyState == 4) {
		if(req.status ==200) {
			
			output = req.responseText;
			document.getElementById(pageElement).innerHTML = output;
			
			if(postScriptFX != '') {
				PostAjaxFX(postScriptFX);
			}
		}
	}
}

function PostAjaxFX(fx) {

	if(fx == 1) {
		autoFillAddress('moreInfo','1');
	}
	if(fx == 2) {
		autoFillAddress('moreInfo','2');
	}
}
