
// Letzte Änderung

  function LastMod() {

    var modDate = document.lastModified
    Tag=modDate.slice(3,5);
    Monat=modDate.slice(0,2);
    Jahr=modDate.slice(6,10);
    modDate="Letzte &Aumlnderung dieser Seite: " + Tag + "." + Monat + "." + Jahr ;
    document.write(modDate); 

}


// NewWindow


  function NewWindow(url, name, w, h, scroll) {

    var winl = (screen.width - w) / 2;
    var wint = (screen.height - h) / 2;

    winprops = 'height=' + h + ',width=' + w + ',top=' + wint + ',left=' + winl + ',scrollbars=' + scroll + ',resizable'
    win = window.open(url, name, winprops)
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

  }


  function NewWindowGl(url, name) {

    var winl = 600;
    var wint = 100;

    winprops = 'width=248,height=480,top='+ wint +',left='+ winl +',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable'
    win = window.open(url, name, winprops)

    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }

  }


  function NewWindowKBy(url, name) {

    var winl = (screen.width - 475);
    var wint = (screen.height - 600);

    winprops = 'width=440,height=480,top='+ wint +',left='+ winl +',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable'
    win2 = window.open(url, name, winprops)
    if (parseInt(navigator.appVersion) >= 4) { win2.window.focus(); }

  }


  function NewWindowKD(url, name) {

    var winl = (screen.width - 947);
    var wint = (screen.height - 680);

    winprops = 'width=460,height=560,top='+ wint +',left='+ winl +',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable'
    win3 = window.open(url, name, winprops)
    if (parseInt(navigator.appVersion) >= 4) { win3.window.focus(); }

  }


  function NewWindowB(url, name) {

    var winl = (screen.width - 827);
    var wint = (screen.height - 600);

    winprops = 'width=340,height=500,top='+ wint +',left='+ winl +',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable'
    win4 = window.open(url, name, winprops)
    if (parseInt(navigator.appVersion) >= 4) { win4.window.focus(); }

  }


// Koordinaten

// xpos=0;
// ypos=0;
// if(document.layers) {
// 	window.captureEvents(Event.MOUSEMOVE);
// 	window.onmousemove = koordinaten;
// 	}
// 	else {
// 		document.onmousemove = koordinaten;
// 	}
// function koordinaten(e) {
// 	xpos = (document.layers || (document.getElementById && !document.all)) ? e.pageX : document.body.scrollLeft + event.clientX;
// 	ypos = (document.layers || (document.getElementById && !document.all)) ? e.pageY : document.body.scrollTop + event.clientY;
// 	werte();
// }


  function TKanzeige1() {

    x = window.event.offsetX;
    y = window.event.offsetY;
    x = Math.floor((x+4.62)/(192/29) + 19);
    y = Math.floor((y+2.66)/(213/32) + 54);

    txt = "TK " + y + "" + x;
    document.TK1.koord1.value = txt;
    //window.status = txt;

  }


  function TKanzeige2() {

    x = window.event.offsetX;
    y = window.event.offsetY;
    x = Math.floor((x+4.62)/(192/29) + 19);
    y = Math.floor((y+2.66)/(213/32) + 54);

    txt = "TK " + y + "" + x;
    document.TK2.koord2.value = txt;

  }

