var xmlHttp
function GetXmlHttpObject()
{ 
	var objXMLHttp=null
	if (window.XMLHttpRequest)
	{
		objXMLHttp=new XMLHttpRequest()
	}
	else if (window.ActiveXObject)
	{
		objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	}
	return objXMLHttp
}
//==================================another function==========================
function showcategory_test_sub(str)
{ 
//alert(str);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
var url="display_subrub_top.php"
	url=url+"?catid="+str

	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged6top 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged6top() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("scom_top").innerHTML=xmlHttp.responseText 
	} 
}
function showcategory11(str)
{ 
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
var url="display_subrub_main.php"
	url=url+"?catid="+str

	url=url+"&sid="+Math.random()
	//alert(url);
	xmlHttp.onreadystatechange=stateChanged66 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged66() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("scom_main").innerHTML=xmlHttp.responseText 
	} 
}

function showcategorymiddle(strmid)
{ 
//alert(strmid);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
var url="display_subrub_middle.php"
	url=url+"?catid="+strmid
	url=url+"&sid="+Math.random()
	xmlHttp.onreadystatechange=stateChanged66midle 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged66midle() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("scom_main_midle").innerHTML=xmlHttp.responseText 
	} 
}

function ShowBanner(banner,urlname){ 
//alert(banner);
//alert(urlname);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="getbanner.php"
	url=url+"?bannername="+banner
	url=url+"&linkname="+urlname
	xmlHttp.onreadystatechange=BannerChanged
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function BannerChanged() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("showbanner_trade").innerHTML=xmlHttp.responseText 
	} 
}

function ShowBannerinner(banner,urlname){ 
//alert(banner);
//alert(urlname);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="getbanner_innerpage.php"
	url=url+"?bannername="+banner
	url=url+"&linkname="+urlname
	xmlHttp.onreadystatechange=BannerChanged_inner
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function BannerChanged_inner() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("showbannerinner_trade").innerHTML=xmlHttp.responseText 
	} 
}

//========================================================= Right Page All Banner ===============================================
function ShowBanner_all(banner,urlname){ 
alert(banner);
alert(urlname);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="getbanner_all.php"
	url=url+"?bannername="+banner
	url=url+"&linkname="+urlname
	xmlHttp.onreadystatechange=BannerChanged_all
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function BannerChanged_all() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("showbanner_trade_all").innerHTML=xmlHttp.responseText 
	} 
}
//=======================================================loation found==============================
function locationfound_test(location){ 
alert(location);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
	var url="locationfound.php"
	url=url+"?location="+location
	url=url+"&linkname="+urlname
	xmlHttp.onreadystatechange=BannerChanged_all_location
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}
function BannerChanged_all_location() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("locationfound_dis").innerHTML=xmlHttp.responseText 
	} 
}
//==================================================free trial ==========================================

function showcategory11_front_side(str)
{ 
//alert(str);
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
var url="display_suburb_front.php"
	url=url+"?catid="+str

	url=url+"&sid="+Math.random()
	//alert(url);
	xmlHttp.onreadystatechange=display_sub_urb 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}



function display_sub_urb() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("location_found_suburb").innerHTML=xmlHttp.responseText 
	} 
}


function show_area(str)
{ 
	xmlHttp=GetXmlHttpObject()
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	} 
var url="area_listunder_sub.php"
	url=url+"?subrubID="+str

	url=url+"&sid="+Math.random()
	//alert(url);
	xmlHttp.onreadystatechange=stateChanged66_arealist 
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
}

function stateChanged66_arealist() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("area_scom_diaply").innerHTML=xmlHttp.responseText 
	} 
}
