var temptd=[];temptd[0]="na";temptd[1]="na";temptd[2]="na";temptd[3]="na";temptd[4]="na";temptd[5]="na";temptd[6]="na";var XMLHttp=null,elementid=null;function XMLHttpfunction(){if(window.XMLHttpRequest)XMLHttp=new XMLHttpRequest;else if(window.ActiveXObject)XMLHttp=new ActiveXObject("Microsoft.XMLHTTP");return XMLHttp}
function stateChanged(){if(XMLHttp.readyState==4||XMLHttp.readyState=="complete")try{document.getElementById(elementid).innerHTML=XMLHttp.responseText}catch(b){}else document.getElementById(elementid).innerHTML="<div style='padding:5px;'><font face='arial' size=1>Loading data please wait.........</font></div>"}
function showHintPoll(b,a,c){if(c!="-1")temptd[c]="na";elementid=a;XMLHttp=XMLHttpfunction();if(XMLHttp==null)alert("Browser does not support HTTP Request");else{b=b=b;XMLHttp.onreadystatechange=stateChanged;XMLHttp.open("GET",b,true);XMLHttp.send(null)}}
function VotePoll_V(b,a,c,e){var d="";a=document.getElementsByName(a);for(i=0;i<a.length;i++)if(a[i].checked)d=a[i].value;if(d=="")alert("Please select an option!");else{l_id=document.getElementById(c).value;showHintPoll(""+b+"?disstyle=1&opt="+d+"&id="+l_id+"&",e,"-1")}}
function VotePoll(){var b="",a=document.getElementsByName("PollGB");for(i=0;i<a.length;i++)if(a[i].checked)b=a[i].value;if(b=="")alert("Please select an option!");else{l_id=document.getElementById("PollID").value;showHintPoll("NdtvRprProcessPoll.aspx?opt="+b+"&id="+l_id+"&","divPoll1","-1")}}
function VotePoll_Live(b){var a="",c=document.getElementsByName("PollGB");for(i=0;i<c.length;i++)if(c[i].checked)a=c[i].value;if(a=="")alert("Please select an option!");else{l_id=document.getElementById("PollID").value;showHintPoll(""+b+"?opt="+a+"&id="+l_id+"&","divPoll1","-1")}}
function VotePoll_ThanxMsg(b){var a="",c=document.getElementsByName("PollGB");for(i=0;i<c.length;i++)if(c[i].checked)a=c[i].value;if(a=="")alert("Please select an option!");else{l_id=document.getElementById("PollID").value;showHintPoll("NdtvRprProcessPoll.aspx?opt="+a+"&id="+l_id+"&thanxmsg="+b+"&","divPoll1","-1")}};

