<script>
function dovote(){
   var ipaddress = document.getElementById("IPAddress").value;
   var choiceids = document.getElementsByName("CHOICEID");
   var ids="";
   for(var i=0;i<choiceids.length;i++){
       if(choiceids[i].checked==true){
            ids+=choiceids[i].value+",";
       }
   }
   document.myform.action="dovote_many_dowith.jsp?ipaddress="+ipaddress+"&ids="+ids+"&ThemeId=1";
   document.myform.submit();
}
</script>