// JavaScript Document //muthu code var boxDiv=""; function ShowBox_PXT(section,inp) { xmlHttp_Box_PXT=GetXmlHttpObject_Box_PXT() if (xmlHttp_Box_PXT==null) { alert ("Browser does not support HTTP Request") return } var url="./classifieds_ajax.php" url=url + "?section=" + section + "&inp=" + inp + "&" url=url+"sid="+Math.random() //alert(url); xmlHttp_Box_PXT.onreadystatechange=stateChanged_Box_PXT xmlHttp_Box_PXT.open("GET",url,true) xmlHttp_Box_PXT.send(null) } function stateChanged_Box_PXT() { if (xmlHttp_Box_PXT.readyState==4 || xmlHttp_Box_PXT.readyState=="complete") { document.getElementById("PxtBox").innerHTML= xmlHttp_Box_PXT.responseText; } } function GetXmlHttpObject_Box_PXT(handler) { var objXMLHttp_Box_PXT=null if (window.XMLHttpRequest) { objXMLHttp_Box_PXT=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp_Box_PXT=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp_Box_PXT } function ShowBox_Top5(section,inp) { xmlHttp_Box_Top5=GetXmlHttpObject_Box_Top5() if (xmlHttp_Box_Top5==null) { alert ("Browser does not support HTTP Request") return } var url="./classifieds_ajax.php" url=url + "?section=" + section + "&inp=" + inp + "&" url=url+"sid="+Math.random() //alert(url); xmlHttp_Box_Top5.onreadystatechange=stateChanged_Box_Top5 xmlHttp_Box_Top5.open("GET",url,true) xmlHttp_Box_Top5.send(null) } function stateChanged_Box_Top5() { if (xmlHttp_Box_Top5.readyState==4 || xmlHttp_Box_Top5.readyState=="complete") { //alert(xmlHttp_Box_Top5.responseText); document.getElementById("Top5").innerHTML= xmlHttp_Box_Top5.responseText; } } function GetXmlHttpObject_Box_Top5(handler) { var objXMLHttp_Box_Top5=null if (window.XMLHttpRequest) { objXMLHttp_Box_Top5=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp_Box_Top5=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp_Box_Top5 } function ShowBox_SubCat(section,inp) { xmlHttp_Box_SubCat=GetXmlHttpObject_Box_SubCat() if (xmlHttp_Box_SubCat==null) { alert ("Browser does not support HTTP Request") return } var url="./classifieds_ajax.php" url=url + "?section=" + section + "&inp=" + inp + "&" url=url+"sid="+Math.random() //alert(url); xmlHttp_Box_SubCat.onreadystatechange=stateChanged_Box_SubCat xmlHttp_Box_SubCat.open("GET",url,true) xmlHttp_Box_SubCat.send(null) } function stateChanged_Box_SubCat() { if (xmlHttp_Box_SubCat.readyState==4 || xmlHttp_Box_SubCat.readyState=="complete") { //alert(xmlHttp_Box_SubCat.responseText); document.getElementById("SubCat").innerHTML= xmlHttp_Box_SubCat.responseText; } } function GetXmlHttpObject_Box_SubCat(handler) { var objXMLHttp_Box_SubCat=null if (window.XMLHttpRequest) { objXMLHttp_Box_SubCat=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp_Box_SubCat=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp_Box_SubCat } function ShowBox_Cat(section,inp) { xmlHttp_Box_Cat=GetXmlHttpObject_Box_Cat() if (xmlHttp_Box_Cat==null) { alert ("Browser does not support HTTP Request") return } var url="./classifieds_ajax.php" url=url + "?section=" + section + "&inp=" + inp + "&" url=url+"sid="+Math.random() //alert(url); xmlHttp_Box_Cat.onreadystatechange=stateChanged_Box_Cat xmlHttp_Box_Cat.open("GET",url,true) xmlHttp_Box_Cat.send(null) } function stateChanged_Box_Cat() { if (xmlHttp_Box_Cat.readyState==4 || xmlHttp_Box_Cat.readyState=="complete") { //alert(xmlHttp_Box_Cat.responseText); document.getElementById("Cat").innerHTML= xmlHttp_Box_Cat.responseText; } } function GetXmlHttpObject_Box_Cat(handler) { var objXMLHttp_Box_Cat=null if (window.XMLHttpRequest) { objXMLHttp_Box_Cat=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp_Box_Cat=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp_Box_Cat } function ShowBox_Index_BuySell(inp,cat_id) { xmlHttp_Index_BuySell=GetXmlHttpObject_Index_BuySell() if (xmlHttp_Index_BuySell==null) { alert ("Browser does not support HTTP Request") return } var url="./classifieds_ajax.php" url=url + "?section=Index-section&show_fname=ShowBox_Index_BuySell&inp=" + inp + "&cat_id=" + cat_id + "&" url=url+"sid="+Math.random() //alert(url); xmlHttp_Index_BuySell.onreadystatechange=stateChanged_Index_BuySell xmlHttp_Index_BuySell.open("GET",url,true) xmlHttp_Index_BuySell.send(null) } function stateChanged_Index_BuySell() { if (xmlHttp_Index_BuySell.readyState==4 || xmlHttp_Index_BuySell.readyState=="complete") { //alert(xmlHttp_Index_BuySell.responseText); document.getElementById("index-buysell").innerHTML= xmlHttp_Index_BuySell.responseText; } } function GetXmlHttpObject_Index_BuySell(handler) { var objXMLHttp_Index_BuySell=null if (window.XMLHttpRequest) { objXMLHttp_Index_BuySell=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp_Index_BuySell=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp_Index_BuySell } function ShowBox_Index_Personal(inp,cat_id) { xmlHttp_Index_Personal=GetXmlHttpObject_Index_Personal() if (xmlHttp_Index_Personal==null) { alert ("Browser does not support HTTP Request") return } var url="./classifieds_ajax.php" url=url + "?section=Index-section&show_fname=ShowBox_Index_Personal&inp=" + inp + "&cat_id=" + cat_id + "&" url=url+"sid="+Math.random() //alert(url); xmlHttp_Index_Personal.onreadystatechange=stateChanged_Index_Personal xmlHttp_Index_Personal.open("GET",url,true) xmlHttp_Index_Personal.send(null) } function stateChanged_Index_Personal() { if (xmlHttp_Index_Personal.readyState==4 || xmlHttp_Index_Personal.readyState=="complete") { //alert(xmlHttp_Index_Personal.responseText); document.getElementById("index-personal").innerHTML= xmlHttp_Index_Personal.responseText; } } function GetXmlHttpObject_Index_Personal(handler) { var objXMLHttp_Index_Personal=null if (window.XMLHttpRequest) { objXMLHttp_Index_Personal=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp_Index_Personal=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp_Index_Personal } function ShowBox_Index_Car(inp,cat_id) { xmlHttp_Index_Car=GetXmlHttpObject_Index_Car() if (xmlHttp_Index_Car==null) { alert ("Browser does not support HTTP Request") return } var url="./classifieds_ajax.php" url=url + "?section=Index-section&show_fname=ShowBox_Index_Car&inp=" + inp + "&cat_id=" + cat_id + "&" url=url+"sid="+Math.random() //alert(url); xmlHttp_Index_Car.onreadystatechange=stateChanged_Index_Car xmlHttp_Index_Car.open("GET",url,true) xmlHttp_Index_Car.send(null) } function stateChanged_Index_Car() { if (xmlHttp_Index_Car.readyState==4 || xmlHttp_Index_Car.readyState=="complete") { //alert(xmlHttp_Index_Car.responseText); document.getElementById("index-car").innerHTML= xmlHttp_Index_Car.responseText; } } function GetXmlHttpObject_Index_Car(handler) { var objXMLHttp_Index_Car=null if (window.XMLHttpRequest) { objXMLHttp_Index_Car=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp_Index_Car=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp_Index_Car } function ShowBox_Index_Community(inp,cat_id) { xmlHttp_Index_Community=GetXmlHttpObject_Index_Community() if (xmlHttp_Index_Community==null) { alert ("Browser does not support HTTP Request") return } var url="./classifieds_ajax.php" url=url + "?section=Index-section&show_fname=ShowBox_Index_Community&inp=" + inp + "&cat_id=" + cat_id + "&" url=url+"sid="+Math.random() //alert(url); xmlHttp_Index_Community.onreadystatechange=stateChanged_Index_Community xmlHttp_Index_Community.open("GET",url,true) xmlHttp_Index_Community.send(null) } function stateChanged_Index_Community() { if (xmlHttp_Index_Community.readyState==4 || xmlHttp_Index_Community.readyState=="complete") { //alert(xmlHttp_Index_Community.responseText); document.getElementById("index-community").innerHTML= xmlHttp_Index_Community.responseText; } } function GetXmlHttpObject_Index_Community(handler) { var objXMLHttp_Index_Community=null if (window.XMLHttpRequest) { objXMLHttp_Index_Community=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp_Index_Community=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp_Index_Community } function ShowBox_Index_Computer(inp,cat_id) { xmlHttp_Index_Computer=GetXmlHttpObject_Index_Computer() if (xmlHttp_Index_Computer==null) { alert ("Browser does not support HTTP Request") return } var url="./classifieds_ajax.php" url=url + "?section=Index-section&show_fname=ShowBox_Index_Computer&inp=" + inp + "&cat_id=" + cat_id + "&" url=url+"sid="+Math.random() //alert(url); xmlHttp_Index_Computer.onreadystatechange=stateChanged_Index_Computer xmlHttp_Index_Computer.open("GET",url,true) xmlHttp_Index_Computer.send(null) } function stateChanged_Index_Computer() { if (xmlHttp_Index_Computer.readyState==4 || xmlHttp_Index_Computer.readyState=="complete") { //alert(xmlHttp_Index_Computer.responseText); document.getElementById("index-computer").innerHTML= xmlHttp_Index_Computer.responseText; } } function GetXmlHttpObject_Index_Computer(handler) { var objXMLHttp_Index_Computer=null if (window.XMLHttpRequest) { objXMLHttp_Index_Computer=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp_Index_Computer=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp_Index_Computer } function ShowBox_Index_Electronics(inp,cat_id) { xmlHttp_Index_Electronics=GetXmlHttpObject_Index_Electronics() if (xmlHttp_Index_Electronics==null) { alert ("Browser does not support HTTP Request") return } var url="./classifieds_ajax.php" url=url + "?section=Index-section&show_fname=ShowBox_Index_Electronics&inp=" + inp + "&cat_id=" + cat_id + "&" url=url+"sid="+Math.random() //alert(url); xmlHttp_Index_Electronics.onreadystatechange=stateChanged_Index_Electronics xmlHttp_Index_Electronics.open("GET",url,true) xmlHttp_Index_Electronics.send(null) } function stateChanged_Index_Electronics() { if (xmlHttp_Index_Electronics.readyState==4 || xmlHttp_Index_Electronics.readyState=="complete") { //alert(xmlHttp_Index_Electronics.responseText); document.getElementById("index-electronics").innerHTML= xmlHttp_Index_Electronics.responseText; } } function GetXmlHttpObject_Index_Electronics(handler) { var objXMLHttp_Index_Electronics=null if (window.XMLHttpRequest) { objXMLHttp_Index_Electronics=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp_Index_Electronics=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp_Index_Electronics } function ShowBox_Index_More(section,inp) { xmlHttp_Box_Index_More=GetXmlHttpObject_Box_Index_More() if (xmlHttp_Box_Index_More==null) { alert ("Browser does not support HTTP Request") return } var url="./classifieds_ajax.php" url=url + "?section=" + section + "&inp=" + inp + "&" url=url+"sid="+Math.random() //alert(url); xmlHttp_Box_Index_More.onreadystatechange=stateChanged_Box_Index_More xmlHttp_Box_Index_More.open("GET",url,true) xmlHttp_Box_Index_More.send(null) } function stateChanged_Box_Index_More() { if (xmlHttp_Box_Index_More.readyState==4 || xmlHttp_Box_Index_More.readyState=="complete") { //alert(xmlHttp_Box_Index_More.responseText); document.getElementById("index-more").innerHTML= xmlHttp_Box_Index_More.responseText; } } function GetXmlHttpObject_Box_Index_More(handler) { var objXMLHttp_Box_Index_More=null if (window.XMLHttpRequest) { objXMLHttp_Box_Index_More=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp_Box_Index_More=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp_Box_Index_More } function add_listing_db(inp) { xmlHttp_Add_List=GetXmlHttpObject_Add_List() if (xmlHttp_Add_List==null) { alert ("Browser does not support HTTP Request") return } var url="./classifieds_ajax.php" url=url + "?section=add_list&inp=" + inp + "&" url=url+"sid="+Math.random() //alert(url); xmlHttp_Add_List.onreadystatechange=stateChanged_Add_List xmlHttp_Add_List.open("GET",url,true) xmlHttp_Add_List.send(null) } function stateChanged_Add_List() { if (xmlHttp_Add_List.readyState==4 || xmlHttp_Add_List.readyState=="complete") { alert(xmlHttp_Add_List.responseText); //document.getElementById("index-more").innerHTML= xmlHttp_Add_List.responseText; } } function GetXmlHttpObject_Add_List(handler) { var objXMLHttp_Add_List=null if (window.XMLHttpRequest) { objXMLHttp_Add_List=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp_Add_List=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp_Add_List } function send_mail_to_friends(eml,inp) { xmlHttp_SendFriend=GetXmlHttpObject_SendFriend() if (xmlHttp_SendFriend==null) { alert ("Browser does not support HTTP Request") return } var url="./classifieds_ajax.php" url=url + "?section=send_email_to_friend&eml=" + eml + "&inp=" + inp + "&" url=url+"sid="+Math.random() //alert(url); xmlHttp_SendFriend.onreadystatechange=stateChanged_SendFriend xmlHttp_SendFriend.open("GET",url,true) xmlHttp_SendFriend.send(null) } function stateChanged_SendFriend() { if (xmlHttp_SendFriend.readyState==4 || xmlHttp_SendFriend.readyState=="complete") { //alert(xmlHttp_SendFriend.responseText); document.getElementById("sendfriendbox").innerHTML= "

