//provide a random timestamp with each call to foil caching
function getTimestamp()
{
	var t = new Date();
	var r = "" + t.getFullYear() + t.getMonth() + t.getDate() + t.getHours() + t.getMinutes() + t.getSeconds(); 

	return(r);
}

function rateOption(rating, option, criteria)
{	
	var url = '/services/rateoption.php';
	var pars = 'r=' + rating + '&o=' + option + '&c=' + criteria + '&ts=' + getTimestamp();	
	
	var myAjax = new Ajax.Updater( 'rating_'+criteria, url, { method: 'get', parameters: pars, evalScripts: true}); 
}
