var pollClosed2810046 = false;
var PDV_POLLRAND2810046 = false;

var PDV_a2810046 = "";
var PDV_o2810046 = "";
var PDV_id2810046 = 2810046;
var PDV_pt2810046 = 0;
var PDV_po2810046 = 0;
var PDV_s2810046 = 100175;
var PDV_b2810046 = 1;
var PDV_l2810046 = 34976;
var PDV_pr2810046 = 1;
var PDV_w2810046 = 2810046;
var PDV_share2810046 = 0;
var PDV_expire2810046 = 7257600;

var PDV_sl2810046 = 1;
var PDV_va2810046 = 0;

var PDV_lnk2810046 = 1;



var PDV_def2810046 = '#PDI_container2810046 .pds-total-votes SPAN{} #PDI_container2810046 div {margin:0;padding:0;}';

var PDV_POLL_q2810046 = 'Bör mobiltelefoner förbjudas i skolan?'; var PDV_POLL_medType2810046 = '0'; var PDV_POLL_medID2810046 = '';
var PDV_A2810046 = new Array();


  PDV_A2810046[0] = new Array(4); PDV_A2810046[0][0] = "13293003"; PDV_A2810046[0][1] = "Ja, i hela skolan";   PDV_A2810046[0][2] = "0"; PDV_A2810046[0][3] = "";

  PDV_A2810046[1] = new Array(4); PDV_A2810046[1][0] = "13293004"; PDV_A2810046[1][1] = "Ja, i klassrummen";   PDV_A2810046[1][2] = "0"; PDV_A2810046[1][3] = "";

  PDV_A2810046[2] = new Array(4); PDV_A2810046[2][0] = "13293005"; PDV_A2810046[2][1] = "Nej";   PDV_A2810046[2][2] = "0"; PDV_A2810046[2][3] = "";


var PDV_l1_2810046 = 'Visa resultat';
var PDV_l2_2810046 = 'Other:';
var PDV_l3_2810046  = '';

 PDV_l3_2810046 = 'Rösta';

  
var PDV_l4_2810046 = 'Välj ett alternativ';

var PDV_l12_2810046  = 'Share This';

var PDV_l12_2810046 = 'Sprid';


