var xmlHttp
function GetXmlHttpObject()
{ 
	var objXMLHttp=null
	if (window.XMLHttpRequest)
	{
		objXMLHttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	return objXMLHttp
}
//============== Model ================
function commets(tt)
{ 
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="DispPhotoDetails.php?tt="+tt
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=onchange
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)

}
function onchange() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
	document.getElementById("display_cost?tt="+tt).innerHTML=xmlHttp.responseText 
	} 
	
}

//==================================another function==========================

function commets1(start)
{ 
 
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="DispPhotoDetails.php?start="+start
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=onchange
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)

}

function onchange() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
	document.getElementById("display_cost1").innerHTML=xmlHttp.responseText 
	} 
	
}

//==================================another function==========================
function showcategory1(str)
{ 
//alert(str);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
var url="query_country.php"
	url=url+"?catid="+str

	url=url+"&sid="+Math.random()
	//alert(url);
	xmlHttp.onreadystatechange=stateChanged6 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged6() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("scom").innerHTML=xmlHttp.responseText 
	} 
}
//==================================another Naming  function==========================
function naming(na)
{ 
//alert(str);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
var url="namereview.php"
	url=url+"?catid="+na
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=Naming12 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function Naming12() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("name").innerHTML=xmlHttp.responseText 
	} 
}







