function send_srg(t,p,o,a) { var req = null; if(window.XMLHttpRequest) req = new XMLHttpRequest(); else if (window.ActiveXObject) req = new ActiveXObject(Microsoft.XMLHTTP); req.onreadystatechange = function() { if(req.readyState == 4) { //document.getElementById('ajx').innerHTML="Please wait ....."; var ajaxDisplay = document.getElementById('middlewrap'); ajaxDisplay.innerHTML = req.responseText; } }; if(document.lmenuform.photo.checked == true){ var photo = 'yes'; }else{ var photo = 'none'; } var ext = "page=" + p + "&order=" + o + "&ats=" + a + "&"; var query = ext + "photo=" + photo + "&cat_id=264&cat=fax-epabx-office-equipment&at=0&city=greenwood-in"; req.open("GET", "/marketplace/search_ajax_cat.php?" + query, true); req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); req.setRequestHeader("Connection", "close"); req.send(null); //alert(query); } function send(p,o,a){ var d=new Date(); var t=d.getTime(); var as = document.getElementById('middlewrap'); as.innerHTML = '