//v3.2 30/Aug/11
var protocol=document.location.protocol=="https:"?"https:":"http:";var a2a_track_pub="polldaddy";var a2a_no_3p=1;var PD_ck2810046=0;var PD_ck_name2810046="PD_poll_"+PDV_id2810046;var PDV_n2810046="";var PDV_nurl2810046=protocol+"//polldaddy.com/n/"+(typeof PDV_h2810046!=="undefined"?PDV_h2810046:PDV_id2810046)+"/"+PDV_id2810046+(PDV_w2810046!=PDV_id2810046?"/"+PDV_w2810046:"");function _$(a){return document.getElementById(a)}function is_secure(){return"https:"==document.location.protocol?true:false}function getHead(){return document.getElementsByTagName("head").item(0)}if(pollClosed2810046==false){var PDV_server2810046=protocol+"//polls.polldaddy.com";var AA2810046=new Array();var PDV_html2810046='<div style="margin-bottom: 0px; margin-top: 0px;" name="PDI_form2810046" id="PDI_form2810046"><div class="pds-box"><div class="pds-box-outer"><div class="pds-box-inner"><div class="pds-box-top"><div class="pds-question"><div class="pds-question-outer"><div class="pds-question-inner"><div class="pds-question-top">'+PDV_POLL_medID2810046+" "+unescape_HTML_2810046(PDV_POLL_q2810046)+'</div></div></div></div><div class="pds-answer"><span id="pds-answer2810046"></span>';if(PDV_po2810046==1){PDV_html2810046+='<span class="pds-answer-group">';if(PDV_pt2810046==0){PDV_html2810046+='<span class="pds-answer-input"><input type="radio" name="PDI_answer2810046" id="PDI_answerOther2810046" value="other" class="pds-radiobutton"/></span>'}PDV_html2810046+='<label for="PDI_answerOther2810046" class="pds-other-label"><span class="pds-answer-span">'+PDV_l2_2810046+'</span></label><span class="pds-answer-other"><br/><input class="pds-textfield" type="text" maxlength="80" id="PDI_OtherText2810046" name="PDI_OtherText2810046" onclick="PDF_checkOther2810046();" onchange="PDF_checkOther2810046(true);" /></span>';PDV_html2810046+='<span class="pds-clear"></span>';PDV_html2810046+="</span>"}PDV_html2810046+='</div><div class="pds-vote"><div class="pds-votebutton-outer">';if(PDV_l3_2810046==""){PDV_l3_2810046="Vote"}if(PDV_s2810046<99||PDV_def2810046.indexOf("input.pds-votebutton")!=-1){if(PDV_l3_2810046=="Vote"||PDV_l3_2810046==""){PDV_html2810046+='<input type="button" class="pds-votebutton" style="border:none;cursor: pointer;" src="'+(is_secure()?"https://polldaddy":"http://i.polldaddy")+'.com/polls/spacer.gif" onclick="PD_prevote2810046(0);">'}else{PDV_html2810046+='<input type="button" class="pds-votebutton-pack" value="'+PDV_l3_2810046+'" onclick="PD_prevote2810046(0);" />'}}else{PDV_html2810046+='<a href="javascript:PD_prevote2810046(0);" id="pd-vote-button2810046" class="pds-vote-button"><span>'+PDV_l3_2810046+"</span></a>"}PDV_html2810046+='<span class="pds-links">';if(PDV_pr2810046==2){PDV_html2810046+="<br/>"}else{PDV_html2810046+='<a href="javascript:PD_vote2810046(1);" class="pds-view-results">'+PDV_l1_2810046+"</a><br/>"}if(typeof PDV_share2810046!="undefined"){if(PDV_share2810046==1){PDV_html2810046+='<a class="a2a_dd pds-share"  href="javascript:">'+PDV_l12_2810046+"</a>"}}if(PDV_lnk2810046==1){PDV_html2810046+='<a href="'+protocol+'//polldaddy.com/signup-free/?ad=poll-front" target="_blank" class="pds-pd-link">Polldaddy.com</a>'}PDV_html2810046+='<span class="pds-clear"></span>';PDV_html2810046+='</span><span class="pds-clear"></span>';PDV_html2810046+="</div></div></div></div></div></div></div>";for(PDV_x=0;PDV_x<PDV_A2810046.length;PDV_x++){if(PDV_pt2810046==0){AA2810046[PDV_x]='<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-radiobutton" type="radio" id="PDI_answer'+PDV_A2810046[PDV_x][0]+'" value="'+PDV_A2810046[PDV_x][0]+'" name="PDI_answer2810046" /></span><label for="PDI_answer'+PDV_A2810046[PDV_x][0]+'" class="pds-input-label"><span class="pds-answer-span">'+unescape_HTML_2810046(PDV_A2810046[PDV_x][1])+"</span></label>"+PDV_A2810046[PDV_x][3]+'<span class="pds-clear"></span><br/></span>'}else{AA2810046[PDV_x]='<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-checkbox" type="checkbox" id="PDI_answer'+PDV_A2810046[PDV_x][0]+'" value="'+PDV_A2810046[PDV_x][0]+'" name="PDI_answer'+PDV_A2810046[PDV_x][0]+'" onclick="javascript:PDF_mc2810046(this);" /></span><label for="PDI_answer'+PDV_A2810046[PDV_x][0]+'" class="pds-input-label"><span class="pds-answer-span">'+unescape_HTML_2810046(PDV_A2810046[PDV_x][1])+"</span></label>"+PDV_A2810046[PDV_x][3]+'<span class="pds-clear"></span><br/></span>'}}}function PDF_mc2810046(c){if(PDV_pt2810046>1){var a=0;for(i=0;i<AA2810046.length;i++){r=_$(AA2810046[i].substring(AA2810046[i].indexOf("id=")+4,AA2810046[i].indexOf('"',AA2810046[i].indexOf("id=")+4)));if(r.type=="checkbox"&&r.checked){a+=1}}if(PDV_po2810046==1){var b=_$("PDI_OtherText2810046").value;if(b.length>0){a+=1}}if(a>PDV_pt2810046){c.checked=false;c.disabled=true}if(a>=PDV_pt2810046){for(i=0;i<AA2810046.length;i++){r=_$(AA2810046[i].substring(AA2810046[i].indexOf("id=")+4,AA2810046[i].indexOf('"',AA2810046[i].indexOf("id=")+4)));if(r.type=="checkbox"&&!r.checked){r.disabled=true}}}else{if(PDV_po2810046==1){_$("PDI_OtherText2810046").disabled=false}for(i=0;i<AA2810046.length;i++){r=_$(AA2810046[i].substring(AA2810046[i].indexOf("id=")+4,AA2810046[i].indexOf('"',AA2810046[i].indexOf("id=")+4)));if(r.type=="checkbox"&&!r.checked){r.disabled=false}}}}}function PDF_a2810046(){PDF_o2810046();var b;if(PDV_pt2810046==0){for(var a=0;a<AA2810046.length;a++){b=_$(AA2810046[a].substring(AA2810046[a].indexOf("id=")+4,AA2810046[a].indexOf('"',AA2810046[a].indexOf("id=")+4)));if(b.checked){return b.value+","}}b=_$("PDI_answerOther2810046");if(b){if(b.checked){return b.value+","}else{return""}}else{return""}}else{for(a=0;a<AA2810046.length;a++){b=_$(AA2810046[a].substring(AA2810046[a].indexOf("id=")+4,AA2810046[a].indexOf('"',AA2810046[a].indexOf("id=")+4)));if(b.type=="checkbox"&&b.checked){PDV_a2810046=PDV_a2810046+b.value+","}}return PDV_a2810046}}function PDF_o2810046(a){if(PDV_po2810046==1){PDV_o2810046=_$("PDI_OtherText2810046").value}}function PDF_checkOther2810046(a){var d=false;if(a){var c=_$("PDI_OtherText2810046").value;if(c.length==0){d=true}}if(PDV_pt2810046==0){if(a&&d){_$("PDI_answerOther2810046").checked=false}else{_$("PDI_answerOther2810046").checked=true}}else{if(PDV_pt2810046>1){var b=1;obj=_$("PDI_OtherText2810046");if(a&&d){b=0}for(i=0;i<AA2810046.length;i++){r=_$(AA2810046[i].substring(AA2810046[i].indexOf("id=")+4,AA2810046[i].indexOf('"',AA2810046[i].indexOf("id=")+4)));if(r.type=="checkbox"&&r.checked){b+=1}}if(b>PDV_pt2810046){obj.disabled=true;obj.value="";for(i=0;i<AA2810046.length;i++){r=_$(AA2810046[i].substring(AA2810046[i].indexOf("id=")+4,AA2810046[i].indexOf('"',AA2810046[i].indexOf("id=")+4)));if(r.type=="checkbox"&&!r.checked){r.disabled=true}}}else{if(b<PDV_pt2810046){obj.disabled=false;for(i=0;i<AA2810046.length;i++){r=_$(AA2810046[i].substring(AA2810046[i].indexOf("id=")+4,AA2810046[i].indexOf('"',AA2810046[i].indexOf("id=")+4)));if(r.type=="checkbox"&&!r.checked){r.disabled=false}}}}}}}function PD_prevote2810046(){if(PDV_def2810046.indexOf("input.pds-votebutton")==-1){_$("pd-vote-button2810046").className="pds-vote-button-load"}var a=document.createElement("SCRIPT");a.charset="utf-8";a.src=PDV_nurl2810046+"?"+(new Date).getTime();getHead().appendChild(a)}function PD_vote2810046(b){var d=PDF_getTags2810046();var c=PDV_server2810046+"/vote-js.php?p="+PDV_id2810046+(PDV_w2810046!=PDV_id2810046?"&w="+PDV_w2810046:"");var e=false;if(b!=1){PDV_a2810046="";PDV_a2810046=PDF_a2810046(_$("PDI_form2810046"));if(PDV_a2810046.length==0&&PDV_o2810046.length==0){e=true;alert(PDV_l4_2810046);if(PDV_def2810046.indexOf("input.pds-votebutton")==-1){_$("pd-vote-button2810046").className="pds-vote-button"}}else{if(PDV_b2810046>0){if(PDF_getCookie2810046(PD_ck_name2810046)=="true"){PD_ck2810046=1}else{PDF_setCookie2810046(PD_ck_name2810046)}}c+="&b="+PDV_b2810046+"&a="+PDV_a2810046+"&o="+PDF_urlEncode2810046(PDV_o2810046)+"&va="+PDV_va2810046+"&cookie="+PD_ck2810046+"&url="+escape(location.href)+(d.length>0?"&tags="+d:"")+(PDV_n2810046.length>0?"&n="+PDV_n2810046:"")}}if(!e){var a=document.createElement("SCRIPT");a.charset="utf-8";a.src=c;getHead().appendChild(a)}}function PDF_getTags2810046(){if(typeof pd_tags=="undefined"){return""}var a="";for(var b in pd_tags){a+=PDF_urlEncode2810046(b)+":"+PDF_urlEncode2810046(pd_tags[b])+";"}return a.slice(0,-1)}function PDF_urlEncode2810046(a){return encodeURIComponent(a).replace(/\%20/g,"+").replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/\~/g,"%7E")}function PDF_rand2810046(a){var e=a.length;if(e==0){return false}while(--e){var d=Math.floor(Math.random()*(e+1));var c=a[e];var b=a[d];a[e]=b;a[d]=c}return a}function PDF_loadStyleSheet2810046(){var a=document.createElement("style");a.setAttribute("type","text/css");a.setAttribute("id","poll_style2810046");if(a.styleSheet){a.styleSheet.cssText=PDV_def2810046}else{a.appendChild(document.createTextNode(PDV_def2810046))}getHead().appendChild(a)}function PDV_go2810046(){if(is_secure()){PDV_def2810046=PDV_def2810046.replace(/http:\/\/i.polldaddy/g,"https://polldaddy");PDV_def2810046=PDV_def2810046.replace(/http:\/\/s3.wordpress/g,"https://s-ssl.wordpress")}if(!_$("poll_style2810046")){PDF_loadStyleSheet2810046()}if(typeof load_audioLibrary_2810046=="function"&&typeof PDV_audio_2810046!=="undefined"&&PDV_audio_2810046>0){load_audioLibrary_2810046()}if(!_$("PDI_container2810046")){document.write('<a name="pd_a_2810046" style="display: inline; padding: 0px; margin: 0px;"></a><div class="PDS_Poll" id="PDI_container2810046"></div>')}if(typeof supercookie!=="undefined"&&typeof sc!=="object"){sc=new supercookie()}PDV_html2810046+='<img src="'+(is_secure()?"https://secure":"http://pixel")+'.quantserve.com/pixel?a.1=p-18-mFEk4J448M&amp;a.2=p-ab3gTb8xb3dLg&labels.1=type.polldaddy.poll" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/>';_$("PDI_container2810046").innerHTML=PDV_html2810046;if(PDV_POLLRAND2810046){AA2810046=PDF_rand2810046(AA2810046)}y2810046="";for(x2810046=0;x2810046<AA2810046.length;x2810046++){y2810046=y2810046+AA2810046[x2810046]}_$("pds-answer2810046").innerHTML=y2810046;share2810046()}function PDF_setCookie2810046(f){var c="/";var o="";var b="";var d=0;if(typeof(PDV_expire2810046)!=="undefined"){d=parseInt(PDV_expire2810046)}if(d>0){d=d*1000}else{d=60*60*24*30*1000}var e=new Date();e.setTime(e.getTime());d=e.getTime()+(d);var a=new Date(d);if(typeof PDV_version2810046!=="undefined"){f+=(PDV_version2810046>0?"_"+PDV_version2810046:"")}PDF_log2810046("Cookie Name: "+f);if(typeof sc=="object"&&typeof sc.set=="function"){PDF_log2810046("SET supercookie");sc.set(f,escape(d))}else{PDF_log2810046("SET standard cookie");document.cookie=f+"="+escape(d)+((d)?";expires="+a.toGMTString():"")+((c)?";path="+c:"")+((o)?";domain="+o:"")+((b)?";secure":"")}}function PDF_getCookie2810046(f){var a="";var b="";var c="";if(typeof PDV_version2810046!=="undefined"){f+=(PDV_version2810046>0?"_"+PDV_version2810046:"")}PDF_log2810046("Cookie Name: "+f);if(typeof sc=="object"&&typeof sc.get=="function"){PDF_log2810046("GET supercookie");c=sc.get(f)}else{PDF_log2810046("GET standard cookie");var d=document.cookie.split(";");for(i=0;i<d.length;i++){a=d[i].split("=");b=a[0].replace(/^\s+|\s+$/g,"");if(b==f){if(a.length>1){c=unescape(a[1].replace(/^\s+|\s+$/g,""))}break}a=null;b=""}}PDF_log2810046("Cookie Value: "+c);if(c=="true"){return c}else{var e=new Date();c=parseInt(c);PDF_log2810046("Time: "+e.getTime());if(c>e.getTime()){return"true"}}return null}function PDF_callback2810046(){if(typeof pd_callback=="function"){pd_callback()}else{if(typeof pd_callback_2810046=="function"){pd_callback_2810046()}}}function share2810046(){if(typeof PDV_share2810046!="undefined"){if(PDV_share2810046==1){a2a_linkname="Poll: "+PDV_POLL_q2810046;a2a_linkurl=document.location+"#pd_a_2810046";a2a_track_links="custom";a2a_track_links_key=document.location+"#pd_a_2810046";a2a_onclick=1;var a=document.createElement("SCRIPT");a.charset="utf-8";a.src=protocol+"//static.addtoany.com/menu/page.js";getHead().appendChild(a)}}}function unescape_HTML_2810046(a){var b=document.createElement("DIV");b.innerHTML=a;if(b.innerText!==undefined){return b.innerText}return b.textContent}function PDF_log2810046(a){if(typeof(_debug)!=="undefined"&&_debug){if(typeof(console)!=="undefined"&&console!=null){console.log(a)}}}if(pollClosed2810046==false){PDV_go2810046()}else{share2810046()};
