var xmlHttp;
var afterContentID;

function review(userid,filename,beforeID,afterID)
	{
		afterContentID = afterID;
		document.getElementById(beforeID).style.display='none';
		document.getElementById(afterID).style.display='';	
		
		xmlHttp=GetXmlHttpObject()
		
		if (xmlHttp==null)
		 {
		 alert ("Browser does not support HTTP Request")
		 return
		 }
		var url1=filename
		url1=url1+"?userid="+userid
		xmlHttp.onreadystatechange=stateChanged 
		xmlHttp.open("GET",url1,true)
		xmlHttp.send(null) 
	}
	
function stateChanged() 
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	 { 
	 document.getElementById(afterContentID).innerHTML=xmlHttp.responseText 
	 } 
	}
	
	function GetXmlHttpObject()
	{
	var xmlHttp=null;
	try
	 {
	 // Firefox, Opera 8.0+, Safari
	 xmlHttp=new XMLHttpRequest();
	 }
	catch (e)
	 {
	 //Internet Explorer
	 try
	  {
	  xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
	  }
	 catch (e)
	  {
	  xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
	  }
	 }
	return xmlHttp;
	}
	
function showDesc(id,page,width,height,left,top,resizable){
	var url = page + '?id=' + id;
	window.open(url,'mywindow','width='+width+',height='+height+',left='+left+',top='+top+',resizable='+resizable+'1');
}

function showjvideo(id){
	document.getElementById('videoID').style.display='none';
	for(i=1;i<4;i++){
			document.getElementById('videoID_'+i).style.display='none';
	}
	document.getElementById('videoID_'+id).style.display='';
}
