var nn4 = (document.layers);
var nn6 = (document.getElementById && !document.all);
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);

function loadPage(id,nestref,url) {
	if (nn4) {
	var lyr = (nestref)? eval('document.'+nestref+'.document.'+id) : document.layers[id]
	lyr.load(url,lyr.clip.width)
	}
	else if(ie4) parent.contentFRM.location = url;
	else if(ie5 || nn6) document.getElementById('contentFRM').src = url;
	}
	function showPage(id) {
	if (ie4) {
	document.all[id].innerHTML = parent.contentFRM.document.body.innerHTML;
	}
	else if(nn6 || ie5) { 
	document.getElementById(id).innerHTML = window.frames['contentFRM'].document.getElementById('theBody').innerHTML;
	   }
}

function PopUp(w,h,ziel) {
  var x=0, y=0, parameter="";
  if (w < screen.availWidth || h < screen.availHeight) {
    x = (screen.availWidth - w - 12) / 2;
    y = (screen.availHeight - h - 250) / 2;
    if (window.opera) y = 0; // Opera positioniert unter den Symbolleisten
    if (x<0 || y<0) { x=0; y=0; }
    else parameter = "width=" + w + ",height=" + h + ",";
  }
  parameter += "left=" + x + ",top=" + y;
  parameter += ",menubar=no,location=no,toolbar=no,status=no";
  parameter += ",resizable=yes,scrollbars=yes";
  var Fenster = window.open(ziel,"PopUp",parameter);
  if (Fenster) Fenster.focus();
  return !Fenster;
}

function post(user,domain) {
	 string = "mailto:" + user + "@" + domain;
	 window.location = string;
 }
 
 
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function wmax(init) {
	window.moveTo(0,0);
	window.resizeTo(screen.availWidth,screen.availHeight);
	//*** Next Two Lines Are For Netscape ***//
	window.outerHeight=screen.availHeight;
	window.outerWidth=screen.availWidth;
	//window.focus();
}

function w(page, width, height) { 
OpenWin = this.open(page, "PlopUp", "toolbar=no,menubar=no,location=no,scrollbars=no,resizable=yes,width="+width+", height="+height+""); 
}