Thank you for sending this link to your friend!

Back"; } } function GetXmlHttpObject_SendFriend(handler) { var objXMLHttp_SendFriend=null if (window.XMLHttpRequest) { objXMLHttp_SendFriend=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp_SendFriend=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp_SendFriend } function reply_to_ad(eml,inp,mobile,message) { xmlHttp_ReplyBox=GetXmlHttpObject_ReplyBox() if (xmlHttp_ReplyBox==null) { alert ("Browser does not support HTTP Request") return } var url="./classifieds_ajax.php" url=url + "?section=ad_reply&eml=" + eml + "&inp=" + inp + "&mobile=" + mobile + "&message=" + message + "&" url=url+"sid="+Math.random() //alert(url); xmlHttp_ReplyBox.onreadystatechange=stateChanged_ReplyBox xmlHttp_ReplyBox.open("GET",url,true) xmlHttp_ReplyBox.send(null) } function stateChanged_ReplyBox() { if (xmlHttp_ReplyBox.readyState==4 || xmlHttp_ReplyBox.readyState=="complete") { //alert(xmlHttp_ReplyBox.responseText); document.getElementById("replybox").innerHTML= "

Thank you for replying this ad!

Back"; } } function GetXmlHttpObject_ReplyBox(handler) { var objXMLHttp_ReplyBox=null if (window.XMLHttpRequest) { objXMLHttp_ReplyBox=new XMLHttpRequest() } else if (window.ActiveXObject) { objXMLHttp_ReplyBox=new ActiveXObject("Microsoft.XMLHTTP") } return objXMLHttp_ReplyBox }