/* 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");
}

function mit0(n){
  return (n<10?"0"+n.toString():n.toString());
}
function clock(){
	var time = new Date (); 
	var mins = time.getMinutes();
	var hr = time.getHours(); 
  var d=time.getDate();
  var m=time.getMonth()+1;
  var wd = time.getDay();
  var y=time.getYear();
  var Wochentag = new Array("Sonntag", "Montag", "Dienstag", "Mittwoch","Donnerstag", "Freitag", "Samstag");

	document.getElementById("uhr").innerHTML=" "+Wochentag[wd]+" "+mit0(d)+"."+mit0(m)+"."+mit0(y % 100)+" "+mit0(hr)+":"+mit0(mins);
	setTimeout('clock()', 10000);
}

