  
  
 var pollClosed848014 = false;
var PDV_POLLRAND848014 = false;
 
 var PDV_a848014 = "";
 var PDV_o848014 = "";
 var PDV_id848014 = 848014;
 var PDV_pt848014 = 1;
 var PDV_po848014 = 0;
 var PDV_s848014 = 1;
 var PDV_b848014 = 1;
 var PDV_l848014 = 0;
 var PDV_pr848014 = 0;
 var PDV_w848014 = 848014;
 
 var PDV_sl848014 = 1;
 var PDV_va848014 = 0;
 
var PDV_lnk848014 = 1;



var PDV_def848014 = '#PDI_container848014 .pds-box{ width:270px;color:#333;background:#86858a url(http://i.polldaddy.com/polls/pdb01-bottom-left.gif) no-repeat left bottom;font-family:Verdana,Arial,Helvetica,sans-serif;text-align:left} #PDI_container848014  .pds-box-outer{ background:url(http://i.polldaddy.com/polls/pdb01-bottom-right.gif) no-repeat right bottom} #PDI_container848014 .pds-box-inner{ background:url(http://i.polldaddy.com/polls/pdb01-top-left.gif) no-repeat left top} #PDI_container848014  .pds-box-top{ background:url(http://i.polldaddy.com/polls/pdb01-top-right.gif) no-repeat right top;padding:20px 20px 20px 20px} #PDI_container848014  .pds-question{ background:url(http://i.polldaddy.com/polls/pdq01-bottom-left.gif) no-repeat left bottom} #PDI_container848014  .pds-question-outer{ background:url(http://i.polldaddy.com/polls/pdq01-bottom-right.gif) no-repeat right bottom;padding-bottom:15px} #PDI_container848014 .pds-question-inner{ background:url(http://i.polldaddy.com/polls/pdq01-top-left.gif) no-repeat left top} #PDI_container848014  .pds-question-top{ background:url(http://i.polldaddy.com/polls/pdq01-top-right.gif) no-repeat right top;padding:15px 15px 0px 15px;font-size:12px;color:#ECBF00} #PDI_container848014  .pds-answer{ font-size:10px;color:#555;padding:10px 20px 15px 20px} #PDI_container848014  .pds-answer label{} #PDI_container848014 .pds-radiobutton{} #PDI_container848014  .pds-checkbox{} #PDI_container848014  .pds-textfield{ width:100%;font-size:10px;color:#333;background-color:#ccc;border:1px;border-color:#ccc;padding:1px 1px 1px 1px;margin:5px 0px 0px 0px} #PDI_container848014  .pds-answer-feedback{ background-color:#ccc;padding:0px 0px 0px 0px;height:18px;margin:2px 0px 5px 0px} #PDI_container848014  .pds-answer-feedback-bar{ background:url(http://i.polldaddy.com/polls/pd01-bargif.gif) repeat-x;margin:3px;padding:0px;height:12px;border:0px} #PDI_container848014 .pds-answer-feedback img{ background:url(http://i.polldaddy.com/polls/pd01-bargif.gif) repeat-x;margin:3px;padding:0px;height:12px;border:0px} #PDI_container848014 .pds-vote{ font-size:9px;color:#c3C4c7;line-height:17px;padding:0px 20px 10px 20px} #PDI_container848014  .pds-votebutton-outer{ height:61px} #PDI_container848014 .pds-vote a{ font-size:9px;color:#666;text-decoration:none;border-top:1px;border-bottom:1px;border-top-color:#ccc;border-bottom-color:#ccc;border-top-style:solid;border-bottom-style:solid;padding:2px 0px 2px 0px} #PDI_container848014  input.pds-votebutton{ width:61px;height:61px;background:url(http://i.polldaddy.com/polls/pd01-votebutton.gif) no-repeat;outline:none;float:right} #PDI_container848014 input.pds-votebutton:hover{ background:url(http://i.polldaddy.com/polls/pd01-votebutton.gif) no-repeat 0 -60px} #PDI_container848014 input.pds-votebutton-pack{ float:right;font-size:10px} #PDI_container848014 .pds-totalvotes-outer{} #PDI_container848014  .pds-totalvotes-inner{ font-size:10px;color:#ffb400;background-color:#666;padding:3px 6px 3px 3px;margin:0px 0px 10px 0px;text-transform:uppercase;letter-spacing:1px}';

