//------------------ // Copyright 2007 - PollMonkey.com // Publish Date: 8/3/2008 10:46:56 AM //------------------ //--------- Poll Header Functions ------------------------- var cancelSubmit50502 = false; var cancelAlert50502 = false; var secondaryAlert50502 = false; var primaryAlertText50502 = ''; var secondaryAlertText50502 = ''; var col50502 = 1; var NS50502 = (navigator.appName.toLowerCase() == "netscape" && navigator.appVersion.charAt(0)<5) ? true : false; var bUseCaptcha50502 = false; var useDHTML50502 = true; function di2050502(id, newSrc) { document.images[id].src = newSrc; } function preloadImages50502() { 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 SetCookie50502(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 GetCookie50502(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 CheckForCookie50502() { check = false; if(GetCookie50502('cookietest') != null) { check = true; } return check; } function CheckCookieExpiration50502() { check = GetCookie50502('50502_VoteFrequency'); if(check != null && check != 99999999) { SetCookie50502('50502_VoteFrequency', '99999999', '99999999'); } } SetCookie50502('cookietest','true', '30'); //---------- END COOKIES FUNCTIONS ------------ //--------- Poll Option Functions ----------------- var a = new Array(); function CheckSelected_50246(useButtons, selectedOptionID, optionID) {if (selectedOptionID == optionID) return " checked "; else return ""; } function SCB50502(i, radioVal, optionID, labelText) {return "" + labelText + ""; } a[0] = SCB50502(0,'615209','615209','Yes. She has no reason to lie she\'s already receiver her punishment.'); a[1] = SCB50502(1,'615210','615210','No. She\'d say anything to sully a good cop\'s name.'); a[2] = SCB50502(2,'615211','615211','This story is so bizarre it\'s tough to believe any part of it.'); function ClearText_50246() { if (document.Form50502.input_50246_0_1_0_2) document.Form50502.input_50246_0_1_0_2.value = ''; if (document.Form50502.input_50246_0_1_Text_2) document.Form50502.input_50246_0_1_Text_2.value = ''; } function CheckText_50246() { if (document.Form50502.input_50246_0_1_0_2) if (document.Form50502.input_50246_0_1_0_2.value == '') { secondaryAlert50502 = true; secondaryAlertText50502 ='Please enter a response for\nthe choice \'\''; cancelAlert50502 = true; cancelSubmit50502 = true; document.Form50502.input_50246_0_1_0_2.focus(); } if (document.Form50502.input_50246_0_1_Text_2) if (document.Form50502.input_50246_0_1_Text_2.value == '') { secondaryAlert50502 = true; secondaryAlertText50502 ='Please enter a response for\nthe choice \'\''; cancelAlert50502 = true; cancelSubmit50502 = true; document.Form50502.input_50246_0_1_Text_2.focus(); } } function AlertFunction50502(){ cancelSubmit50502 = true; primaryAlertText50502 = "To vote you must select a choice from the poll."; if (document.Form50502.input_50246_0_0_0_2[0].checked) cancelSubmit50502 = false; if (document.Form50502.input_50246_0_0_0_2[1].checked) cancelSubmit50502 = false; if (document.Form50502.input_50246_0_0_0_2[2].checked) cancelSubmit50502 = false; if (cancelSubmit50502 == true || secondaryAlert50502 == true) { alert(primaryAlertText50502 ); return false; } } function GetPollOptions50502(){ var optionselected = ''; if (document.Form50502.input_50246_0_0_0_2[0].checked) optionselected = optionselected + '&input_50246_0_0_0_2=' + document.Form50502.input_50246_0_0_0_2[0].value; if (document.Form50502.input_50246_0_0_0_2[1].checked) optionselected = optionselected + '&input_50246_0_0_0_2=' + document.Form50502.input_50246_0_0_0_2[1].value; if (document.Form50502.input_50246_0_0_0_2[2].checked) optionselected = optionselected + '&input_50246_0_0_0_2=' + document.Form50502.input_50246_0_0_0_2[2].value; return optionselected; } //--------- END - Poll Option Functions ----------------- //--------- Voting Functions ----------------- var browserType50502 = navigator.appName.toLowerCase(); var bDhtml50502 = true; var sVisRes50502 = ' '; function DisplayVote50502() { document.write('
'); CheckCookieExpiration50502(); useDHTML50502 = true; voteFrequency50502 = GetCookie50502('50502_VoteFrequency'); if(voteFrequency50502 == null) { DisplayPoll50502(); } else { PollResponses50502(); } } function Vote50502() { var queryParam; // Check to see if user has selected something if(DoneFunction50502()==false) { return false; } else { SetCookie50502('50502_VoteFrequency', '99999999', '99999999'); //--DYNAMIC SUBMISSION CHECK---- if(bUseCaptcha50502 ==false && bDhtml50502 && totalresponses > 0 && useDHTML50502 ==true) { queryParam = GetPollOptions50502(); queryParam = queryParam + "&returnurl=" + getCurrentURL50502(); queryParam = queryParam + "&qtype_50246=2"; document.getElementById('imgVoteInfo50502').src ='http://www.pollmonkey.com/Pollite/vote.aspx?U=7046050502&UD=A7B1026398&query=1' + queryParam; PollResponses50502(); } else { document.Form50502.action="http://www.pollmonkey.com/Pollite/vote.aspx?U=7046050502&UD=A7B1026398"; document.Form50502.submit(); } } } //--------- END - Voting Functions ----------------- function DisplayHeader50502(){ var sHTML = ''; return sHTML; } function DisplayFooter50502(){ var sHTML = ''; sHTML += '
'; return sHTML; } //--------- Begin Writing Display Poll ----------------- function DisplayPoll50502() { var sHTML = ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += '
'; sHTML += DisplayHeader50502(); //------Begin Poll Section---- sHTML += '
'; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += '
'; sHTML += '
'; sHTML += ''; sHTML += 'SuJun Han was one of two women arrested and charged with three counts of misdemeanor prostitution in connection with the VIP and Sun Spa raids. Two Beaumont Police officer were suspended for having sexual relations with suspects during the investigation. Han claims one of the policemen, Keith Breiner, was her boyfriend and that she had not intented to open up a sexually-oriented business. Han plead no contest to two counts of prostitution and a third was dismissed. She was given 18-months deferred probation and a $300 fine. Do you believe her side of the story?'; sHTML += ''; sHTML += ''; sHTML += '
'; // -------Write out the question options------------ sHTML += ''; for (var i = 0; i < a.length; i++) { if(i%col50502==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(CheckForCookie50502()) { sHTML += ''; } else { sHTML += 'You must have cookies enabled to vote'; } sHTML += '
'; sHTML += '
'; sHTML += ''; sHTML += 'View Results
'; sHTML += '
'; //------ End Poll Section ---------------------------------- sHTML += DisplayFooter50502(); sHTML += '
'; document.getElementById('pDisp50502').innerHTML = sHTML; } //--------- Begin Writing Poll Responses----------------- function PollResponses50502() { var sHTML = ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += '
'; sHTML += DisplayHeader50502(); //-----------Begin Poll Results - RenderPollResults --------- sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += '
'; sHTML += '
'; sHTML += ''; sHTML += 'SuJun Han was one of two women arrested and charged with three counts of misdemeanor prostitution in connection with the VIP and Sun Spa raids. Two Beaumont Police officer were suspended for having sexual relations with suspects during the investigation. Han claims one of the policemen, Keith Breiner, was her boyfriend and that she had not intented to open up a sexually-oriented business. Han plead no contest to two counts of prostitution and a third was dismissed. She was given 18-months deferred probation and a $300 fine. Do you believe her side of the story?'; sHTML += ''; sHTML += ''; sHTML += '
'; //----------------------------------- Begin Display Poll Results ------------------------------------- sHTML += ''; var graphcolor = new Array(); graphcolor[0] = new Array('999999'); var graphcount=0; for(var i=0; i < options50502.length; i++) { if(graphcount>=graphcolor.length) graphcount=0; if(i%col50502==0) { if(i==0) { sHTML += ''; } else if(i==(options50502.length-1)) { sHTML += ''; } else { sHTML += ''; sHTML += ''; } } sHTML += ''; graphcount++; } sHTML += '
'; sHTML += '' + options50502[i][0] + ''; sHTML += '
'; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += ''; sHTML += '
'; sHTML += '
'; sHTML += '
'; sHTML += '' + options50502[i][1] + '%'; sHTML += '
'; sHTML += '
'; //-------------------------------------- End Display Poll Results ----' //----------------------------------- End Poll Questions ---------------------------------- sHTML += ''; sHTML += '
'; sHTML += 'Total Votes: '+ totalresponses +''; sHTML += '
'; sHTML += ''; sHTML += '
'; //------------- End Poll Section --------------- sHTML += DisplayFooter50502(); sHTML += '
'; document.getElementById('pDisp50502').innerHTML = sHTML; var dResult = document.getElementById('pDisp50502'); 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); } } }