function processGetPost()
{
	var myajax=ajaxpack.ajaxobj;
	var myfiletype=ajaxpack.filetype;

	if (myajax.readyState == 4)
	{ 
		//if request of file completed
		if (myajax.status==200 || window.location.href.indexOf("http")==-1)
		{ 
			//alert(myajax.responseText);
			document.getElementById("reviewarea").innerHTML = myajax.responseText;
		}
	}
}

function makeAjaxReviewRequest()
{
	var pros = document.getElementById("reviewform").pros.value;
	var cons = document.getElementById("reviewform").cons.value;
	var review = document.getElementById("reviewform").review.value;
	var id = document.getElementById("reviewform").id.value;
	var rating = document.getElementById("reviewform").rating[document.getElementById("reviewform").rating.selectedIndex].value;
	document.getElementById("reviewarea").innerHTML = "<table width='100%'><tr><td width='100%' colspan='2'>Please wait, submitting your review...</td></tr></table>";
	ajaxpack.getAjaxRequest("/compapp/productreviewprocess", "pros="+encodeURIComponent(pros)+"&cons="+encodeURIComponent(cons)+"&review="+encodeURIComponent(review)+"&id="+id+"&rating="+rating, processGetPost, "txt");
}
