var ah;
var aw;

function height() {
	Browser = navigator.appName;
  	if (navigator.appName.substring(0,9) == "Microsoft") Browser = 'MSIE';
  	if (Browser != 'MSIE') {
      		var ah = innerHeight;
    	} else {
      		var ah = document.body.clientHeight;
      	}
	return ah;
}

function width() {
	Browser = navigator.appName;
  	if (navigator.appName.substring(0,9) == "Microsoft") Browser = 'MSIE';
  	if (Browser != 'MSIE') {
      		var aw = innerWidth;
    	} else {
      		var aw = document.body.clientWidth;
      	}
	return aw;
}

function MM_openChangi(theURL,winName,features){
	window.open(theURL,winName,'width=594,height=420,left='+(width()/2 - 297) + ',top=' + (screen.height/2 - 210)+ '');
	}

function MM_openCora(theURL,winName,features){
	window.open(theURL,winName,'width=714,height=420,left='+(width()/2 - 357) + ',top=' + (screen.height/2 - 210)+ '');
	}

function MM_openGerecht(theURL,winName,features){
	window.open(theURL,winName,'width=714,height=350,left='+(width()/2 - 357) + ',top=' + (screen.height/2 - 175)+ '');
	}

function MM_openShera(theURL,winName,features){
	window.open(theURL,winName,'width=620,height=420,left='+(width()/2 - 310) + ',top=' + (screen.height/2 - 210)+ '');
	}

function MM_openRoadmap(theURL,winName,features){
	window.open(theURL,winName,'width=680,height=423,left='+(width()/2 - 340) + ',top=' + (screen.height/2 - 211)+ '');
	}
