/**
 * rateGood
 */
function rateGood( key )
{
	ajax.requestFile = root_path + 'application/ajax/www/rateDigest.php?val=1&user_key='+key ;
	ajax.onCompletion = rateResponse;	// Specify function that will be executed after file has been found
	ajax.runAJAX();		// Execute AJAX function		
	return nd();
	
}

/**
 * rateBad
 */
function rateBad( key )
{
	ajax.requestFile = root_path + 'application/ajax/www/rateDigest.php?val=-1&user_key=' + key ;
	ajax.onCompletion = rateResponse;	// Specify function that will be executed after file has been found
	ajax.runAJAX();		// Execute AJAX function		
	return nd();
}

/**
 * rateResponse
 */
function rateResponse()
{
	document.getElementById('rateDigest').innerHTML = '<div class="flft" style="font-weight:normal; color:#454545;">Score: <b>' + ajax.response + '</b></div>' ;
}
