function vote(poll_id, choice_id, voter_ip){
	var xmlHttp;
	try{xmlHttp=new XMLHttpRequest();}catch (e){try {xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e){alert("Your browser does not support AJAX!");return false;}}}
	xmlHttp.onreadystatechange=function(){
		if(xmlHttp.readyState==4){
			document.getElementById('poll').innerHTML = '<div style="float: left">' + xmlHttp.responseText + '</div><div style="clear:both"></div>';
		}
	}
	xmlHttp.open("GET","ajaxCallers/vote.php?poll_id=" + poll_id + "&choice_id=" + choice_id + "&voter_ip=" + voter_ip,true);
	xmlHttp.send(null);
}
function viewResult(poll_id) {
	var xmlHttp;
	try{xmlHttp=new XMLHttpRequest();}catch (e){try {xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}catch (e){try{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}catch (e){alert("Your browser does not support AJAX!");return false;}}}
	xmlHttp.onreadystatechange=function(){
		if(xmlHttp.readyState==4){
			document.getElementById('poll').innerHTML = '<div style="float: left">' + xmlHttp.responseText + '</div><div style="clear:both"></div>';
		}
	}
	xmlHttp.open("GET","ajaxCallers/vote.php?poll_id=" + poll_id + "&results=1",true);
	xmlHttp.send(null);
}