function trim (s) {
	x = s;
  	while (x.length > 0 && x.substr(0,1) == ' ')
		x = x.substr(1);
  	while (x.length > 0 && x.substr(x.length-1,1) == ' ')
		x = x.substr(0,x.length-1);
	return x;
}
function lmdate() {        
   D = new Date(document.lastModified);
   Y=D.getYear();if(Y<1900)if(Y<70)Y=Y+2000;else Y=Y+1900;document.write(D.getDate() + "." + (D.getMonth()+1) + "." +  Y);
}

function weblmdate() {        
   D = new Date(document.lastModified);
   Y=D.getYear();if(Y<1900)if(Y<70)Y=Y+2000;else Y=Y+1900;
   document.write('<ADDRESS>Maintained by <A HREF="/webmaster.html">webmaster</A>@atp.ruhr-uni-bochum.de '+D.getDate() + '.' + (D.getMonth()+1) + '.' +  Y + '</ADDRESS>');
}
var msie = navigator.userAgent.indexOf ("MSIE") != -1;
var nav3plus = false;
var nav4plus = false;
if (navigator.userAgent.indexOf ("Mozilla") != -1) nav3plus = parseInt(navigator.appVersion.substring(0,1)) > 3;
nav4plus = nav3plus & parseInt(navigator.appVersion.substring(0,1)) > 4;

function esrfloor() { atpfloor(); }
function atpfloor() {
// Test for Communicator 4.x. This page works also for Navigator 3.x !!
//nav3plus = nav3plus && msie;
// Determine effective screen height/width
var availHeight = 600;
if (nav3plus)
{
   availHeight = screen.availHeight;
}
  w = window.open("http://www.atp.ruhr-uni-bochum.de/atp/atpfloor.php","ATPFloor","left=0,top=0,screenX=0,screenY=0,scrollbars=yes,status=no,resizable=yes,innerwidth=368,width=372,dependent=yes,height="+(availHeight-40));
  w.focus();
}

function esrworld() { atpworld(); }
function atpworld() {
  window.open("http://www.atp.ruhr-uni-bochum.de/ATPWorld/AtpWorld.html","ATPWorld","screenX=0,screenY=0,scrollbars=yes,status=yes,resizable=yes,innerwidth=800,innerheight=600");
}
