function jxmlhttp_post( url, params, xmldocs, func, alt_callback_method ) { var xmldoc=null; if (typeof window.ActiveXObject!='undefined') { xmldoc = new ActiveXObject("Microsoft.XMLHTTP"); if ( alt_callback_method == true ) { xmldoc.onreadystatechange = function() { if ( xmldoc.readyState == 4 && xmldoc.status == 200 ) { func( xmldoc ); } } } else { xmldoc.onreadystatechange = func; } } else { xmldoc = new XMLHttpRequest(); xmldoc.onload = func; } if (!xmldoc) return xmldocs; xmldoc.open( "POST", url, true ); xmldoc.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); xmldoc.setRequestHeader("Content-length", params.length); xmldoc.setRequestHeader("Connection", "close"); xmldoc.send( params ); for (var i=0;i<= xmldocs.length;i++) { if (! xmldocs[i]) { xmldocs[i]=xmldoc; return xmldocs; } } xmldocs[i]=xmldoc; return xmldocs; } function jxmlhttp_get(url,xmldocs,func) { var xmldoc=null; if (typeof window.ActiveXObject!='undefined') { xmldoc = new ActiveXObject("Microsoft.XMLHTTP"); xmldoc.onreadystatechange = func; } else { xmldoc = new XMLHttpRequest(); xmldoc.onload = func; } if (!xmldoc) return xmldocs; xmldoc.open( "GET", url, true ); xmldoc.send( null ); for (var i=0;i<= xmldocs.length;i++) { if (! xmldocs[i]) { xmldocs[i]=xmldoc; return xmldocs; } } xmldocs[i]=xmldoc; return xmldocs; } function jhide_element(id) { var o=document.getElementById(id); if (o) o.style.display='none'; } function junhide_element(id) { var o=document.getElementById(id); if (o) o.style.display=''; } function TrackLink( link_node ) { if ( link_node == null || typeof( link_node ) != "object" || typeof( link_node.href ) == "undefined" ) { return; } var url = '/url.php?url=' + encodeURIComponent( link_node.href ) + '&ajax=1'; var xmldocs = [ ]; jxmlhttp_get( url, xmldocs, new Function("") ); }