// JavaScript Document
     function getvote(){
     
      for(i=1;i<=4;i++){
      if(document.getElementById("radio"+i).checked==true)
      {
       id=document.getElementById("radio"+i).value;
      }
        }
		xmlhttp = GetXmlHttp();
		xmlhttp.open("Get","getvote.php?option="+id);
		xmlhttp.onreadystatechange = handleStateChange;
		xmlhttp.setRequestHeader( "Content-Type", "text/html;charset=gbk" );
		xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded;");
		xmlhttp.send(null);
	}
	
	function handleStateChange() {
		if(xmlhttp.readyState == 4) {
			if(xmlhttp.status == 200) {
				var allcon =  xmlhttp.responseText;
				if (document.readyState=="complete")
			     {
				document.getElementById('result').innerHTML = allcon;
				}
				}
		}
	}