var xmlHttp

function vote(voto,game){ 
	xmlHttp=GetXmlHttpObject()
	var url="functions.php"
	url=url+"?a=Vote&v="+voto+"&g="+game
	xmlHttp.onreadystatechange= function(){ stateChanged("vote") }
	xmlHttp.open("GET",url,true)
	xmlHttp.send(null)
	document.getElementById("voted").innerHTML="Your Vote: <img src='http://www.lorenzgames.com/gif/vote"+voto+".gif' alt='My Vote' width='14' height='14' />"
}

function GetXmlHttpObject(){var xmlHttp=null;
try {xmlHttp=new XMLHttpRequest();}
catch (e) {try{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch (e){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}