function fenster(file,name,groesse) {
	var win; win=window.open(file,name,groesse);
}

function addBookmark(title,url) {
  if(window.sidebar) {
    window.sidebar.addPanel(title, url,"");
  } else if(document.all) {
    window.external.AddFavorite(url, title);
  } else if(window.opera && window.print) {
    return true;
  }
}

function quicknav(site) { 
  if (site != "nix")  document.location.href = site;    
}

function nospam_mailto(PRE,POST,TEMPLATE) {
  MAIL=(PRE+"&#64;"+POST).replace(/e/gi,"&#101;");
  LINK=TEMPLATE.replace(/xxx/gi,MAIL);
  document.write(LINK);
}

function no_druckversion_links() {
	alert('Funktion ist in der Druckversion deaktiviert!');
}

function toggle(element) {
	doc = document.getElementById(element);
	if(doc.style.display == 'block')
		doc.style.display = 'none';
	else
		doc.style.display = 'block';
}			

function change_menue (num,richtung) {
  if (richtung=="down") {
     inhalt1_titel = document.MENSORT[num*4+0].value;
     inhalt1_stufe = document.MENSORT[num*4+1].value;
     inhalt1_datei = document.MENSORT[num*4+2].value;
     inhalt1_zone  = document.MENSORT[num*4+3].value;

     inhalt2_titel = document.MENSORT[num*4+4].value;
     inhalt2_stufe = document.MENSORT[num*4+5].value;
     inhalt2_datei = document.MENSORT[num*4+6].value;
     inhalt2_zone  = document.MENSORT[num*4+7].value;

     document.MENSORT[num*4+0].value = inhalt2_titel;
     document.MENSORT[num*4+1].value = inhalt2_stufe;
     document.MENSORT[num*4+2].value = inhalt2_datei;
     document.MENSORT[num*4+3].value = inhalt2_zone;

     document.MENSORT[num*4+4].value = inhalt1_titel;
     document.MENSORT[num*4+5].value = inhalt1_stufe;
     document.MENSORT[num*4+6].value = inhalt1_datei;
     document.MENSORT[num*4+7].value = inhalt1_zone;
  }
  else {
     inhalt1_titel = document.MENSORT[num*4-4].value;
     inhalt1_stufe = document.MENSORT[num*4-3].value;
     inhalt1_datei = document.MENSORT[num*4-2].value;
     inhalt1_zone  = document.MENSORT[num*4-1].value;

     inhalt2_titel = document.MENSORT[num*4+0].value;
     inhalt2_stufe = document.MENSORT[num*4+1].value;
     inhalt2_datei = document.MENSORT[num*4+2].value;
     inhalt2_zone  = document.MENSORT[num*4+3].value;

     document.MENSORT[num*4-4].value = inhalt2_titel;
     document.MENSORT[num*4-3].value = inhalt2_stufe;
     document.MENSORT[num*4-2].value = inhalt2_datei;
     document.MENSORT[num*4-1].value = inhalt2_zone;

     document.MENSORT[num*4+0].value = inhalt1_titel;
     document.MENSORT[num*4+1].value = inhalt1_stufe;
     document.MENSORT[num*4+2].value = inhalt1_datei;
     document.MENSORT[num*4+3].value = inhalt1_zone;
  }
}

