function newXMLHttpDeal()
{
	var reqObj = false;

	try {
		reqObj = new ActiveXObject("MSXML2.XMLHTTP");
	}
	catch (exception1) {
		try {
			reqObj = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (exception2) {
			reqObj = false;
		}
	}
	if( !reqObj && window.XMLHttpRequest ) {
		reqObj = new XMLHttpRequest();
	}

	return reqObj;
}


function setAsyncWaitDiv( psDivID )
{
	var div = document.getElementById( psDivID );
	var iHeight = div.offsetHeight;
	var iWidth = div.offsetWidth;
	div.innerHTML = "<div style='width:"+iWidth+"px;height:"+iHeight+"px;text-align:center;vertical-align:middle;'><img src='/wait.gif' /></div>";
}
