function createXMLHttpRequest(){var a=null;try{a=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP")}catch(e){alert("Your browser does not support the XMLHttpRequest Object!")}return a}var xhr=createXMLHttpRequest();function selfpromo(a,b,c,d,e){xhr.open('post','http\://'+c+'self_promo_process.php?id='+a+'&action='+b+'&path='+c+'&prefix='+d+'&marker='+e);xhr.onreadystatechange=handleResponse_selfpromo;xhr.send('var=1')}function handleResponse_selfpromo(){if(xhr.readyState==4){var a=xhr.responseText.split('|');if(a[0].replace(/^\s+|\s+$/g,'')=='done'){if(a[1].replace(/^\s+|\s+$/g,'')){if(a[2].replace(/^\s+|\s+$/g,'')=='mark'){document.getElementById("selfpromo-"+a[1].replace(/^\s+|\s+$/g,'')).innerHTML="Mark as Counted";document.getElementById("markreviewbad-"+a[1].replace(/^\s+|\s+$/g,'')).innerHTML="";document.getElementById("selfpromo-"+a[1].replace(/^\s+|\s+$/g,'')).href="javascript:selfpromo('"+a[1].replace(/^\s+|\s+$/g,'')+"', 'unmark', '"+a[3].replace(/^\s+|\s+$/g,'')+"', '"+a[4].replace(/^\s+|\s+$/g,'')+"', '"+a[5].replace(/^\s+|\s+$/g,'')+"');";document.getElementById("selfpromoimg_bdp-"+a[1].replace(/^\s+|\s+$/g,'')).innerHTML="<img src='"+a[7].replace(/^\s+|\s+$/g,'')+"/wp-images/nocount.gif' alt='This review is either too short, uninformative, contains inaccurate information, deemed as an advertorial or user has exceeded the daily 7 reviews limit. No Yebber$ is awarded.' title='This review is either too short, uninformative, contains inaccurate information, deemed as an advertorial or user has exceeded the daily 7 reviews limit. No Yebber$ is awarded.'>"}else if(a[2].replace(/^\s+|\s+$/g,'')=='unmark'){document.getElementById("selfpromo-"+a[1].replace(/^\s+|\s+$/g,'')).innerHTML="Mark as Not Counted";document.getElementById("selfpromo-"+a[1].replace(/^\s+|\s+$/g,'')).href="javascript:selfpromo('"+a[1].replace(/^\s+|\s+$/g,'')+"', 'mark', '"+a[3].replace(/^\s+|\s+$/g,'')+"', '"+a[4].replace(/^\s+|\s+$/g,'')+"', '"+a[5].replace(/^\s+|\s+$/g,'')+"');";document.getElementById("markreviewbad-"+a[1].replace(/^\s+|\s+$/g,'')).innerHTML="Mark as BAD review";document.getElementById("markreviewbad-"+a[1].replace(/^\s+|\s+$/g,'')).href="javascript:markreviewbad('"+a[1].replace(/^\s+|\s+$/g,'')+"', 'mark', '"+a[3].replace(/^\s+|\s+$/g,'')+"', '"+a[4].replace(/^\s+|\s+$/g,'')+"', '"+a[5].replace(/^\s+|\s+$/g,'')+"');";document.getElementById("selfpromoimg_bdp-"+a[1].replace(/^\s+|\s+$/g,'')).innerHTML="";document.getElementById("mark2-"+a[1].replace(/^\s+|\s+$/g,'')).innerHTML=""}}else{alert("?")}}else if(a[0].replace(/^\s+|\s+$/g,'')=='error'){var b='Error: '+a[1].replace(/^\s+|\s+$/g,'')}else{alert("Response: "+a[0].replace(/^\s+|\s+$/g,''))}}}