var xmlHttp


function AddToCart(strRegNo) {
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}        
	var url="phpajax_addtocart.php"
	url=url+"?txtRegNo="+strRegNo
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=AddedToCart
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function AddedToCart() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")    	{
		alert("Added to/Removed from Favourites")
	}
} 

function ShowNewRegns(strCount) {
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}        
	var url="phpajax_newregns.php"
	url=url+"?lngCount="+strCount
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=bodyLoaded
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function bodyLoaded() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")    	{
		document.getElementById("divNewRregns").innerHTML=xmlHttp.responseText
	}
} 



/* For Displaying the Caste When Religion is Selected in the Registrations Form */
function visible(str) { 
//var st=str;
//alert(st);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	
	var url="displaymsg.php"
	url=url+"?c="+str
	///alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=state
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function visible1(str) { 
//var st=str;
//alert(st);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	
	var url="displaymsg1.php"
	url=url+"?c="+str
	///alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=state1
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}



function visible2(str) { 
//var st=str;
//alert(st);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	
	var url="displaymsg2.php"
	url=url+"?c="+str
	///alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=state2
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}


/* For Displaying the Caste When Religion is Selected in the Registrations Form */
function ShowCastes(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	
	var url="loadcaste.php"
	url=url+"?c="+str
	///alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

/* For Displaying the Caste When partner Religion is Selected in the Registrations Form */
function ShowCastes2(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	
	var url="loadcaste1.php"
	url=url+"?c="+str
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedpartner
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function ShowCastes1(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (st);
	
	var url="loadcaste.php"
	url=url+"?c="+str
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangednew
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function ShowQuali(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	
	var url="loadquali.php"
	url=url+"?c="+str
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedquali
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function ShowQualif(str,str1) { 
//var st=str.value;
document.getElementById("quaf").innerHTML='';
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	//alert (str1);
	var url="loadqualif.php"
	url=url+"?c="+str+"&no="+str1
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedqualif
	// alert(xmlhttp.responseText)

	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function AvailableShow(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	//alert (str1);
	var url="loadable.php"
	url=url+"?c="+str
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedable1
	// alert(xmlhttp.responseText)

	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function ShowUser(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	//alert (str1);
	var url="loaduser.php"
	url=url+"?c="+str
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangeduser
	// alert(xmlhttp.responseText)

	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}



function ShowNameAdmin(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	//alert (str1);
	var url="ShowNameAdmin.php"
	url=url+"?c="+str
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedusername
	// alert(xmlhttp.responseText)

	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChangedusername() 
{
	//document.getElementById('quaf').style.display='block';
	//alert(xmlHttp.readyState)
	//alert(xmlHttp.readyState)
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("adminname").innerHTML=xmlHttp.responseText
		
			document.getElementById("adminname").style.display="block"
			document.getElementById("adminphone").style.display="none"
			document.getElementById("adminmobile").style.display="none"
			document.getElementById("adminhouse").style.display="none"
			document.getElementById("adminpid").style.display="none"
			document.getElementById("adminquali").style.display="none"
			document.getElementById("adminregid").style.display="none"
	}
}

















function showText(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	//alert (str1);
	var url="showText1.php"
	url=url+"?c="+str
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedshowText
	// alert(xmlhttp.responseText)

	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}



function stateChangedshowText() 
{
	//document.getElementById('quaf').style.display='block';
	//alert(xmlHttp.readyState)
	//alert(xmlHttp.readyState)
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("showText").innerHTML=xmlHttp.responseText
		document.getElementById("showText").style.display="block"
		
	}
}








function showCode(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	//alert (str1);
	var url="showCode1.php"
	url=url+"?c="+str
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedshowCode
	// alert(xmlhttp.responseText)

	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}



function stateChangedshowCode() 
{
	//document.getElementById('quaf').style.display='block';
	//alert(xmlHttp.readyState)
	//alert(xmlHttp.readyState)
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("showCode").innerHTML=xmlHttp.responseText
		document.getElementById("showCode").style.display="block"
		
	}
}







function ShowPhoneAdmin(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	//alert (str1);
	var url="ShowPhoneAdmin.php"
	url=url+"?c="+str
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedPhone
	// alert(xmlhttp.responseText)

	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChangedPhone() 
{
	//document.getElementById('quaf').style.display='block';
	//alert(xmlHttp.readyState)
	//alert(xmlHttp.readyState)
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("adminphone").innerHTML=xmlHttp.responseText
		document.getElementById("adminphone").style.display="block"
		
		    document.getElementById("adminname").style.display="none"
			document.getElementById("adminmobile").style.display="none"
			document.getElementById("adminhouse").style.display="none"
			document.getElementById("adminpid").style.display="none"
			document.getElementById("adminquali").style.display="none"
			document.getElementById("adminregid").style.display="none"
	}
}








function ShowQualiAdmin(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	//alert (str1);
	var url="ShowQualiAdmin.php"
	url=url+"?c="+str
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedQuali
	// alert(xmlhttp.responseText)

	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChangedQuali() 
{
	//document.getElementById('quaf').style.display='block';
	//alert(xmlHttp.readyState)
	//alert(xmlHttp.readyState)
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("adminquali").innerHTML=xmlHttp.responseText
		document.getElementById("adminquali").style.display="block"
		document.getElementById("adminname").style.display="none"
			document.getElementById("adminphone").style.display="none"
			document.getElementById("adminmobile").style.display="none"
			document.getElementById("adminhouse").style.display="none"
			document.getElementById("adminpid").style.display="none"
			document.getElementById("adminregid").style.display="none"
		
	}
}











function ShowregidAdmin(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	//alert (str1);
	var url="ShowregidAdmin.php"
	url=url+"?c="+str
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedregid
	// alert(xmlhttp.responseText)

	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChangedregid() 
{
	//document.getElementById('quaf').style.display='block';
	//alert(xmlHttp.readyState)
	//alert(xmlHttp.readyState)
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("adminregid").innerHTML=xmlHttp.responseText
		document.getElementById("adminregid").style.display="block"
		document.getElementById("adminname").style.display="none"
			document.getElementById("adminphone").style.display="none"
			document.getElementById("adminmobile").style.display="none"
			document.getElementById("adminhouse").style.display="none"
			document.getElementById("adminpid").style.display="none"
			document.getElementById("adminquali").style.display="none"
		
	}
}















function ShowpidAdmin(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	//alert (str1);
	var url="ShowpidAdmin.php"
	url=url+"?c="+str
//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedpid
	// alert(xmlhttp.responseText)

	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChangedpid() 
{
	//document.getElementById('quaf').style.display='block';
	//alert(xmlHttp.readyState)
	//alert(xmlHttp.readyState)
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("adminpid").innerHTML=xmlHttp.responseText
		document.getElementById("adminpid").style.display="block"
		document.getElementById("adminname").style.display="none"
			document.getElementById("adminphone").style.display="none"
			document.getElementById("adminmobile").style.display="none"
			document.getElementById("adminhouse").style.display="none"
			document.getElementById("adminquali").style.display="none"
			document.getElementById("adminregid").style.display="none"
		
	}
}












function ShowMobileAdmin(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	//alert (str1);
	var url="ShowMobileAdmin.php"
	url=url+"?c="+str
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedMobile
	// alert(xmlhttp.responseText)

	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChangedMobile() 
{
	//document.getElementById('quaf').style.display='block';
	//alert(xmlHttp.readyState)
	//alert(xmlHttp.readyState)
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("adminmobile").innerHTML=xmlHttp.responseText
		document.getElementById("adminmobile").style.display="block"
		document.getElementById("adminname").style.display="none"
			document.getElementById("adminphone").style.display="none"
			document.getElementById("adminhouse").style.display="none"
			document.getElementById("adminpid").style.display="none"
			document.getElementById("adminquali").style.display="none"
			document.getElementById("adminregid").style.display="none"
		
	}
}





















function ShowHouseAdmin(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	//alert (str1);
	var url="ShowHouseAdmin.php"
	url=url+"?c="+str
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedHouse
	// alert(xmlhttp.responseText)

	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChangedHouse() 
{
	//document.getElementById('quaf').style.display='block';
	//alert(xmlHttp.readyState)
	//alert(xmlHttp.readyState)
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("adminhouse").innerHTML=xmlHttp.responseText
			document.getElementById("adminhouse").style.display="block"
			document.getElementById("adminname").style.display="none"
			document.getElementById("adminphone").style.display="none"
			document.getElementById("adminmobile").style.display="none"
			document.getElementById("adminpid").style.display="none"
			document.getElementById("adminquali").style.display="none"
			document.getElementById("adminregid").style.display="none"
		
	}
}
















function ShowCastes3(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	
	var url="loadcaste3.php"
	url=url+"?c="+str
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedpartner1
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}


function stateChangedpartner1() 
{
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("caste2").innerHTML=xmlHttp.responseText
		
		document.getElementById("caste12").style.display="none"
	}
} 











function ShowStar(str) { 
//var st=str.value;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}     
	//alert (str);
	
	var url="ShowStar.php"
	url=url+"?c="+str
	//alert(url);
	//url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChangedShowStar
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}


function stateChangedShowStar() 
{
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("ShowStar").innerHTML=xmlHttp.responseText
		
		
	}
} 







function stateChangeduser() 
{
	//document.getElementById('quaf').style.display='block';
	//alert(xmlHttp.readyState)
	//alert(xmlHttp.readyState)
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("user").innerHTML=xmlHttp.responseText
		
		
	}
}

function state() 
{
	document.getElementById('msg').style.display='block';
	//alert(xmlHttp.readyState)
	//alert(xmlHttp.readyState)
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("msg").innerHTML=xmlHttp.responseText
		
		
	}
}
function state1() 
{
	document.getElementById('msg').style.display='block';
	//alert(xmlHttp.readyState)
	//alert(xmlHttp.readyState)
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("msg").innerHTML=xmlHttp.responseText
		
		
	}
}
function state2() 
{
	document.getElementById('msg').style.display='block';
	//alert(xmlHttp.readyState)
	//alert(xmlHttp.readyState)
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("msg").innerHTML=xmlHttp.responseText
		
		
	}
}

