var http = getHTTPObject();
var ajax_url = "ajax.php?";

function getHTTPObject()
{ 
	var xmlhttp; 
	
	if(window.XMLHttpRequest)
	{ 
		xmlhttp = new XMLHttpRequest(); 
	} 
	else if(window.ActiveXObject)
	{ 
		xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
		
		if(!xmlhttp)
		{ 
			xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); 
		} 
	} 
	
	return xmlhttp; 
}

function index_recent_winners_handleHttpResponse()
{
	if(http.readyState == 4)
	{
		if(http.status == 200)
		{
			var results = http.responseText;
			
			document.getElementById('i_r_w_rate_me').innerHTML = results;
		}
	}
}

function index_recent_winners(v_id,u_id,rating,act)
{
	http.open("GET", ajax_url + "v_id=" + v_id + "&u_id=" + u_id + "&rating=" + rating + "&act=" + act, true);
	http.onreadystatechange = index_recent_winners_handleHttpResponse;
	http.send(null);
}