var rtpth=location.href.match(/(http:\/\/.*?\/)index\.php/)[1]; function createXMLRequest() { if(window.XMLHttpRequest) { return new XMLHttpRequest(); } else if(window.ActiveXObject) { try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) { return false; } } } } function qdf(fid,tid,pid,auth) { if(!confirm('Are you sure you wish to delete this post?'))return; var thd=createXMLRequest(); thd.open('GET',rtpth+'index.php?act=Mod&CODE=04&f='+fid+'&t='+tid+'&p='+pid+'&auth_key='+auth,true); thd.onreadystatechange = function(){if(thd.readyState==4){ var c=thd.responseText; if(c.match(/The error returned was/)) { window.location='index.php?act=Mod&CODE=04&f='+fid+'&t='+tid+'&p='+pid+'&auth_key='+auth } else { var ent=null; var lnks=document.anchors; for(var i=0;i