document.write('<div id="ajaxPopup" style="display: none; position: absolute; z-index: 200; margin-left: -425px; border: 1px solid #cccccc; left: 50%; top: 50px; width: 850px; height: 500px; background-color: #ffffff;"></div>');

//Gets the browser specific XmlHttpRequest Object
function getXmlHttpRequestObject() {
	if (window.XMLHttpRequest) {
		return new XMLHttpRequest(); //Not IE
	} else if(window.ActiveXObject) {
		return new ActiveXObject("Microsoft.XMLHTTP"); //IE
	} else {
		//Display your error message here. 
		//and inform the user they might want to upgrade
		//their browser.
		alert("Your browser doesn't support the XmlHttpRequest object.  Better upgrade.");
	}
}

var showPopupAjaxOb = getXmlHttpRequestObject();

function showAjaxPopup(urlAndParam)
{
	if (showPopupAjaxOb.readyState == 4 || showPopupAjaxOb.readyState == 0)
	{
		showPopupAjaxOb.open("GET", urlAndParam, true);				
		showPopupAjaxOb.onreadystatechange = loadEvent; 
		showPopupAjaxOb.send(null);
	}	
	
	document.getElementById('ajaxPopup').style.top		= document.documentElement.scrollTop + 40 + 'px'; 
	
	document.getElementById('ajaxPopup').style.display	= 'inline';
}

function loadEvent()
{
	if (showPopupAjaxOb.readyState == 4)
	{
		document.getElementById('ajaxPopup').innerHTML = showPopupAjaxOb.responseText;
	}
}

function lukDivPopup()
{
	document.getElementById('ajaxPopup').style.display	= 'none';
	document.getElementById('ajaxPopup').innerHTML		= '';
}
