//Creating and setting the instance of appropriate XMLHTTP Request object to a “XmlHttp” variable  
function getAjax()
{
	var XmlHttp;
	
	//Creating object of XMLHTTP in IE
	try
	{
		XmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e)
	{
		try
		{
			XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		} 
		catch(oc)
		{
			XmlHttp = null;
		}
	}
	//Creating object of XMLHTTP in Mozilla and Safari 
	if(!XmlHttp && typeof XMLHttpRequest != "undefined") 
	{
		XmlHttp = new XMLHttpRequest();
	}
	return XmlHttp;
}

function RS_getFileTxt(url){    
	if(navigator.appVersion.toLowerCase().indexOf('msie')!=-1){
	  var p = new ActiveXObject("Microsoft.XMLHTTP");
	}else{
		var p = new XMLHttpRequest();
	}
	p.open("GET", url, false);
	p.send(null);
	return p.responseText;
}


