//------------------ // Copyright 2007 - PollMonkey.com // Publish Date: 6/24/2008 3:42:22 PM //------------------ //--------- Poll Header Functions ------------------------- var cancelSubmit49196 = false; var cancelAlert49196 = false; var secondaryAlert49196 = false; var primaryAlertText49196 = ''; var secondaryAlertText49196 = ''; var col49196 = 1; var NS49196 = (navigator.appName.toLowerCase() == "netscape" && navigator.appVersion.charAt(0)<5) ? true : false; var bUseCaptcha49196 = false; var useDHTML49196 = true; function di2049196(id, newSrc) { document.images[id].src = newSrc; } function preloadImages49196() { if (document.images) { if (typeof(document.WM) == 'undefined'){ document.WM = new Object(); } document.WM.overImages = new Array(); var argLength = preloadImages.arguments.length; for(var arg=0;arg','%3E'); } //-------- END - Poll Header Functions ------------------------------------ //---------- COOKIES FUNCTIONS ------------ function SetCookie49196(name, value, time) { // 1000 milliseconds in a sec var millisecond; millisecond = 1000; time = time * millisecond; // Set expiration of cookie var expDate = new Date(); expDate.setTime(expDate.getTime() + time); document.cookie = name + "=" + escape(value) + ( (expDate) ? ";expires=" + expDate.toGMTString() : ""); } function GetCookie49196(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 CheckForCookie49196() { check = false; if(GetCookie49196('cookietest') != null) { check = true; } return check; } function CheckCookieExpiration49196() { check = GetCookie49196('49196_VoteFrequency'); if(check != null && check != 99999999) { SetCookie49196('49196_VoteFrequency', '99999999', '99999999'); } } SetCookie49196('cookietest','true', '30'); //---------- END COOKIES FUNCTIONS ------------ //--------- Poll Option Functions ----------------- var a = new Array(); function CheckSelected_48943(useButtons, selectedOptionID, optionID) {if (selectedOptionID == optionID) return "http://www.pollmonkey.com/images/Buttons/Button1/RadioOn_CCCC99.gif"; else return "http://www.pollmonkey.com/images/Buttons/Button1/RadioOff_CCCC99.gif"; } function SCB49196(i, radioVal, optionID, labelText) {return "" + labelText + ""; } a[0] = SCB49196(0,'599668','599668','Yes, disabled riders should wait as long as I do'); a[1] = SCB49196(1,'599669','599669','No, disabled riders have different needs'); a[2] = SCB49196(2,'599670','599670','I\'m not sure'); function ClearText_48943() { if (document.Form49196.input_48943_0_1_0_2) document.Form49196.input_48943_0_1_0_2.value = ''; if (document.Form49196.input_48943_0_1_Text_2) document.Form49196.input_48943_0_1_Text_2.value = ''; } function CheckText_48943() { if (document.Form49196.input_48943_0_1_0_2) if (document.Form49196.input_48943_0_1_0_2.value == '') { secondaryAlert49196 = true; secondaryAlertText49196 ='Please enter a response for\nthe choice \'\''; cancelAlert49196 = true; cancelSubmit49196 = true; document.Form49196.input_48943_0_1_0_2.focus(); } if (document.Form49196.input_48943_0_1_Text_2) if (document.Form49196.input_48943_0_1_Text_2.value == '') { secondaryAlert49196 = true; secondaryAlertText49196 ='Please enter a response for\nthe choice \'\''; cancelAlert49196 = true; cancelSubmit49196 = true; document.Form49196.input_48943_0_1_Text_2.focus(); } } function AlertFunction49196(){ cancelSubmit49196 = true; primaryAlertText49196 = "To vote you must select a choice from the poll."; if (document.Form49196.input_48943_0_0_0_2.value == '599668') cancelSubmit49196 = false; if (document.Form49196.input_48943_0_0_0_2.value == '599669') cancelSubmit49196 = false; if (document.Form49196.input_48943_0_0_0_2.value == '599670') cancelSubmit49196 = false; if (cancelSubmit49196 == true || secondaryAlert49196 == true) { alert(primaryAlertText49196 ); return false; } } function GetPollOptions49196(){ var optionselected = ''; if (document.Form49196.input_48943_0_0_0_2.value == '599668') optionselected = optionselected + '&input_48943_0_0_0_2=599668'; if (document.Form49196.input_48943_0_0_0_2.value == '599669') optionselected = optionselected + '&input_48943_0_0_0_2=599669'; if (document.Form49196.input_48943_0_0_0_2.value == '599670') optionselected = optionselected + '&input_48943_0_0_0_2=599670'; return optionselected; } //--------- END - Poll Option Functions ----------------- //--------- Voting Functions ----------------- var browserType49196 = navigator.appName.toLowerCase(); var bDhtml49196 = true; var sVisRes49196 = ' '; function DisplayVote49196() { document.write('
'); CheckCookieExpiration49196(); useDHTML49196 = true; voteFrequency49196 = GetCookie49196('49196_VoteFrequency'); if(voteFrequency49196 == null) { DisplayPoll49196(); } else { PollResponses49196(); } } function Vote49196() { var queryParam; // Check to see if user has selected something if(DoneFunction49196()==false) { return; } else { SetCookie49196('49196_VoteFrequency', '99999999', '99999999'); //--DYNAMIC SUBMISSION CHECK---- if(bUseCaptcha49196 ==false && bDhtml49196 && totalresponses > 0 && useDHTML49196 ==true) { queryParam = GetPollOptions49196(); queryParam = queryParam + "&returnurl=" + getCurrentURL49196(); queryParam = queryParam + "&qtype_48943=2"; document.getElementById('imgVoteInfo49196').src ='http://www.pollmonkey.com/Pollite/vote.aspx?U=688749196&UD=39106FAE7A&query=1' + queryParam; PollResponses49196(); } else { document.Form49196.action="http://www.pollmonkey.com/Pollite/vote.aspx?U=688749196&UD=39106FAE7A"; document.Form49196.submit(); } } } //--------- END - Voting Functions ----------------- function DisplayHeader49196(){ var sHTML = ''; sHTML += '
'; sHTML += 'Ride access'; sHTML += '
'; return sHTML; } function DisplayFooter49196(){ var sHTML = ''; sHTML += '
'; return sHTML; } //--------- Begin Writing Display Poll ----------------- function DisplayPoll49196() { var sHTML = ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += '
'; sHTML += DisplayHeader49196(); //------Begin Poll Section---- sHTML += '
'; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += '
'; sHTML += '
'; sHTML += ''; sHTML += 'Is Knott Berry Farm\'s new policy for disabled park-goers just?'; sHTML += ''; sHTML += ''; sHTML += '
'; // -------Write out the question options------------ sHTML += ''; for (var i = 0; i < a.length; i++) { if(i%col49196==0) { if(i==0) sHTML += ''; else if(i==(a.length-1)) { sHTML += ''; sHTML += ''; } else { sHTML += ''; sHTML += ''; sHTML += ''; } } sHTML += a[i]; } sHTML += '
'; //-------End Poll Questions ------------ sHTML += '
'; if(CheckForCookie49196()) { sHTML += ''; } else { sHTML += 'You must have cookies enabled to vote'; } sHTML += '
'; sHTML += '
'; sHTML += '
'; //------ End Poll Section ---------------------------------- sHTML += DisplayFooter49196(); sHTML += '
'; document.getElementById('pDisp49196').innerHTML = sHTML; } //--------- Begin Writing Poll Responses----------------- function PollResponses49196() { var sHTML = ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += '
'; sHTML += DisplayHeader49196(); //-----------Begin Poll Results - RenderPollResults --------- sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += '
'; sHTML += '
'; sHTML += ''; sHTML += 'Is Knott Berry Farm\'s new policy for disabled park-goers just?'; sHTML += ''; sHTML += ''; sHTML += '
'; //----------------------------------- Begin Display Poll Results ------------------------------------- sHTML += ''; var graphcolor = new Array(); graphcolor[0] = new Array('996600'); graphcolor[1] = new Array('ffffff'); graphcolor[2] = new Array('cccc66'); var graphcount=0; for(var i=0; i < options49196.length; i++) { if(graphcount>=graphcolor.length) graphcount=0; if(i%col49196==0) { if(i==0) { sHTML += ''; } else if(i==(options49196.length-1)) { sHTML += ''; } else { sHTML += ''; sHTML += ''; } } sHTML += ''; graphcount++; } sHTML += '
'; sHTML += '' + options49196[i][0] + ''; sHTML += '
'; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += '
'; sHTML += '
'; sHTML += '
'; sHTML += '' + options49196[i][1] + '%'; sHTML += '
'; sHTML += '
'; //-------------------------------------- End Display Poll Results ----' //----------------------------------- End Poll Questions ---------------------------------- sHTML += ''; sHTML += '
'; sHTML += 'Total Votes: '+ totalresponses +''; sHTML += '
'; sHTML += ''; sHTML += '
'; //------------- End Poll Section --------------- sHTML += DisplayFooter49196(); sHTML += '
'; document.getElementById('pDisp49196').innerHTML = sHTML; var dResult = document.getElementById('pDisp49196'); dResult.innerHTML = sHTML; var scripts = dResult.getElementsByTagName('script'); for(var i = 0; i < scripts.length; i++) { if(scripts[i].type == 'text/javascript') { eval(scripts[i].innerHTML); } } }