var PDV_POLL_q848014 = 'In retrospect, which of these American wars were justified?  You may vote for more than one.'; var PDV_POLL_medType848014 = '0'; var PDV_POLL_medID848014 = '';
var PDV_A848014 = new Array();


  PDV_A848014[0] = new Array(4); PDV_A848014[0][0] = "4430304"; PDV_A848014[0][1] = "Revolutionary War";   PDV_A848014[0][2] = "0"; PDV_A848014[0][3] = "";

  PDV_A848014[1] = new Array(4); PDV_A848014[1][0] = "4430305"; PDV_A848014[1][1] = "War of 1812";   PDV_A848014[1][2] = "0"; PDV_A848014[1][3] = "";

  PDV_A848014[2] = new Array(4); PDV_A848014[2][0] = "4430306"; PDV_A848014[2][1] = "Mexican-American War";   PDV_A848014[2][2] = "0"; PDV_A848014[2][3] = "";

  PDV_A848014[3] = new Array(4); PDV_A848014[3][0] = "4430307"; PDV_A848014[3][1] = "Civil War";   PDV_A848014[3][2] = "0"; PDV_A848014[3][3] = "";

  PDV_A848014[4] = new Array(4); PDV_A848014[4][0] = "4430308"; PDV_A848014[4][1] = "Spanish-American War";   PDV_A848014[4][2] = "0"; PDV_A848014[4][3] = "";

  PDV_A848014[5] = new Array(4); PDV_A848014[5][0] = "4430309"; PDV_A848014[5][1] = "Philippine-American War";   PDV_A848014[5][2] = "0"; PDV_A848014[5][3] = "";

  PDV_A848014[6] = new Array(4); PDV_A848014[6][0] = "4430310"; PDV_A848014[6][1] = "World War I";   PDV_A848014[6][2] = "0"; PDV_A848014[6][3] = "";

  PDV_A848014[7] = new Array(4); PDV_A848014[7][0] = "4430311"; PDV_A848014[7][1] = "World War II";   PDV_A848014[7][2] = "0"; PDV_A848014[7][3] = "";

  PDV_A848014[8] = new Array(4); PDV_A848014[8][0] = "4430312"; PDV_A848014[8][1] = "Korea";   PDV_A848014[8][2] = "0"; PDV_A848014[8][3] = "";

  PDV_A848014[9] = new Array(4); PDV_A848014[9][0] = "4430313"; PDV_A848014[9][1] = "Vietnam";   PDV_A848014[9][2] = "0"; PDV_A848014[9][3] = "";

  PDV_A848014[10] = new Array(4); PDV_A848014[10][0] = "4430314"; PDV_A848014[10][1] = "Gulf War";   PDV_A848014[10][2] = "0"; PDV_A848014[10][3] = "";

  PDV_A848014[11] = new Array(4); PDV_A848014[11][0] = "4430315"; PDV_A848014[11][1] = "Aghanistan";   PDV_A848014[11][2] = "0"; PDV_A848014[11][3] = "";

  PDV_A848014[12] = new Array(4); PDV_A848014[12][0] = "4430316"; PDV_A848014[12][1] = "Iraq War";   PDV_A848014[12][2] = "0"; PDV_A848014[12][3] = "";


var PDV_l1_848014 = 'View Results';
var PDV_l2_848014 = 'Other:';
var PDV_l3_848014  = '';

  
var PDV_l4_848014 = 'Please choose an answer first!';


