function printData() {
   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 dayarray=new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag")
      var montharray=new Array("Januar","Februar","M&aunl;rz","April","Mai","Juni","Juli","August","September","Oktober","November","December")
      document.write(""+dayarray[day]+", "+daym+" "+montharray[month]+" "+year+"")
}

function lShowHide() { //v3.0
  var i,p,v,obj,args=lShowHide.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=oFind(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function oFind(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=oFind(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function wOpen(newWindowURL, w, h) {
  var width=w, height=h;
  var left = (screen.width/2) - width/2;
  var top = (screen.height/2) - height/2;
  var styleStr = 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+',top='+top+',screenX='+left+',screenY='+top;
  var msgWindow = window.open(newWindowURL, "msgWindow", styleStr);
}

function setPointer(theRow, theAction, theDefaultColor, thePointerColor, theMarkColor)
{
    var theCells = null;
    if ((thePointerColor == '' && theMarkColor == '')
        || typeof(theRow.style) == 'undefined') {
        return false;
    }

    if (typeof(document.getElementsByTagName) != 'undefined') {
        theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    var domDetect    = null;
    var currentColor = null;
    var newColor     = null;

    if (typeof(window.opera) == 'undefined'
        && typeof(theCells[0].getAttribute) != 'undefined') {
        currentColor = theCells[0].getAttribute('bgcolor');
        domDetect    = true;
    }
    else {
        currentColor = theCells[0].style.background;
        domDetect    = false;
    }

    if (currentColor == ''
        || currentColor.toLowerCase() == theDefaultColor.toLowerCase()) {
        if (theAction == 'over' && thePointerColor != '') {
            // theRow.style.cursor = 'hand';
            newColor = thePointerColor;
        }
        else if (theAction == 'click' && theMarkColor != '') {
            newColor = theMarkColor;
        }
    }
    else if (currentColor.toLowerCase() == thePointerColor.toLowerCase()) {
        if (theAction == 'out') {
            // theRow.style.cursor = 'default';
            newColor = theDefaultColor;
        }
        else if (theAction == 'click' && theMarkColor != '') {
            newColor = theMarkColor;
        }
    }
    else if (currentColor.toLowerCase() == theMarkColor.toLowerCase()) {
        if (theAction == 'click') {
            newColor = (thePointerColor != '')
                     ? thePointerColor
                     : theDefaultColor;
        }
    }

    if (newColor) {
        var c = null;
// rowCellsCnt
        if (domDetect) {
            for (c = 0; c < 3; c++) {
                theCells[c].setAttribute('bgcolor', newColor, 0);
            }
        } else {
            for (c = 0; c < 3 ; c++) {
                theCells[c].style.background = newColor;
                  theone = eval("document.getElementById('<td>')");
                  theone.style.background = newColor;

            }
        }
    }
    return true;
}

function hideElm(elmID)
{
   for (i = 0; i < document.all.tags(elmID).length; i++)
   {
      obj = document.all.tags(elmID)[i];

      obj.style.visibility = "hidden";
   }
}

function showElm(elmID)   
{
   for (i = 0; i < document.all.tags(elmID).length; i++)
   {
      obj = document.all.tags(elmID)[i];
      
      obj.style.visibility = "";
   }
}
