function pollSubmit() {
var sUrl '/checkPoll';
var postData "";
var list document.getElementsByName("qpoll");
for(i 0;i<list.length; i++){
if (list[i].checked){
postData "qpoll "+list[i].value;
}
}
/* TODO these lines will be moved to the success fn*/
document.getElementById("pollBox").style.display "none";
document.getElementById("pollBox1").style.display "block";
var request YAHOO.util.Connect.asyncRequest('POST' sUrl formPollCallback postData);
}
// Get the the elements by name from the JSP
//This was in the Javascipt file
var radios document.getElementsByName("qpoll");
for(var i 0;i<radios.length;i++){
radios[i].checked false;
YAHOO.util.Event.addListener(radios[i] "click" poll);
}