function MyPoll()
{
	var MyVote;	
	
	document.cookie = "Enabled=true";
   var cookieValid = document.cookie;
   
   // if retrieving the VALUE we just set actually works 
   // then we know cookies enabled
   if (cookieValid.indexOf("Enabled=true") != -1)
   {
		for (var i= 0; document.SubmitPoll.myRadio.length; i++) 
		{
			if (document.SubmitPoll.myRadio[i].checked == true)
			{
				MyVote = document.SubmitPoll.myRadio[i].value;
				popup("http://www.theglobalist.com/PollResult.aspx?PollId=" + document.SubmitPoll.PollId.value + "&MyVote=" + MyVote); 
				return false;
			}
		}
	}
   else
   {
      //cookiesEnabled = false;
      alert("To participate in our polls, you need to enable cookies on your browser.");
   }
   
   return false;

}

function popup (form)
{
	openWindow=this.window.open(form,"Vote","resizable=no,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,width=540,height=520,top=50,left=100");
openWindow.focus();
}

function ViewVote(me)
{
	popup("http://www.theglobalist.com/PollResult.aspx?PollId=" + document.SubmitPoll.PollId.value + "&MyVote=-1"); 
    return false;
	
}
function ViewshortQuiz()
{
	popupQuiz("http://www.theglobalist.com/shortQuiz.aspx"); 
	//return false;
}
function popupQuiz (form)
{
	openPopupQuiz=this.window.open(form,"Vote","resizable=no,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,width=540,height=375,top=100,left=100");
openPopupQuiz.focus();
}