
var http=null;

function GetHttpInstance()
{
	try
	{
		http		=	new  XMLHttpRequest();
		
	}
	catch(e)
	{
		try
		{
			http		=	new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch(e)
		{
			http		=	new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
}
function AJAXCall(URL1,CallType,ASync)
{
    //alert("Nitin")
	GetHttpInstance();	
	http.onreadystatechange=statechange;
	
	//alert("Nitin")
	
	http.open(CallType,URL1,ASync);
	http.send(null);
}
function statechange()
{
	if(http.readyState==4)
	{
		var Newdiv	=	document.createElement("div");
		//alert(http.status);
		if(http.status==200)
		{
		    
			Newdiv.innerHTML	=	http.responseText;
			http=null;
			//alert("nitinjs");
			nitin(Newdiv);
			
			
		}
	}
}