/* Netscape 4 Fix */
function resizeFix(init) 
{	
	if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.pgW=innerWidth; document.pgH=innerHeight; onresize=resizeFix; }}
	else if (innerWidth!=document.pgW || innerHeight!=document.pgH) location.reload();
}
resizeFix(true);

/* FCK Editor Window: */
function rte_open(URL, width, height) 
{
	var breite = width;
	var hoehe = height;
	var positionX=((screen.availWidth / 2) - breite / 2);
	var positionY=((screen.availHeight / 2) - hoehe / 2);

	popup = window.open(URL,'WYSIWYG','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,fullscreen=no,width='+breite+',height='+hoehe+',top='+positionY+',left='+positionX);

	popup.resizeTo(breite,hoehe);
	popup.moveTo(positionX,positionY);
}

/* Druckversion Window: */
function print_open(URL) 
{
	var breite = 560;
	var hoehe = 700;
	var positionX=((screen.availWidth / 2) - breite / 2);
	var positionY=((screen.availHeight / 2) - hoehe / 2);

	popup = window.open(URL,'Druckversion','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes,resizable=yes,fullscreen=no,width='+breite+',height='+hoehe+',top='+positionY+',left='+positionX);

	popup.resizeTo(breite,hoehe);
	popup.moveTo(positionX,positionY);
}

/* Tell-A-Friend Window: */
function taf_open(URL, width, height) 
{
	var breite = width;
	var hoehe = height;
	var positionX=((screen.availWidth / 2) - breite / 2);
	var positionY=((screen.availHeight / 2) - hoehe / 2);

	popup = window.open(URL,'Weiterempfehlen','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,fullscreen=no,width='+breite+',height='+hoehe+',top='+positionY+',left='+positionX);

	popup.resizeTo(breite,hoehe);
	popup.moveTo(positionX,positionY);
}

/* XMENU Drop-Down goto URL */
function xjumpMenu(targ,selObj,restore)
{
  	eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  	if (restore) selObj.selectedIndex=0;
}

function mt(subject,name,body,domain) {
  location.href = 'mailto:' + name + '@' + domain + '?subject=' + subject + '&body=' + body.replace(/###Zeilenschaltung###/g, "%0D%0A");
}

