/*...................................*/
	/*CODED BY:Aman Deksiso      
	/*E-mail:amanzroad@yahoo.com 
	/*Cell Phone: 0911 53 41 54  
	/*Year :2000 E.C
/*...................................*/
/*...........................................................................................*/

	/*	Modern Browsers Support a native XMLHttpRequest Object as a Property of WINDOW.      */    
	/*	So,we need 2 test if that property exist, if not we create new XMLHttpRequest Object.*/      
	/*	However, there's a browser that supports XMLHttpRequest that doesn't have a native   */    
	/*	version of the object. that is Microsoft Internet Exprorer (Version 5.5 & 6),        */    
	/*	in this case, we have 2 check 2 see if the browser supports ActiveX.                 */    
	/*	                                                                                     */     
/*...........................................................................................*/

/*function HttpRequestObj(){if(window.XMLHttpRequest){xhr=new XMLHttpRequest();}else{	if(window.ActiveXObject){try {xhr=new ActiveXObject("Microsoft.XMLHTTP");	}
catch(e){	}}}return xhr;}	*/




// creates an XMLHttpRequest instance
function createXmlHttpRequestObject() 
{
	  // will store the reference to the XMLHttpRequest object
	  var xmlHttp;
	  // this should work for all browsers except IE6 and older
	  try
	  {
		// try to create XMLHttpRequest object
		xmlHttp = new XMLHttpRequest();
	  }
	  catch(e)
	  {
		// assume IE6 or older
		var XmlHttpVersions = new Array("MSXML2.XMLHTTP.6.0",
										"MSXML2.XMLHTTP.5.0",
										"MSXML2.XMLHTTP.4.0",
										"MSXML2.XMLHTTP.3.0",
										"MSXML2.XMLHTTP",
										"Microsoft.XMLHTTP");
		// try every prog id until one works
		for (var i=0; i<XmlHttpVersions.length && !xmlHttp; i++) 
		{
		  try 
		  { 
			// try to create XMLHttpRequest object
			xmlHttp = new ActiveXObject(XmlHttpVersions[i]);
		  } 
		  catch (e) {}
		}
	  }
	  // return the created object or display an error message
	  if (!xmlHttp)
		alert("Error creating the XMLHttpRequest object.");
	  else 
		return xmlHttp;
}