function getXMLHTTP_()
{
	var A = null;
	try{
		A = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e){
		try{
			A = new ActiveXObject("Microsoft.XMLHTTP");
		} catch(oc){
			A = null;
		}
	}
	if(!A && typeof XMLHttpRequest != "undefined") {
		A = new XMLHttpRequest();
	}
	return A;
}

function ajaxCall(link, callBackFunc )
{
    xmlHttp = getXMLHTTP_();
    if (xmlHttp)
    {
	    requestUrl=link;
	    xmlHttp.onreadystatechange = ajaxCallBack;
	    xmlHttp.open("GET", requestUrl, true);
	    xmlHttp.send(null);
    }
	
	function ajaxCallBack()
	{
		if (xmlHttp.readyState == 4)
		{
			if (xmlHttp.status == 200)
			{
				callBackFunc(xmlHttp.responseText);
			}
		}			
	}
}
