
document.write("<div id='Status' style='display:none; position:absolute; top:" + ((screen.height / 2) - 120) + "px; left:" + ((screen.width / 2) - 10) + "px;'>");
document.write("  <table border='0' width='300' cellpadding='0' cellspacing='0' style='border:3px solid #0060b6;'>");
document.write("    <tr bgcolor='#edf5fc' height='60'>");
document.write("      <td width='70' align='center'><img src='images/searching.gif' width='32' height='32' alt='Searching...' title='Searching...'></td>");
document.write("      <td width='100%' style='padding-left:5px; line-height:15px;'><b>Please wait<br>Processing your request...</b></td>");
document.write("    </tr>");
document.write("  </table>");
document.write("</div>");

 function createXHR( )
 {
	if (window.XMLHttpRequest)  // Mozilla, Safari,...
	{
		objXHR = new XMLHttpRequest( );

		if (objXHR.overrideMimeType)
			objXHR.overrideMimeType('text/xml');
	}

	else if (window.ActiveXObject)  // IE
	{
		try
		{
			objXHR = new ActiveXObject("Msxml2.XMLHTTP");
		}

		catch(e)
		{
			try
			{
				objXHR = new ActiveXObject("Microsoft.XMLHTTP");
			}
				
			catch(e)
			{
				
			}
		}
	}

	if (!objXHR)
	{
		alert('Giving up :( Cannot create an XMLHTTP instance');
     			
    		return null;
	}
	
	return objXHR;
 }