function createXMLHttpRequest(){var _1=null;try{_1=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP");}catch(e){alert("Your browser does not support the XMLHttpRequest Object!");}return _1;}var xhr=createXMLHttpRequest();function selfpromo(id,_3,_4,_5){xhr.open("post","http://"+_4+"self_promo_process.php?id="+id+"&action="+_3+"&path="+_4+"&prefix="+_5);xhr.onreadystatechange=handleResponse_selfpromo;xhr.send("var=1");}function handleResponse_selfpromo(){if(xhr.readyState==4){var _6=xhr.responseText.split("|");if(_6[0].replace(/^\s+|\s+$/g,"")=="done"){if(_6[1].replace(/^\s+|\s+$/g,"")){if(_6[2].replace(/^\s+|\s+$/g,"")=="mark"){document.getElementById("selfpromo-"+_6[1].replace(/^\s+|\s+$/g,"")).innerHTML="Mark as Counted";document.getElementById("selfpromo-"+_6[1].replace(/^\s+|\s+$/g,"")).href="javascript:selfpromo('"+_6[1].replace(/^\s+|\s+$/g,"")+"', 'unmark', '"+_6[3].replace(/^\s+|\s+$/g,"")+"', '"+_6[4].replace(/^\s+|\s+$/g,"")+"');";new Effect.Opacity("comment-"+_6[1].replace(/^\s+|\s+$/g,""),{duration:0,from:1,to:0.7});}else{if(_6[2].replace(/^\s+|\s+$/g,"")=="unmark"){document.getElementById("selfpromo-"+_6[1].replace(/^\s+|\s+$/g,"")).innerHTML="Mark as Not Counted";document.getElementById("selfpromo-"+_6[1].replace(/^\s+|\s+$/g,"")).href="javascript:selfpromo('"+_6[1].replace(/^\s+|\s+$/g,"")+"', 'mark', '"+_6[3].replace(/^\s+|\s+$/g,"")+"', '"+_6[4].replace(/^\s+|\s+$/g,"")+"');";new Effect.Opacity("comment-"+_6[1].replace(/^\s+|\s+$/g,""),{duration:0,from:0.7,to:1});}}}else{alert("?");}}else{if(_6[0].replace(/^\s+|\s+$/g,"")=="error"){var _7="Error: "+_6[1].replace(/^\s+|\s+$/g,"");}else{alert("Response: "+_6[0].replace(/^\s+|\s+$/g,""));}}}}