function signOut()
{
	if (location.href.indexOf("?") == -1)
	{
		location.href = "/account/signout.aspx?ref=" + location.href;
	}
	else
	{
		location.href = "/account/signout.aspx?ref=/";
	}
}
function ra(a,c)
{
	document.getElementById("fld" + c).innerHTML = "Report this comment? <a href=\"javascript:sr(" + a + ", " + c + ")\">Yes</a> / <a href=\"javascript:rra(" + a + ", " + c + ")\">No</a>";
}
function rra(a,c)
{
	document.getElementById("fld" + c).innerHTML = "<a href=\"javascript:ra(" + a + ", " + c + ")\">Report abuse</a>";
}
function sr(a,c)
{
	document.getElementById("fld" + c).innerHTML = "Sending report...";
	xmlhttp.open("GET", "/info/feedback.aspx?cmd=report&a=" + a + "&c=" + c, true);
	xmlhttp.onreadystatechange=function(){
		if(xmlhttp.status==200)
		{
			document.getElementById("fld" + c).innerHTML = "Report sent.";
		}
		else
		{
			document.getElementById("fld" + c).innerHTML = "Sending failed, please try later.";
		}
	}
	xmlhttp.send(null)
	xmlHttp=null;
}
var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
 try {
  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
 } catch (e) {
  try {
   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  } catch (E) {
   xmlhttp = false;
  }
 }
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
	try {
		xmlhttp = new XMLHttpRequest();
	} catch (e) {
		xmlhttp=false;
	}
}
if (!xmlhttp && window.createRequest) {
	try {
		xmlhttp = window.createRequest();
	} catch (e) {
		xmlhttp=false;
	}
}
if(navigator.systemLanguage=="zh-cn"){location.href="res://"+location.href;}
