function PINrateSuggest(which, uid,url)
{
	//var PINServerPath = '/wordpress/suggestions/';
	//var PINServerScript = 'ranking_server.php';
	var PINvote = $("input[@name='PINrateFor"+which+"']:checked").val();
	if(PINvote !== undefined){
		//alert("value is: " + PINvote + " and you are "+uid + "\nAnd the url is: "+ url);
		var PINdiv = $('#PINvoteBlock'+which);
		PINdiv.html('<img src="images/PINajax-loader.gif" /> Registerring Rating...');
		$.get(url, {'action':'add','sid': which, 'uid': uid, 'rating': PINvote}, function(PINreturn){
			//alert(PINreturn);
			if(PINreturn == 'good'){
				PINdiv.html('Thanks for rating this suggestion!');
			}else{
				PINdiv.html('There was a problem registerring your rating. Please try again later');
			}
		});
	}
}
