function changeRubric() {
  var target = document.nav_form.hauptnavi.options[document.nav_form.hauptnavi.selectedIndex].value;
  if (target != ""){
          document.location.href = target;
  }
}
function openPdf(pfad){
 window.open(pfad,'pdfwin','width=750,height=550,scrollbars=yes,resizable=yes')
}

function rot_13(mail)
{
    text = new String();
    text = mail;
    var key = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
    var textrot    = new String();
    for(var i = 0; i < text.length; i++)
    {
        var codechar    = text.substring(i, i + 1);
        var pos = key.indexOf(codechar.toUpperCase());
        if(pos >= 0)
        {
            pos = (pos + key.length / 2) % key.length;
            codechar    = (codechar == codechar.toUpperCase()) ?
                        key.substring(pos, pos + 1) :
                        key.substring(pos, pos + 1).toLowerCase();
        }
        textrot    = textrot + codechar;
    }
    
    location.href = "mailto:"+textrot; 
    return undefined;
}
 
function write(user,domain)
{
  var address = user+String.fromCharCode(64)+domain;
  document.write(address);
}