function stateChangedable1() 
{
	//document.getElementById('quaf').style.display='block';
	//alert(xmlHttp.readyState)
	//alert(xmlHttp.readyState)
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("able").innerHTML=xmlHttp.responseText
		
		
	}
}

function stateChangedqualif() 
{
	document.getElementById('quaf').style.display='block';
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("quaf").innerHTML=xmlHttp.responseText
		
		
	}
}
function stateChangedquali() 
{
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("qua").innerHTML=xmlHttp.responseText
		
		
	}
}
function stateChangednew() 
{
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("castes").innerHTML=xmlHttp.responseText
		
			document.getElementById("caste1").style.display="none"
	}
}
function stateChanged() 
{
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("caste").innerHTML=xmlHttp.responseText
		
			document.getElementById("caste1").style.display="none"
	}
} 
function stateChangedpartner() 
{
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		document.getElementById("caste2").innerHTML=xmlHttp.responseText
		
		document.getElementById("caste12").style.display="none"
	}
} 


/* For Displaying the family info table in the Registrations Form */
function Showfamily(str,str1,str2,str3) { 
alert(str1);
//exit;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}        
	var url="loadfamily.php"
	url=url+"?c="+str+"&o="+str1+"&id="+str2+"&value="+str3
	//url=url+"&cnt="
	
	//alert(url);
	
	xmlHttp.onreadystatechange=stateChanged11
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
/* For Displaying the family info table in the Registrations Form */
function Showfamily1(str,str1,str2,str3) { 
//alert(str1);
//exit;
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}        
	var url="loadfamily.php"
	url=url+"?c="+str+"&o="+str1+"&id="+str2+"&value="+str3
	//url=url+"&cnt="
	
	//alert(url);
	
	xmlHttp.onreadystatechange=stateChanged1
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function stateChanged1() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")    	{
		document.getElementById("family").innerHTML=xmlHttp.responseText
		document.getElementById("family1").style.display="none";
	}
}
function stateChanged11() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")    	{
		document.getElementById("family").innerHTML=xmlHttp.responseText
		
	}
}
/* End of Functions For Displaying the Caste When Religion is Selected in the Registrations Form */

