function c_antajax(urlstr1,xml){ var xmlHttp; this.cxht= function(){ if(window.ActiveXObject){ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } else if(window.XMLHttpRequest){ xmlHttp = new XMLHttpRequest(); } }; this.cxht(); xmlHttp.onreadystatechange = function(){ if(xmlHttp.readyState ==4){ if(xmlHttp.status ==200){ c_parseResults(xmlHttp); } } }; xmlHttp.open("POST",urlstr1); xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;"); xmlHttp.send(null); } function c_parseResults(xmlHttp){ var r = xmlHttp.responseText; var arr = r.split('::'); var o_s_list = document.getElementById('o_s_list'); if(typeof(o_s_list) =='object'){ try{ var ot = o_s_list.innerHTML; }catch(err){ var ot = 'null'; } } } var aurl = "https://www.antpedia.com/ant_count_op.php?id=457dd6b1d88fb9fb255b34060f2a23e0&url="+encodeURIComponent(document.referrer === '' ? document.URL : document.referrer); c_antajax(aurl);