function Logout()
{
	SetRedirect(true);
	AddSubmitParameter("returnurl", applicationPath);
	Submit(99, "logoff");
}

function Print()
{
	window.print();
}

function Vote(pollID, answerID)
{
	var xmlRequest,
		div;
	
	if ((div = document.getElementById("poll")) != null)
	{
		xmlRequest = new XmlRequest(applicationPath + "XmlHttp/Vote.aspx", 
			applicationPath + "Common/Poll.xsl");
		xmlRequest.TransformToElement(div, "<root pollid=\"" + pollID.toString() + "\" answerid=\"" + answerID.toString() + "\" />");
	}
}