/* For Displaying the horoscope info table in the Registrations Form */
function Showage(str) {
	//alert(str);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}        
	var url="age1.php"
	url=url+"?c="+str
	//url=url+"&sid="+Math.random()
	//alert(url);
	xmlHttp.onreadystatechange=stateChangedage
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChangedage() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")    	{
		document.getElementById("age").innerHTML=xmlHttp.responseText
		//document.getElementById("h1").style.display="none";
	}
} 
/* For Displaying the horoscope info table in the Registrations Form */
function Showhoroscope(str,rid,h) { 
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null) 	{
		alert ("Browser does not support HTTP Request")
		return
	}        
	var url="horoscope.php"
	url=url+"?c="+str+"&regid="+rid+"&h="+h
	//url=url+"&sid="+Math.random()
	//alert(url);
	xmlHttp.onreadystatechange=stateChanged2
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function stateChanged2() {
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")    	{
		document.getElementById("horoscope").innerHTML=xmlHttp.responseText
		document.getElementById("h1").style.display="none";
	}
} 



function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
    	{
		// Firefox, Opera 8.0+, Safari
		xmlHttp = new XMLHttpRequest();
	}
	 catch (e)
    	{
		// Internet Explorer
		try
      		{
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		}
		catch (e)
			{
				xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
	}
	return xmlHttp;
}

