var Poll =
{
  key:null,
  hst:null,
  init: function(key,hst)
  {
    Poll.key = key;
    Poll.hst = hst;
  },
  sub: function(f)
  {
    var d = document;
    if( Poll.key == null || Poll.hst == null )
    {
       alert( "Error initialising poll. Please reload the page and try again.");
       return false;
    }
    else if( d.cookie == "" )
    {
       alert( "You must have cookies enabled to vote in the polls.");
       return false;
    }
    else if( $("input[type=radio]:checked",f).length == 0 )
    {
       alert( "Vote for something, dammit!");
       return false;
    }
    setCookie("jsCkChkr", Poll.key, null, "/", Poll.host);
    return true;
  }
}
