function machFocus (x) {
  document.getElementById(x).style.background = "white";
  document.getElementById(x).style.border = "1px solid #CCC";
}

function machFocusWeg (x) {
  document.getElementById(x).style.background = "#E4E9EF";
  document.getElementById(x).style.border = "1px solid white";
}

// eine tabellenzeile highlighten/ markieren
function setRow (theAction, theRow, theClass)
{

  document.getElementById(theRow).style.cursor='pointer';

   if ((theAction == 'over') && (document.getElementById(theRow).getAttribute('className') != 'trActive'))
   {
      document.getElementById(theRow).setAttribute('className', theClass);
      document.getElementById(theRow).setAttribute('class', theClass);
   }
   else if (theAction == 'down' && (document.getElementById(theRow).getAttribute('className') != 'trActive'))
   {
      document.getElementById(theRow).setAttribute('className', theClass);
      document.getElementById(theRow).setAttribute('class', theClass);
   }
   else if((theAction == 'out') && (document.getElementById(theRow).getAttribute('className') != 'trActive'))
   {
      document.getElementById(theRow).removeAttribute('className');
      document.getElementById(theRow).removeAttribute('class');
   }
   else if((theAction == 'down') && (document.getElementById(theRow).getAttribute('className') == 'trActive'))
   {
      document.getElementById(theRow).removeAttribute('className');
      document.getElementById(theRow).removeAttribute('class');
   }

}

/*open window*/
function open_window(url,title,b,h)
 {
   var maxwidth = screen.width-50;
   var maxheight = screen.height-120;
   var scroll = "yes";
   h+=20; 
   if (b > maxwidth)  b = maxwidth; 
   if (h > maxheight) { h = maxheight; b+=20; }
   if (navigator.appVersion.search(/AOL/) != -1) { scroll = 'yes'; b = maxwidth; h = maxheight;} 
   var param = "dependent=yes,resizable=no,location=no,directories=no,status=no,menubar=no,scrollbars="+ scroll +",toolbar=no,width="+ b +",height="+ h;
   f = window.open(url,title,param);
   f.blur();
   f.moveTo((screen.width-b)/2,(screen.height-h)/2-40);
   f.focus();
 }


//document.body.contentEditable = 'true'; 
//document.designMode = 'on'; void 0
