<!--
function UhrAnzeigen()
{
	var uhrzeit;
	var Titel = "Datum & Uhrzeit in der Titelleiste";
	var Datum = new (Date);
	var Tag = Datum.getDate();
	var Wochentag = Datum.getDay();
	var Monat = Datum.getMonth();
	var Jahr = Datum.getFullYear();
	var Tagname = new Array("So", "Mo", "Di", "Mi", "Do", "Fr", "Sa");
	var Monatname = new Array("01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12");
	var Stunde = Datum.getHours();
	var Minute = Datum.getMinutes();
	var Sekunde = Datum.getSeconds();
	if(Sekunde<10)
	{
		Sekunde = "0" + Sekunde;
	}
	if(Minute<10)
	{
		Minute = "0" + Minute;
	}
	if(Stunde<10)
	{
		Stunde = "0" + Stunde;
	}
	if(Tag<10)
	{
		Tag = "0" + Tag;
	}
	uhrzeit = +Tag+"."+Monatname[Monat]+"."+Jahr+" - "+Stunde+":"+Minute+":"+Sekunde;
	setTimeout("UhrAnzeigen()", 1000);
	
	document.getElementById("uhr").value = uhrzeit;
}

function Fensterweite () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 0;
  }
}

function Fensterhoehe () {
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
    return document.body.offsetHeight;
  } else {
    return 0;
  }
}

function neuAufbau () {
  if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
    location.href = location.href;
}
/* Überwachung von Netscape initialisieren */
if (!window.Weite && window.innerWidth) {
  window.onresize = neuAufbau;
  Weite = Fensterweite();
  Hoehe = Fensterhoehe();
}
function popupWindow(url, name, links, oben, hoehe, breite, scrollbar) {
	if(!links)  links = 10;
	if(!oben) 	 oben = 10;
	if(!hoehe) 	hoehe = 400;
	if(!breite)	breite = 400;
	if(!scrollbar)	scrollbar = 'no';
		
	popup = window.open(url , name , "height="+hoehe+",width="+breite+" ,status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = "+scrollbar+",fullscreen = no,top ="+oben+",left ="+links);
	popup.focus();
 }

function save(){
	document.f2.submit();
}

function changeContentArea(element) {
	
	var element = (element) ? element : document.getElementById('current_area').value;
		
	if(element){
		objTabDescription = document.getElementById('tab_description');
		objTabContent = document.getElementById('tab_content');
		objTabUpload = document.getElementById('tab_upload');
		
		document.getElementById('area_description').style.display='none';
		document.getElementById('area_content').style.display='none';
		if(document.getElementById('area_upload')) document.getElementById('area_upload').style.display='none';
		
		switch(element){
			case "area_description":
				objTabDescription.className = 'xmenu2_active';
				objTabContent.className = 'xmenu2';
				if(objTabUpload) objTabUpload.className = 'xmenu2';
				document.f2.current_area.value = 'area_description';
				document.getElementById('area_description').style.display='block';
				
			break;
			case "area_content":
				objTabDescription.className = 'xmenu2';
				objTabContent.className = 'xmenu2_active';
				if(objTabUpload)objTabUpload.className = 'xmenu2';
				document.f2.current_area.value = 'area_content';
				document.getElementById('area_content').style.display='block';
			break;
			case "area_upload":
				objTabDescription.className = 'xmenu2';
				objTabContent.className = 'xmenu2';
				if(objTabUpload)objTabUpload.className = 'xmenu2_active';
				document.f2.current_area.value = 'area_upload';
				document.getElementById('area_upload').style.display='block';
			break;
		}
	}
}


//-->