function showDetail(rPos,rNr,plat) {
	var xHttpReqRom;

	if (window.XMLHttpRequest) { xHttpReqRom=new XMLHttpRequest(); }
	else { xHttpReqRom=new ActiveXObject("Microsoft.XMLHTTP"); }
	
	xHttpReqRom.open("GET","/rshow.php?rn="+rNr+"&plat="+plat+"&rPos="+rPos,false);
	xHttpReqRom.send();
	
	document.getElementById('rDisplay'+rPos).style.display='none';
	document.getElementById('rDetails'+rPos).style.display='block';
	document.getElementById('rDetails'+rPos).innerHTML=xHttpReqRom.responseText;
}

function viewNFO(rNr,plat) {
	var xHttpReqNFO;

	if (window.XMLHttpRequest) { xHttpReqNFO=new XMLHttpRequest(); }
	else { xHttpReqNFO=new ActiveXObject("Microsoft.XMLHTTP"); }
	
	xHttpReqNFO.open("GET","/nfoview.php?rn="+rNr+"&plat="+plat,false);
	xHttpReqNFO.send();

	document.getElementById('nfoView').innerHTML=xHttpReqNFO.responseText;
}

function dbList(dbNr,plat,order) {
	var dbList;

	if (window.XMLHttpRequest) { dbList=new XMLHttpRequest(); }
	else { dbList=new ActiveXObject("Microsoft.XMLHTTP"); }
	
	dbList.open("GET","/"+plat+".php?dbList="+dbNr+"&dbOrder="+order,false);
	dbList.send();

	document.getElementById('dbList-'+plat).innerHTML=dbList.responseText;
}

function addComment(rNr,plat) {
	var xHttpAddCom;

	if (window.XMLHttpRequest) { xHttpAddCom=new XMLHttpRequest(); }
	else { xHttpAddCom=new ActiveXObject("Microsoft.XMLHTTP"); }
	
	xHttpAddCom.open("GET","/addcomment.php?rn="+rNr+"&plat="+plat,false);
	xHttpAddCom.send();

	document.getElementById('comCount_'+plat+'_'+rNr).innerHTML=xHttpAddCom.responseText;
}
