function rate (id) {

	var big_rate = false;
	
	if (isNaN(id)) {  
		id = window.foto_id;
	}
	
	
	var l = new Req();
	l.Result = function () {		
		$_('rate_it' + id).style.visibility = 'hidden';
		
		if (id == window.foto_id) {
			$_('rate_it_big').style.visibility = 'hidden';	  		
		}
		
		var score = this.xml.getElementsByTagName('score')[0].firstChild.data;
		
		$_('small_vote_cnt' + id).innerHTML = score;
	}	
	
	l.Connect();
	l.Request(document.location.host + '/requests/vote.php', '&id='+id);	
}
