function setCookie(c){var b=YAHOO.util.Cookie.get("POOL");var a=b?b.split("|"):new Array();a.push(c);YAHOO.util.Cookie.set("POOL",a.join("|"),{path:"/"})}function vote(poll_id,sAction,sFormName,sTargetDiv){var oCookie=YAHOO.util.Cookie.get("POOL");var aCookie=oCookie?oCookie.split("|"):new Array();sFormName=sFormName||"vote";var oForm=document.forms[sFormName];bOk=false;bOk=true;var bVote=false;for(var i in aCookie){if(typeof(aCookie[i])!="undefined"&&aCookie[i]==poll_id){bVote==true}}if(bOk){if(bVote==false){oAjax=new Ajax();oAjax.SetForm(oForm);oAjax.Get(sAction,function(aReturn){sJson=aReturn[0];aReturn.push(sTargetDiv);if(aReturn[2]==true){YAHOO.util.Dom.get(sTargetDiv).innerHTML=sJson;if(typeof(aReturn[1])!="undefined"){eval(aReturn[1])}aCookie.push(poll_id);YAHOO.util.Cookie.set("POOL",aCookie.join("|"),{path:"/"})}else{if(typeof(aReturn[1])!="undefined"){eval(aReturn[1])}}})}else{if(typeof(aPollTexts.pollAlreadyAnswered)!="undefined"){alert(aPollTexts.pollAlreadyAnswered)}}}else{if(typeof(aPollTexts.pollNoSelect)!="undefined"){alert(aPollTexts.pollNoSelect)}}};