 var ESP_isVoting4541=false;(function ESP_Poll4541(){var SSV_POLLRAND4541=false;
var SSV_id4541=4541;
var SSV_pt4541=0;
var SSV_po4541=0;
var SSV_s4541=338;
var SSV_b4541=3;
var SSV_server4541='http://polls.esurveyspro.com';
var SSV_html4541='<div class="ESP-question">\n\t\t<div class="ESP-question-outer">\n\t\t\t\t\t<div class="ESP-question-inner">\n\t\t\t\t\t<div class="ESP-question-top">\n\t\t\t\t\t\t<span>Is Wikipedia a valid academic tool?<p>(Poll Closed)</p></span>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>';
var AA4541=new Array();
AA4541[0]='<input type="radio" class="ESP-radiobutton" name="SN_answer4541" id="ESP_answer_4541_0" value="480" /><label for="ESP_answer_4541_0" class="ESP-answer-label-1" >Yes</label><br />\n';
AA4541[1]='<input type="radio" class="ESP-radiobutton" name="SN_answer4541" id="ESP_answer_4541_1" value="481" /><label for="ESP_answer_4541_1" class="ESP-answer-label-1" >No</label><br />\n';

 var headEl=null;
 if(document.getElementsByTagName('HEAD').length==0){
     headEl=document.createElement('HEAD');
     document.appendChild(headEl);
 }
 headEl=document.getElementsByTagName('HEAD')[0];
 var styleEl=document.createElement('STYLE');
 styleEl.id='ESP_poll_style_4541'
 headEl.appendChild(styleEl);
 var styleText='#ESP_container4541 .ESP-box{background:#4a6787 url(http://www.wlv.ac.uk/files/images/poll_bg.jpg) no-repeat top;margin:10px 10px 10px 15px;padding:10px 0px 0px 0px;width:165px;height:auto;}#ESP_container4541 .ESP-question-top{font-size: 1.2em;font-family: Rockwell, Helvetica, Verdana;color:#ffffff;text-decoration:none;background:none  repeat left top;margin:14px 0 8px 4px;padding:14px 2px 0 4px;}#ESP_container4541 .ESP-answer{font-size: 1em;font-family: Rockwell, Helvetica, Verdana;color:#ffffff;text-decoration:none;margin:10px 1px 0 0;padding: 10px 1px 4px 5px;}#ESP_container4541 .ESP-textfield{font:normal normal normal 12px/12px Verdana;color:#333333;text-decoration:none;background:none;border:1px solid #999999;margin:0px 10px 0px 10px;padding:0px 0px 0px 0px;width:150px;height:auto;}#ESP_container4541 .ESP-answer-feedback{background:#1f537e  repeat left top;border:0px solid #999999;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;}#ESP_container4541 .ESP-answer-feedback-bar{background:#ffca05  repeat left top;border:0px solid #999999;margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;}#ESP_container4541 .ESP-totalvotes-inner{font:normal normal bold 12px/20px Verdana;color:#ffffff;width:120px;height:auto;text-decoration:none;background:#6f6f89  repeat left top;border:0px solid #000000;margin:5px 10px 0px 0px;padding:0px 0px 0px 10px;display:inline-block;float:left;}#ESP_container4541 .ESP-votebutton{font:normal normal bold 12px/20px Verdana;color:#ffffff;width:120px;height:auto;text-decoration:none;background:#6f6f89  repeat left top;border:0px solid #000000;margin:5px 10px 0 0;padding:0px 0px 0 0;display:inline-block;float:left;}#ESP_container4541 .ESP-votebutton-text{display:inline;}#ESP_container4541 .ESP-viewResult{font:normal normal bold 12px/20px Verdana;color:#ffffff;width:110px;height:auto;text-decoration:none;background:#6f6f89  repeat left top;border:0px solid #000000;margin:5px 10px 0px 0px;padding:0px 0px 0px 10px;display:inline-block;float:left;}#ESP_container4541 .ESP-viewResult:hover{color:#ffc407;}#ESP_container4541 .ESP-viewResult:visited{font:normal normal bold 12px/20px Verdana;color:#ffffff;width:110px;height:auto;text-decoration:none;background:#6f6f89  repeat left top;border:0px solid #000000;margin:5px 10px 0px 0px;padding:0px 0px 0px 10px;display:inline-block;float:left;}#ESP_container4541 .ESP-pollComments{font:normal normal normal 12px/20px Verdana;color:#333333;width:120px;height:auto;text-decoration:none;background:#FFFFFF;border:0px solid #000000;margin:0px 10px 0px 10px;padding:0px 0px 0px 0px;display:inline-block;float:left;clear:left;}#ESP_container4541 .ESP-pollComments:hover{font:normal normal normal 12px/20px Verdana;color:#333333;width:120px;height:auto;text-decoration:underline;background:#FFFFFF;border:0px solid #000000;margin:0px 10px 0px 10px;padding:0px 0px 0px 0px;display:inline-block;float:left;clear:left;}#ESP_container4541 .ESP-pollComments:visited{font:normal normal normal 12px/20px Verdana;color:#333333;width:120px;height:auto;text-decoration:none;background:#FFFFFF;border:0px solid #000000;margin:0px 10px 0px 10px;padding:0px 0px 0px 0px;display:inline-block;float:left;clear:left;}#ESP_container4541 .ESP-returnToPoll{font:normal normal bold 12px/20px Verdana;color:#ffffff;width:120px;height:auto;text-decoration:none;background:#6f6f89  repeat left top;border:0px solid #000000;margin:5px 10px 0px 0px;padding:0px 0px 0px 10px;display:inline-block;float:left;}#ESP_container4541 .ESP-returnToPoll:hover{font:normal normal bold 12px/20px Verdana;color:#ffc407;width:120px;height:auto;text-decoration:none;background:#6f6f89  repeat left top;border:0px solid #000000;margin:5px 10px 0px 0px;padding:0px 0px 0px 10px;display:inline-block;float:left;}#ESP_container4541 .ESP-returnToPoll:visited{font:normal normal bold 12px/20px Verdana;color:#ffffff;width:120px;height:auto;text-decoration:none;background:#6f6f89  repeat left top;border:0px solid #000000;margin:5px 10px 0px 0px;padding:0px 0px 0px 10px;display:inline-block;float:left;}#ESP_container4541 .ESP-box label{padding-left: 0}#ESP_container4541 .ESP-box input{margin-left: 5px;}#ESP_container4541 ';
 var styleDefination=document.createTextNode(styleText);
 if(styleEl.styleSheet)
    styleEl.styleSheet.cssText=styleText;
 else
     styleEl.appendChild(styleDefination);
y4541='';
for(j=0;j<AA4541.length;j++){y4541+=AA4541[j];}
document.write("<div id='ESP_container4541'>\n");
document.write("  <div id='pollResult4541'style='display:none;'></div>\n");
document.write("  <div id='pollBody4541' class='ESP-box'>\n");
document.write("      <div class='ESP-box-outer'>\n");
document.write("          <div class='ESP-box-inner'>\n");
document.write("              <div class='ESP-box-top'>\n");
document.write("                  "+SSV_html4541+"\n");document.write("                  <div class='ESP-answer'  style='display:none'>\n");document.write("                      <div class='ESP-answer4541' >"+y4541+"<br /></div>\n");
document.write("                  </div>\n");
document.write("                  <div class='ESP-vote'  style='display:none'>\n");
document.write("                      <div class='ESP-votebutton-outer' style='clear:both;'>\n");
document.write("                          <div id='loader4541' style='display:none;border:1px solid #000;background:#fff;width:208px;padding:15px;position:absolute;z-index:2;'><img src='http://www.esurveyspro.com/images/wait.gif' alt='Loading...' /></div>");
document.write("                          <button class='ESP-votebutton'  type='button' id='ESP_vote4541_button'>\n");
document.write("                              <span class='ESP-votebutton-text'>Vote</span>\n");
document.write("                          </button>\n");
document.write("                          <a href='javascript:;' class='ESP-viewResult' id='ESP_viewResult4541'>View Results</a>\n");
document.write("                      <br style='clear:both;' /></div>\n");
document.write("                  </div>\n");
document.write("              </div>\n");
document.write("          </div>\n");
document.write("      </div>\n");
document.write("   </div>\n");
document.write("</div>\n");
function ESP_IsAnswerChecked4541() {
     for(i=0;i<AA4541.length;i++) {
         if(document.getElementById('ESP_answer_4541_'+i).checked) {return true;}
     }
     return false;
}
function ESP_vote4541(a){
  var oA='';
  if (ESP_IsAnswerChecked4541() || a==false){
      var cookie=ESPsubcookiejar.fetch ('eSurveysProVoted_Cookie_4541', 'closeDate')||'';
      if(cookie !='') cookie ='&cookie='+cookie;
      var r;
      if(SSV_pt4541==1){SSV_a4541='';
          for(i=0;i<AA4541.length;i++) {
              r = document.getElementById('ESP_answer_4541_'+i);
              if(r.type=='checkbox' && r.checked) {
                  SSV_a4541+=r.value+',';
              } 
          } 
       }else{SSV_a4541='';
          for(i=0;i<AA4541.length;i++){
              r=document.getElementById('ESP_answer_4541_'+i);
              if(r.checked) { SSV_a4541+=r.value+',';}
          }
       }
       SSV_a4541=SSV_a4541.substring(0,SSV_a4541.length-1);
       var s4541 = document.createElement('SCRIPT');
       ESP_isVoting4541=true;
       document.getElementById('loader4541').style.display='block';
       if(a==false)
       {
           s4541.src ='http://www.esurveyspro.com/App/Polls/pollVote.aspx?PollId=4541&'+(new Date());
           ESP_isVoting4541=false;
       }
       else
           s4541.src ='http://www.esurveyspro.com/App/Polls/pollVote.aspx?PollId=4541&ansId='+SSV_a4541+'&oA='+oA+cookie+'&'+(new Date());
       var h = document.getElementsByTagName('head').item(0);
       if(a==false)
       {
          window.setTimeout(function(){h.appendChild(s4541);},900);
       }
       else
       {
          h.appendChild(s4541);
       }
   }
   else{alert('Please choose an answer first!');}
}
document.getElementById('ESP_vote4541_button').onclick=function(){ESP_vote4541();}
if(document.getElementById('ESP_viewResult4541'))
     document.getElementById('ESP_viewResult4541').onclick=function(){ESP_vote4541(false);}
})();
                if(!ESPcookiejar)
                {
                    var ESPcookiejar = {
            	        /* set a cookie */
            	        bake: function(cookieName,cookieValue,days,path){
            		        var expires='';
            		        if (days)
            		        {
            			        var date = new Date();
            			        date.setTime(date.getTime()+(days*24*60*60*1000));
            			        expires = "; expires="+date.toGMTString();
            		        }
            		        var thePath = '; path=/';
            		        if (path) 
                                thePath = '; path='+path;
            		        document.cookie = cookieName+'='+escape(cookieValue)+expires+thePath;
            	        },
            	        /* get a cookie value */
            	        fetch: function(cookieName){
            		        var nameEQ = cookieName + '=';
            		        var ca = document.cookie.split(';');
            		        for (var i=0; i<ca.length; i++)
            		        {
            			        var c = ca[i];
            			        while (c.charAt(0)==' ') c = c.substring(1,c.length);
            			        if (c.indexOf(nameEQ)==0) return unescape(c.substring(nameEQ.length,c.length));
            		        }
            		        return null;
            	        },
            	        /* delete a cookie */
            	        crumble: function(cookieName){
            		        cookiejar.bake(cookieName,'',-1);
            	        }
                    };
            
                    /* circumventing browser restrictions on the number of cookies one can use */
                    var ESPsubcookiejar = {
            	        nameValueSeparator: '$$:$$',
            	        subcookieSeparator: '$$/$$',
            	        /* set a cookie. subcookieObj is a collection of cookies to be. Every member of subcookieObj is the name of the cookie, its value
            	         * the cookie value
            	         */
            	        bake: function(cookieName,subcookieObj,days,path){
            		        var cookieValue = '';
            		        for (var i in subcookieObj)
            		        {
            			        cookieValue += i + ESPsubcookiejar.nameValueSeparator;
            			        cookieValue += subcookieObj[i];
            			        cookieValue += ESPsubcookiejar.subcookieSeparator;
            		        }
            		        /* remove trailing subcookieSeparator */
            		        cookieValue = cookieValue.substring(0,cookieValue.length-ESPsubcookiejar.subcookieSeparator.length);

            		        ESPcookiejar.bake(cookieName,cookieValue,days,path);
            	        },
            	        /* get a subcookie */
            	        fetch: function(cookieName,subcookieName){
            		        var cookieValue = ESPcookiejar.fetch(cookieName);
                            if(cookieValue)
                            {
            		            var subcookies = cookieValue.split(ESPsubcookiejar.subcookieSeparator);
            		            for (var i=0; i<subcookies.length; i++)
            		            {
            			            var sc = subcookies[i].split(ESPsubcookiejar.nameValueSeparator);
            			            if (sc[0]==subcookieName) return sc[1];
            		            }
                            }
            		        return null;
            	        },
            	        /* delete a subcookie */
            	        crumble: function(cookieName,subcookieName,days,path)
            	        {
            		        var cookieValue = cookiejar.fetch(cookieName);
            		        var newCookieObj = {};
            		        var subcookies = cookieValue.split(ESPsubcookiejar.subcookieSeparator);
            		        for (var i=0; i<subcookies.length; i++)
            		        {
            			        var sc = subcookies[i].split(ESPsubcookiejar.nameValueSeparator);
            			        if (sc[0]!=subcookieName) newCookieObj[sc[0]] = sc[1];
            		        }
            		        ESPsubcookiejar.bake(cookieName,newCookieObj,days,path);
            	        }
                    };
                }//end if
