



	//-----------------------------------TESTING TO SEE IF COOKIES ARE ENABLED
	function SetCookie (name, value)   {
	    var time = 24*60*60*7 //one week
		var expDate = new Date()
		expDate.setTime (expDate.getTime() + time)
		document.cookie = name + "=" + escape (value) +  ";expires=" + expDate.toGMTString()
	}

	function GetCookie(name)   {
	    var result = null
	    var myCookie = " " + document.cookie + ";"
	    var srchName = " " + name + "="
	    var start = myCookie.indexOf(srchName)
	    var end;
	    if (start != -1){
		start += srchName.length
		end = myCookie.indexOf(";", start)
		result = unescape (myCookie.substring(start, end))
	    }
	    return result;
	}

	function test() {
	    tested = GetCookie('safecookie');
	    if (tested != null) {
		tested = 1;
	    }
	    else {
		tested = -1;
	    }
	    return tested;
	}

	SetCookie('safecookie','true');
	man = test();
	//--------------------------------------------------ENDING THE COOKIE TEST

	//validation of vote
	function validateRadioButtons(radioName, radioList) {

	    var radioValue = null;
	    for (var i=0; i < radioList.length; i++) {
                if (radioList[i].checked) {
		    radioValue = radioList[i].value;
		    break;
                }
	    }
	    if (radioValue == null) {
                alert("You must select an option to vote!");
                return false;
	    } else {
                return true;
	    }
	}


	//------------------------------------------------THE TOP PART OF THE POLL
	zcode += '<table width=126 border=0 cellspacing=0 cellpadding=1>\n';
		zcode += '  <tr>\n';
		zcode += "<form name=\"EZForm\" action='https://ezpolls.superstats.com/placevote.html' method=post>\n";
	zcode += '    <td bgcolor="#F5781C" >\n';
	zcode += '      <input type=hidden name=pollid value="1">\n';
	zcode += '      <input type=hidden name=u value="vsign_4395199">\n';
	zcode += '      <input type=hidden name=alternate_return_url value="">\n';
	zcode += '      <input type=hidden name=isReady value=0>\n';
	zcode += '      <center><table border=0 cellspacing=0 cellpadding=2 bgcolor="#F5781C"  width=124>\n';
	zcode += '        <tr><td width=120 align=center bgcolor="#F5781C">\n';
	zcode += '            <font size="2" face="arial,verdana,helvetica" color="FFFFFF"><b>Grown your own?</b></font>\n';
	zcode += '        </td></tr>\n';
	zcode += '        <tr><td bgcolor="#ffffff" >\n';
	zcode += '            <center><font size="2" face="arial,verdana,helvetica" color="000000">\n';
	zcode += '            Have you eaten local organic produce before?<br><br>\n';
	zcode += '            </font></center>\n';
	//------------------------------------------------------------------------

	                        zcode += '            <input type="radio" name="choice" value="result1">\n';
			zcode += '            <font size="-2" face="arial,verdana,helvetica" color="000000">\n';
			zcode += '            Yes\n';
			zcode += '            </font><br>\n';
	                        zcode += '            <input type="radio" name="choice" value="result2">\n';
			zcode += '            <font size="-2" face="arial,verdana,helvetica" color="000000">\n';
			zcode += '            No\n';
			zcode += '            </font><br>\n';
	                        zcode += '            <input type="radio" name="choice" value="result3">\n';
			zcode += '            <font size="-2" face="arial,verdana,helvetica" color="000000">\n';
			zcode += '            I want to!\n';
			zcode += '            </font><br>\n';
	
	//----------------------------------------HANDLES COOKIE DISABLED BROWSERS
	function openIt(url){
		window.open(url,'poll','height=450,width=165,resizable=yes,scrollbars=yes');
		return false;
	}


			zcode += '            <center>\n';
		zcode += '            <input type="hidden" name="u" value="vsign_4395199">\n';
		zcode += '            <input type="hidden" name="p" value="1">\n';
					 if (man>0) {
			   zcode += '            <br><input type="submit" value="Vote" onClick="this.form.alternate_return_url.value=window.location.href; return true;">\n';
		  }else {
				zcode += '            <br><font face="arial,verdana,helvetica" size=1 color="000000"><i>You must have cookies enabled to vote</i></font><br>\n';
		   }

						zcode += '            <br><a href="https://ezpolls.superstats.com/pollresults.html?u=vsign_4395199&p=1" onClick="return openIt(\'https://ezpolls.superstats.com/pollresults.html?u=vsign_4395199&p=1\')"><font face="arial,verdana,helvetica" size="1" color="000000">SEE POLL RESULTS</font></a>\n';
				zcode += '            </center>\n';
		//------------------------------------------------------------------------

	//-----------------------------IF THEY DO PAY, THEN DON'T PRINT THE BANNER
			zcode += '            <center><font size="1" face="arial,helvetica" color=#000000>\n';
		zcode += '            <a href=https://www.mycomputer.com><font size="1" face="arial,helvetica" class=link color=#000000></a></font></b></center>\n';
		zcode += '        </td></tr>\n';
		zcode += '        <tr><td align=center bgcolor="#F5781C" >\n';
		zcode += '        </td></tr>\n';
		zcode += '      </table>\n';
		zcode += '    </td>\n';
		zcode += '    </center></form>\n';
		zcode += '  </tr>\n';
				zcode += '</table>\n';
