function PollSubmit(poll,opt)
{
	if (CheckVoteCookie(poll,opt))
	{
		if (top.window.name != "pollpopup")
		{
			wPopup('/polls/poll.asp?popup=1',605,450,'pollpopup');
			document.forms.pollvoteform.target = 'pollpopup';
		}
		//document.forms.pollvoteform.submit();
		return true;
	}
	else
	{
		return false;
	}
}

function CheckVoteCookie(poll,opt)
{
	// 20060810 RW - Cookies handled by server side code?
	//expires = "Thu, 01-Jan-49 00:00:01 GMT";
	//if (opt == "single_vote" || !opt)
	//{
	//	if ( getCookie(poll + "_voted") == "1" )
	//	{
	//		alert("Sorry, but only one vote is allowed for that poll.");
	//		return false;
	//	}
	//	else
	//	{
	//		setCookie(poll + "_voted", "1", expires);
	//	}
	//}
	return true;
}