var MONTH_NAMES=new Array('January','February','March','April','May','June','July','August','September','October','November','December','Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
var DAY_NAMES=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sun','Mon','Tue','Wed','Thu','Fri','Sat');

function LZ(x) {return(x<0||x>9?"":"0")+x}
function formatDate(date,format) {
	format=format+"";
	var result="";
	var i_format=0;
	var c="";
	var token="";
	var y=date.getYear()+"";
	var M=date.getMonth()+1;
	var d=date.getDate();
	var E=date.getDay();
	var H=date.getHours();
	var m=date.getMinutes();
	var s=date.getSeconds();
	var yyyy,yy,MMM,MM,dd,hh,h,mm,ss,ampm,HH,H,KK,K,kk,k;
	// Convert real date parts into formatted versions
	var value=new Object();
	if (y.length < 4) {y=""+(y-0+1900);}
	value["y"]=""+y;
	value["yyyy"]=y;
	value["yy"]=y.substring(2,4);
	value["M"]=M;
	value["MM"]=LZ(M);
	value["MMM"]=MONTH_NAMES[M-1];
	value["NNN"]=MONTH_NAMES[M+11];
	value["d"]=d;
	value["dd"]=LZ(d);
	value["E"]=DAY_NAMES[E+7];
	value["EE"]=DAY_NAMES[E];
	value["H"]=H;
	value["HH"]=LZ(H);
	if (H==0){value["h"]=12;}
	else if (H>12){value["h"]=H-12;}
	else {value["h"]=H;}
	value["hh"]=LZ(value["h"]);
	if (H>11){value["K"]=H-12;} else {value["K"]=H;}
	value["k"]=H+1;
	value["KK"]=LZ(value["K"]);
	value["kk"]=LZ(value["k"]);
	if (H > 11) { value["a"]="PM"; }
	else { value["a"]="AM"; }
	value["m"]=m;
	value["mm"]=LZ(m);
	value["s"]=s;
	value["ss"]=LZ(s);
	while (i_format < format.length) {
		c=format.charAt(i_format);
		token="";
		while ((format.charAt(i_format)==c) && (i_format < format.length)) {
			token += format.charAt(i_format++);
			}
		if (value[token] != null) { result=result + value[token]; }
		else { result=result + token; }
		}
	return result;
	}

            