// JavaScript Document for get classes
var pid;
function vote_helpful(plid){
	pid=plid;
	try{
		var url = "../action/review_vote.asp?vote=helpful&plid=" +escape(plid);
		xmlHttp.open("GET", url, true);
		xmlHttp.onreadystatechange = getClassesOk;
		xmlHttp.send(null);	
	}catch(exception){}
}
function vote_unhelpful(plid){
	pid=plid;
	try{
		var url = "../action/review_vote.asp?vote=unhelpful&plid=" +escape(plid);
		xmlHttp.open("GET", url, true);
		xmlHttp.onreadystatechange = getClassesOk;
		xmlHttp.send(null);	
	}catch(exception){}
}

function getClassesOk(){
	if (xmlHttp.readyState == 4) {
		var response = xmlHttp.responseText;
		
		try{
			var classObj = document.getElementById("show_class"+pid);
			classObj.innerHTML=response;
		}catch(exception){}
	}	
}

