function stayontop(){//Brings the current window on top of others
	self.focus();
	setTimeout("stayontop()", 1);//1000=1sec. Adjust seconds here
	}

function pviiObjbg(obj, new_color) { //v2.1 by Project VII
	obj.style.backgroundColor=new_color
}


function CheckZahl(Wert)
{k=0
 if(isNaN(Wert) == true)
 {
  alert(Wert + " ist keine Zahl!");
  return false;
 }
 else 
 {alert(Wert + " ist eine Zahl!");
 k=k+1
  return true;}
}



 function newstyle(idnr, newcolor, bwidth) {
 for ( x = 0 ; x < idnr ; x++ )
 { if ( x > 1 )
   document.getElementById(x-1).style.borderBottomWidth = bwidth
   document.getElementById(x).style.borderColor = newcolor}
 for ( y = 0 ; y <  maxID+1 ; y++ )
 { if ( y > idnr-1)   
   {document.getElementById(y).style.borderBottomWidth = bwidth
    document.getElementById(y).style.borderLeftWidth = bwidth }}  
 }

function layborderstyle(idnr, newbcolor, bwidth) {
 for ( x = idnr ; x < idnr+3 ; x++ )
 { document.getElementById(x).style.borderLeftWidth = bwidth
   document.getElementById(x).style.borderBottomWidth = bwidth
   document.getElementById(x).style.borderColor = newbcolor}
 }

function swfborderstyle(idnr, newbcolor, bwidth) {
 for ( x = idnr ; x < idnr+4 ; x++ )
 { document.getElementById(x).style.borderWidth = bwidth
   document.getElementById(x).style.borderColor = newbcolor}
 }