function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL)
{ //v5.0
  var newURL='', userAgent=navigator.userAgent, version=0;
  if (userAgent.indexOf('Netscape') != -1) 
  {
    version = parseFloat(userAgent.substring(userAgent.indexOf('Netscape')+9,userAgent.length));
    if (version >= NSvers)
    {
      if (NSpass>0)
        newURL=(NSpass==1)?URL:altURL;
    }
    else
    {
      if (NSnoPass>0)
        newURL=(NSnoPass==1)?URL:altURL;
    }
  } 
  else
  {
    if (userAgent.indexOf('MSIE') != -1) 
    {
      version = parseFloat(userAgent.substring(userAgent.indexOf('MSIE')+4,userAgent.length));
      if (version >= IEvers)
      {
        if (IEpass>0)
          newURL=(IEpass==1)?URL:altURL;
      }
      else
      {
        if (IEnoPass>0)
          newURL=(IEnoPass==1)?URL:altURL;
      }
    }
    else
      if (OBpass>0)
        newURL=(OBpass==1)?URL:altURL;
  }
  if (newURL)
  {
    window.location=unescape(newURL);
    document.MM_returnValue=false; 
  }
}

function MM_checkBrowser2(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL) 
{ //v4.0
  var newURL='', verStr=navigator.appVersion, app=navigator.appName, version = parseFloat(verStr);
  if (app.indexOf('Netscape') != -1) 
  {
    if (version >= NSvers) 
    {
      if (NSpass>0)
         newURL=(NSpass==1)?URL:altURL;
    }
    else 
    {
      if (NSnoPass>0) 
        newURL=(NSnoPass==1)?URL:altURL;
    }
  }
  else
    if (app.indexOf('Microsoft') != -1)
    {
      if (version >= IEvers || verStr.indexOf(IEvers) != -1)
      {
        if (IEpass>0)
          newURL=(IEpass==1)?URL:altURL;}
        else
        {
          if (IEnoPass>0)
             newURL=(IEnoPass==1)?URL:altURL;
        }
    }
    else
      if (OBpass>0)
        newURL=(OBpass==1)?URL:altURL;
    if (newURL)
    {
      window.location=unescape(newURL);
      document.MM_returnValue=false; 
    }
}

var dayarray=new Array("Soontag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag")
var montharray=new Array("Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember")
function getthedate(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var hours=mydate.getHours()
var minutes=mydate.getMinutes()
var seconds=mydate.getSeconds()
var dn="AM"
if (hours>=12)
dn="PM"
if (hours>12){
hours=hours-12
}
var cdate=dayarray[day]+", "+daym+". "+montharray[month]+" "+year+", "+hours+":"+minutes+":"+seconds+" "+dn+""
if (document.all)
document.all.clock.innerHTML=cdate
else if (document.getElementById)
document.getElementById("clock").innerHTML=cdate
else
document.write(cdate)
}
if (!document.all&&!document.getElementById)
getthedate()
function goforit(){
if (document.all||document.getElementById)
setInterval("getthedate()",1000)
}

function doPopup(page)
{
  var newwindow = window.open(page, "popDialog","height=285,width=265,scrollbars=yes,resizable=yes");
  newwindow.focus();
  return true;
}

function closewindow()
{
  var onclick = window.close()
}



