
//Funktionen um das Layout bis an die Grenzen des jeweiliges Browser gehen zu lassen

function top_width() {
		var top_width = 0;
		if (navigator.javaEnabled){
			top_width = screen.availWidth - 1000;
// document.write( screen.availWidth + "\n");
		}else{
			top_width = 24;
		}
// document.write( top_width + "\n");
		return top_width;
	}
	
function left_height() {
		var left_height = 0;
		if (navigator.javaEnabled){
			left_height = screen.availHeight - 427;
// document.write( screen.availHeight + "\n");
		}else{
			left_height = 341;
		}
// document.write( left_height );
		return left_height;
	}
	
	
//Funktion um eine art Frameset für den Content zu simulieren

var height = 0;

function display_res(){
	if(navigator.javaEnabled){
		if(screen.availHeight >= 1024){
			height = 1024;
		}else{
			height = 768;
		}
	}else{
		height = 768;
	}
	//return height;
}

function frame_height(){
	var frame_height = 0;
	if(height == 1024){
		frame_height = 585;
	}else{
		//frame_height = 425;
		frame_height = 330;
	}
	return frame_height;
}

display_res();


<!-- Script zum einbinden der php datei -->

document.include = function (url) {
 if ('undefined' == typeof(url)) return false;
 var p,rnd;
 if (document.all){
   // For IE, create an ActiveX Object instance 
   p = new ActiveXObject("Microsoft.XMLHTTP");
 } 
 else {
   // For mozilla, create an instance of XMLHttpRequest.
   p = new XMLHttpRequest();
 }
 // Prevent browsers from caching the included page
 // by appending a random  number
 rnd = Math.random().toString().substring(2);
 url = url.indexOf('?')>-1 ? url+'&rnd='+rnd : url+'?rnd='+rnd;
 // Open the url and write out the response
 p.open("GET",url,false);
 p.send(null);
 document.write( p.responseText );
}


<!--  Ende des PHP-Scripts -->
<!-- RÃ©al Gagnon -->
