	function update_rating(id,type)
	{
            //Javascript used for default + / - rating system
	    document.getElementById('cur-rating-'+id).innerHTML='<img src="http://www.videocunts.com/images/spinner.gif" align="center" />';
	        match = location.href.match(/http:\/\/([^\/]+)/);    
    var url = match[0];
    url=url+'/index.php?ctr=rate';
	    url=url+'&id='+id;
	    url=url+'&rating_type='+type;
	    new Ajax(url, {
	        method: 'get',
	        update: $('cur-rating-'+id)
	    }).request();
	}