//=================================================================================================================
// Lars Vogel 
// info@l-vogel.de 
// www.l-vogel.de
// 2005
// JavaScript
//=================================================================================================================
function myPopUp(link, name, width, height) {
    var w = width;
    var h = height;
	var posFactor = 1.1;
    //alert("top="+((screen.height/2)-(h/1.5))+", left="+((screen.width/2)-(+w/2))+"");
    if (link!=null && name!=null) {
        window.open(link, name,"resizable=no,scrollbars=no,locationbar=no,menuebar=no,status=no,height="+h+",width="+w+", top="+((screen.height/2)-(h/posFactor))+", screenY="+((screen.height/2)-(h/posFactor))+", left="+((screen.width/2)-(+w/posFactor))+",screenX="+((screen.width/2)-(+w/posFactor)));
       //window.open(link, name,"resizable=no,scrollbars=yes,locationbar=no,menuebar=no,status=no, height="+height+", width="+width+",left="((screen.width/2-(width/2))",top="((screen.height/2)-(height/1.5)));
   } else {
       // DEBUG
       alert("Link oder Fensternahme fehlt");
   }
}

// Fenster in den Vordergrund
function getFocus() {
   window.focus();
   //window.moveTo(60, 100);
}


//=================================================================================================================
// Popup-Fenster fuer Tafeln anzeigen
function popUp(link, name) {
    //alert("Hier gehr was");
   if (link!=null && name!=null) {
       window.open(link, name,"resizable=no,scrollbars=no,locationbar=yes,menuebar=no,status=yes,height=460,width=400,left=30,top=90");
           } else {
       // DEBUG
       alert("Link oder Fensternahme fehlt");
   }
}
//=================================================================================================================
// Popup-Fenster fuer Vorschaumodus
function popUpVor(link, name) {

    this.window.name = "main";
	//alert (this.window.name);
	   
    if (link!=null && name!=null) {
       window.open(link, name,"resizable=no,scrollbars=no,locationbar=no,menuebar=no,status=yes,height=430,width=580,left=60,top=100");
    } else {
       // DEBUG
       alert("Link oder Fensternahme fehlt");
    }
}
//=================================================================================================================
// Fenster absolut positionieren
/*
function getPosition () {
       self.moveTo(100, 100);
}*/

// Fenster in den Vordergrund
function getFocus() {
   window.focus();
   window.moveTo(30, 90);
}
//=================================================================================================================
// öffnendes Fenster aktualisieren
/*
function OpenerReload (openerWindow) {
    opener.location.href=openerWindow;
	//window.close();
}
*/

//=================================================================================================================
/* Tabellenzellen einfärben (Übersichtsseiten) */
function getCellOver(element, status, color) {
//alert("licht an: "+status);
    if (status = true) {
	    //alert("farbe an: "+color);
        self.document.getElementById(element).style.border ="1px solid"+ color;

    } 
}
function getCellOut(element, status, color) {
//alert("licht an: "+status);
    if (status = true) {
	    //alert("farbe aus: "+color);
        self.document.getElementById(element).style.border ="1px solid"+  color;
    } 
}
