function ShowLogged(){var a=$get("header_membership");a.innerHTML="";www.rferl.org.Services.MembershipService.GetDisplayName(ShowLoggedCallback,ErrorCallbackAuth)}function ShowLoggedCallback(a){var b=$get("header_membership");if(a.length>0){b.innerHTML=a}}function ErrorCallbackAuth(a){}function RateComment(b,a){var c=document.getElementById("rate"+b);if(c!=null){c.className="item_hide"}www.rferl.org.Services.MembershipService.RateComment(b,a,RateCallback,ErrorCallbackAuth,b)}function RateCallback(a,c){if(a!=null&&a.length==3){if(a[0]=="none"){window.location="/login.aspx"}else{var e=document.getElementById("rate"+c);if(e!=null){e.className="ratediv"}if(a[0]=="stay"){var b=document.getElementById("thread"+c);if(b!=null&&a.length>0){b.innerHTML='<div class="forumMessageBox" ><table bgcolor="white" width=250 cellpadding=4 cellspacing=0  border=1 bordercolor="#FF850D" ><tr><td onclick="hideObject('+c+')"><b><a style="float:right;" href="javascript:hideObject('+c+');">X</a>&nbsp;&nbsp;'+a[2]+"</b></td></tr></table></div> "}}if(a[0]=="plus"){var d=document.getElementById("rateplus"+c);if(d!=null){d.className=d.className.replace("rate","voted");d.innerHTML=a[1]}}if(a[0]=="minus"){var f=document.getElementById("rateminus"+c);if(f!=null){f.className=f.className.replace("rate","voted");f.innerHTML=a[1]}}}}}function hideObject(b){var a=document.getElementById("thread"+b);if(a!=null){a.innerHTML=""}fixOperaRedraw("#0a0a0a")}if(typeof(Sys)!=="undefined"){Sys.Application.notifyScriptLoaded()};