function AjaxReview(id_num, recaptcha_challenge_field, recaptcha_response_field, name, location, review, rating, email)
{
	var theUL = document.getElementById('workingdiv'); // the UL
	// switch UL with a loading div
	theUL.innerHTML = '<img src="/images/working.gif" alt="Working..." title="Working...">';
	
	xmlhttp.open('get', '/ajax_review.php?j='+id_num+'&q='+escape(recaptcha_challenge_field)+'&k='+escape(recaptcha_response_field)+'&l='+encodeURIComponent(name)+'&m='+encodeURIComponent(location)+'&n='+encodeURIComponent(review)+'&o='+rating+'&p='+escape(email));
	xmlhttp.onreadystatechange = handleResponseReview;
	xmlhttp.send(null);	
}

function handleResponseReview()
{
	if(xmlhttp.readyState == 4)
	{
		if (xmlhttp.status == 200)
		{
       	                var response = xmlhttp.responseText;
			if (response != "Invalid image code.\n")
			        changeText('review_div', response);
			else changeText('captchadiv', '<font color="red">Invalid image code.</font>');
			//Removing Working animated gif
			var theUL = document.getElementById('workingdiv');
			theUL.innerHTML = '';
		}
	}
}