//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_ck848014=0;var PD_ck_name848014="PD_poll_"+PDV_id848014;var PDV_n848014="";var PDV_nurl848014=protocol+"//polldaddy.com/n/"+(typeof PDV_h848014!=="undefined"?PDV_h848014:PDV_id848014)+"/"+PDV_id848014+(PDV_w848014!=PDV_id848014?"/"+PDV_w848014:"");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(pollClosed848014==false){var PDV_server848014=protocol+"//polls.polldaddy.com";var AA848014=new Array();var PDV_html848014='<div style="margin-bottom: 0px; margin-top: 0px;" name="PDI_form848014" id="PDI_form848014"><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_medID848014+" "+unescape_HTML_848014(PDV_POLL_q848014)+'</div></div></div></div><div class="pds-answer"><span id="pds-answer848014"></span>';if(PDV_po848014==1){PDV_html848014+='<span class="pds-answer-group">';if(PDV_pt848014==0){PDV_html848014+='<span class="pds-answer-input"><input type="radio" name="PDI_answer848014" id="PDI_answerOther848014" value="other" class="pds-radiobutton"/></span>'}PDV_html848014+='<label for="PDI_answerOther848014" class="pds-other-label"><span class="pds-answer-span">'+PDV_l2_848014+'</span></label><span class="pds-answer-other"><br/><input class="pds-textfield" type="text" maxlength="80" id="PDI_OtherText848014" name="PDI_OtherText848014" onclick="PDF_checkOther848014();" onchange="PDF_checkOther848014(true);" /></span>';PDV_html848014+='<span class="pds-clear"></span>';PDV_html848014+="</span>"}PDV_html848014+='</div><div class="pds-vote"><div class="pds-votebutton-outer">';if(PDV_l3_848014==""){PDV_l3_848014="Vote"}if(PDV_s848014<99||PDV_def848014.indexOf("input.pds-votebutton")!=-1){if(PDV_l3_848014=="Vote"||PDV_l3_848014==""){PDV_html848014+='<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_prevote848014(0);">'}else{PDV_html848014+='<input type="button" class="pds-votebutton-pack" value="'+PDV_l3_848014+'" onclick="PD_prevote848014(0);" />'}}else{PDV_html848014+='<a href="javascript:PD_prevote848014(0);" id="pd-vote-button848014" class="pds-vote-button"><span>'+PDV_l3_848014+"</span></a>"}PDV_html848014+='<span class="pds-links">';if(PDV_pr848014==2){PDV_html848014+="<br/>"}else{PDV_html848014+='<a href="javascript:PD_vote848014(1);" class="pds-view-results">'+PDV_l1_848014+"</a><br/>"}if(typeof PDV_share848014!="undefined"){if(PDV_share848014==1){PDV_html848014+='<a class="a2a_dd pds-share"  href="javascript:">'+PDV_l12_848014+"</a>"}}if(PDV_lnk848014==1){PDV_html848014+='<a href="'+protocol+'//polldaddy.com/signup-free/?ad=poll-front" target="_blank" class="pds-pd-link">Polldaddy.com</a>'}PDV_html848014+='<span class="pds-clear"></span>';PDV_html848014+='</span><span class="pds-clear"></span>';PDV_html848014+="</div></div></div></div></div></div></div>";for(PDV_x=0;PDV_x<PDV_A848014.length;PDV_x++){if(PDV_pt848014==0){AA848014[PDV_x]='<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-radiobutton" type="radio" id="PDI_answer'+PDV_A848014[PDV_x][0]+'" value="'+PDV_A848014[PDV_x][0]+'" name="PDI_answer848014" /></span><label for="PDI_answer'+PDV_A848014[PDV_x][0]+'" class="pds-input-label"><span class="pds-answer-span">'+unescape_HTML_848014(PDV_A848014[PDV_x][1])+"</span></label>"+PDV_A848014[PDV_x][3]+'<span class="pds-clear"></span><br/></span>'}else{AA848014[PDV_x]='<span class="pds-answer-group"><span class="pds-answer-input"><input class="pds-checkbox" type="checkbox" id="PDI_answer'+PDV_A848014[PDV_x][0]+'" value="'+PDV_A848014[PDV_x][0]+'" name="PDI_answer'+PDV_A848014[PDV_x][0]+'" onclick="javascript:PDF_mc848014(this);" /></span><label for="PDI_answer'+PDV_A848014[PDV_x][0]+'" class="pds-input-label"><span class="pds-answer-span">'+unescape_HTML_848014(PDV_A848014[PDV_x][1])+"</span></label>"+PDV_A848014[PDV_x][3]+'<span class="pds-clear"></span><br/></span>'}}}function PDF_mc848014(c){if(PDV_pt848014>1){var a=0;for(i=0;i<AA848014.length;i++){r=_$(AA848014[i].substring(AA848014[i].indexOf("id=")+4,AA848014[i].indexOf('"',AA848014[i].indexOf("id=")+4)));if(r.type=="checkbox"&&r.checked){a+=1}}if(PDV_po848014==1){var b=_$("PDI_OtherText848014").value;if(b.length>0){a+=1}}if(a>PDV_pt848014){c.checked=false;c.disabled=true}if(a>=PDV_pt848014){for(i=0;i<AA848014.length;i++){r=_$(AA848014[i].substring(AA848014[i].indexOf("id=")+4,AA848014[i].indexOf('"',AA848014[i].indexOf("id=")+4)));if(r.type=="checkbox"&&!r.checked){r.disabled=true}}}else{if(PDV_po848014==1){_$("PDI_OtherText848014").disabled=false}for(i=0;i<AA848014.length;i++){r=_$(AA848014[i].substring(AA848014[i].indexOf("id=")+4,AA848014[i].indexOf('"',AA848014[i].indexOf("id=")+4)));if(r.type=="checkbox"&&!r.checked){r.disabled=false}}}}}function PDF_a848014(){PDF_o848014();var b;if(PDV_pt848014==0){for(var a=0;a<AA848014.length;a++){b=_$(AA848014[a].substring(AA848014[a].indexOf("id=")+4,AA848014[a].indexOf('"',AA848014[a].indexOf("id=")+4)));if(b.checked){return b.value+","}}b=_$("PDI_answerOther848014");if(b){if(b.checked){return b.value+","}else{return""}}else{return""}}else{for(a=0;a<AA848014.length;a++){b=_$(AA848014[a].substring(AA848014[a].indexOf("id=")+4,AA848014[a].indexOf('"',AA848014[a].indexOf("id=")+4)));if(b.type=="checkbox"&&b.checked){PDV_a848014=PDV_a848014+b.value+","}}return PDV_a848014}}function PDF_o848014(a){if(PDV_po848014==1){PDV_o848014=_$("PDI_OtherText848014").value}}function PDF_checkOther848014(a){var d=false;if(a){var c=_$("PDI_OtherText848014").value;if(c.length==0){d=true}}if(PDV_pt848014==0){if(a&&d){_$("PDI_answerOther848014").checked=false}else{_$("PDI_answerOther848014").checked=true}}else{if(PDV_pt848014>1){var b=1;obj=_$("PDI_OtherText848014");if(a&&d){b=0}for(i=0;i<AA848014.length;i++){r=_$(AA848014[i].substring(AA848014[i].indexOf("id=")+4,AA848014[i].indexOf('"',AA848014[i].indexOf("id=")+4)));if(r.type=="checkbox"&&r.checked){b+=1}}if(b>PDV_pt848014){obj.disabled=true;obj.value="";for(i=0;i<AA848014.length;i++){r=_$(AA848014[i].substring(AA848014[i].indexOf("id=")+4,AA848014[i].indexOf('"',AA848014[i].indexOf("id=")+4)));if(r.type=="checkbox"&&!r.checked){r.disabled=true}}}else{if(b<PDV_pt848014){obj.disabled=false;for(i=0;i<AA848014.length;i++){r=_$(AA848014[i].substring(AA848014[i].indexOf("id=")+4,AA848014[i].indexOf('"',AA848014[i].indexOf("id=")+4)));if(r.type=="checkbox"&&!r.checked){r.disabled=false}}}}}}}function PD_prevote848014(){if(PDV_def848014.indexOf("input.pds-votebutton")==-1){_$("pd-vote-button848014").className="pds-vote-button-load"}var a=document.createElement("SCRIPT");a.charset="utf-8";a.src=PDV_nurl848014+"?"+(new Date).getTime();getHead().appendChild(a)}function PD_vote848014(b){var d=PDF_getTags848014();var c=PDV_server848014+"/vote-js.php?p="+PDV_id848014+(PDV_w848014!=PDV_id848014?"&w="+PDV_w848014:"");var e=false;if(b!=1){PDV_a848014="";PDV_a848014=PDF_a848014(_$("PDI_form848014"));if(PDV_a848014.length==0&&PDV_o848014.length==0){e=true;alert(PDV_l4_848014);if(PDV_def848014.indexOf("input.pds-votebutton")==-1){_$("pd-vote-button848014").className="pds-vote-button"}}else{if(PDV_b848014>0){if(PDF_getCookie848014(PD_ck_name848014)=="true"){PD_ck848014=1}else{PDF_setCookie848014(PD_ck_name848014)}}c+="&b="+PDV_b848014+"&a="+PDV_a848014+"&o="+PDF_urlEncode848014(PDV_o848014)+"&va="+PDV_va848014+"&cookie="+PD_ck848014+"&url="+escape(location.href)+(d.length>0?"&tags="+d:"")+(PDV_n848014.length>0?"&n="+PDV_n848014:"")}}if(!e){var a=document.createElement("SCRIPT");a.charset="utf-8";a.src=c;getHead().appendChild(a)}}function PDF_getTags848014(){if(typeof pd_tags=="undefined"){return""}var a="";for(var b in pd_tags){a+=PDF_urlEncode848014(b)+":"+PDF_urlEncode848014(pd_tags[b])+";"}return a.slice(0,-1)}function PDF_urlEncode848014(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_rand848014(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_loadStyleSheet848014(){var a=document.createElement("style");a.setAttribute("type","text/css");a.setAttribute("id","poll_style848014");if(a.styleSheet){a.styleSheet.cssText=PDV_def848014}else{a.appendChild(document.createTextNode(PDV_def848014))}getHead().appendChild(a)}function PDV_go848014(){if(is_secure()){PDV_def848014=PDV_def848014.replace(/http:\/\/i.polldaddy/g,"https://polldaddy");PDV_def848014=PDV_def848014.replace(/http:\/\/s3.wordpress/g,"https://s-ssl.wordpress")}if(!_$("poll_style848014")){PDF_loadStyleSheet848014()}if(typeof load_audioLibrary_848014=="function"&&typeof PDV_audio_848014!=="undefined"&&PDV_audio_848014>0){load_audioLibrary_848014()}if(!_$("PDI_container848014")){document.write('<a name="pd_a_848014" style="display: inline; padding: 0px; margin: 0px;"></a><div class="PDS_Poll" id="PDI_container848014"></div>')}if(typeof supercookie!=="undefined"&&typeof sc!=="object"){sc=new supercookie()}PDV_html848014+='<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_container848014").innerHTML=PDV_html848014;if(PDV_POLLRAND848014){AA848014=PDF_rand848014(AA848014)}y848014="";for(x848014=0;x848014<AA848014.length;x848014++){y848014=y848014+AA848014[x848014]}_$("pds-answer848014").innerHTML=y848014;share848014()}function PDF_setCookie848014(f){var c="/";var o="";var b="";var d=0;if(typeof(PDV_expire848014)!=="undefined"){d=parseInt(PDV_expire848014)}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_version848014!=="undefined"){f+=(PDV_version848014>0?"_"+PDV_version848014:"")}PDF_log848014("Cookie Name: "+f);if(typeof sc=="object"&&typeof sc.set=="function"){PDF_log848014("SET supercookie");sc.set(f,escape(d))}else{PDF_log848014("SET standard cookie");document.cookie=f+"="+escape(d)+((d)?";expires="+a.toGMTString():"")+((c)?";path="+c:"")+((o)?";domain="+o:"")+((b)?";secure":"")}}function PDF_getCookie848014(f){var a="";var b="";var c="";if(typeof PDV_version848014!=="undefined"){f+=(PDV_version848014>0?"_"+PDV_version848014:"")}PDF_log848014("Cookie Name: "+f);if(typeof sc=="object"&&typeof sc.get=="function"){PDF_log848014("GET supercookie");c=sc.get(f)}else{PDF_log848014("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_log848014("Cookie Value: "+c);if(c=="true"){return c}else{var e=new Date();c=parseInt(c);PDF_log848014("Time: "+e.getTime());if(c>e.getTime()){return"true"}}return null}function PDF_callback848014(){if(typeof pd_callback=="function"){pd_callback()}else{if(typeof pd_callback_848014=="function"){pd_callback_848014()}}}function share848014(){if(typeof PDV_share848014!="undefined"){if(PDV_share848014==1){a2a_linkname="Poll: "+PDV_POLL_q848014;a2a_linkurl=document.location+"#pd_a_848014";a2a_track_links="custom";a2a_track_links_key=document.location+"#pd_a_848014";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_848014(a){var b=document.createElement("DIV");b.innerHTML=a;if(b.innerText!==undefined){return b.innerText}return b.textContent}function PDF_log848014(a){if(typeof(_debug)!=="undefined"&&_debug){if(typeof(console)!=="undefined"&&console!=null){console.log(a)}}}if(pollClosed848014==false){PDV_go848014()}else{share848014()};
