function getVote(cid,int)
	{
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
	    	document.getElementById("poll-"+cid).innerHTML=xmlhttp.responseText;
	    }
	  }
	xmlhttp.open("GET","/poll_vote.php?do=vote&vote="+cid+"&a="+int,true);
	xmlhttp.send();
	}
	
	function getType(cid,int)
	{
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
	    	document.getElementById("type-"+cid).innerHTML=xmlhttp.responseText;
	    }
	  }
	xmlhttp.open("GET","/poll_vote.php?do=type&vote="+cid+"&a="+int,true);
	xmlhttp.send();
	}
	
	function getScheme(cid,int)
	{
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
	    	document.getElementById("scheme-"+cid).innerHTML=xmlhttp.responseText;
	    }
	  }
	xmlhttp.open("GET","/poll_vote.php?do=scheme&vote="+cid+"&a="+int,true);
	xmlhttp.send();
	}
	
	function getCategory(cid,int)
	{
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
	    	document.getElementById("category-"+cid).innerHTML=xmlhttp.responseText;
	    }
	  }
	xmlhttp.open("GET","/poll_vote.php?do=category&vote="+cid+"&a="+int,true);
	xmlhttp.send();
	}
	
	function getSpeech(cid,int)
	{
	if (window.XMLHttpRequest)
	  {// code for IE7+, Firefox, Chrome, Opera, Safari
	  xmlhttp=new XMLHttpRequest();
	  }
	else
	  {// code for IE6, IE5
	  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	xmlhttp.onreadystatechange=function()
	  {
	  if (xmlhttp.readyState==4 && xmlhttp.status==200)
	    {
	    	document.getElementById("speech-"+cid).innerHTML=xmlhttp.responseText;
	    }
	  }
	xmlhttp.open("GET","/poll_vote.php?do=speech&vote="+cid+"&a="+int,true);
	xmlhttp.send();
	}
	
	function advancedRhyme(obj) {
		if (obj.value != ""){
			document.getElementById("filter").checked="checked";
		}	
	}

