// window ohne scrollbar ***********************************************************

// Fensterposition horizontal 10, vertical 10
// uebergabe url , breite , hoehe
// aufruf: <a href="javascript: popwin4('dateiname.htm','700','450')">link</a>

function popwin4(url,w,h)
{
x=10;
y=10;
popUp4=window.open(url,'win4','width='+ w +',height='+ h +',left=' + x +',top='+ y +',directories=0,status=0,scrollbars=0,resizable=1,menubar=1,locationbar=1')
}

// bilder Popup angepasstes fenster ***********************************************************

// www.web-toolbox.net , W. Jansen
// Übergabeparameter: bildquelle,breite,höhe,bildtitel
// hand over parameters: imagesource,width,height,title

function ViewImage(bildurl,b,h,bildtitel)
{
var eigenschaften,sbreite,shoehe,fenster,b,h;

// stellt die Bildschirmabmessungen fest
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);

if(ns6||ns4) {
sbreite = innerWidth;
shoehe = innerHeight;
}
else if(ie4) {
sbreite = document.body.clientWidth;
shoehe = document.body.clientHeight;
}

x = (sbreite-b)/2;
y = (shoehe-h)/2;

eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no,statusbar=0";

fenster=window.open("","",eigenschaften);
fenster.focus();
fenster.document.open();
with (fenster) {
  document.write('<html><head>');
  // geändert 2004 für Mozilla
  document.write('<scr' + 'ipt type="text/javascr' + 'ipt" language="JavaScr' + 'ipt">');
  document.write("function click() { window.close(); } ");  // bei click  schliessen
  document.write("document.onmousedown=click ");
  // geändert 2004 für Mozilla
  document.write('</scr' + 'ipt>');
  document.write('<title>'+ bildtitel +'</title></head>');
  // Zeile geändert Aug 2003 (Dreamweaver machte Probleme)
  document.write('<' + 'body onblur="window.close();" ');// bei Focusverlust schliessen
  document.write('marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">');
  document.write('<center>');
  document.write('<img src="'+ bildurl +'"border="0">');
  document.write('</center>');
  document.write('</body></html>');
  fenster.document.close();
}
}

// Anzeige des Datums ***********************************************************
// Aufruf: <script type="text/javascript">Datum();</script>

function Datum() {
  var Jetzt = new Date();
  var Tag = Jetzt.getDate();
  var Monat = Jetzt.getMonth() + 1;
  var Jahr = Jetzt.getYear();
  if (Jahr < 999)
    Jahr += 1900;
  var Vortag = ((Tag < 10) ? "0" : "");
  var Vormon = ((Monat < 10) ? ".0" : ".");
  var Datum = Vortag + Tag + Vormon + Monat + "." + Jahr;
  document.write("<font>" + Datum + "<\/font>")
}


//Frames Nachladen *******************************************************************************************

function ladeframenach() {
if(!parent.links)
location.href="/?" + location.pathname;
}


// Farbengenerator öffnen  ***********************************************************

function oeffneFarbgenerator() {
  Fenster1 = window.open("../farben.htm", "farbenPopup", "toolbar=no,statusbar=no,buttonbar=no,menubar=no,scrollbars=yes,resizable=no,directories=no,location=no,top=100,left=100,width=570,height=520");
  Fenster1.focus();
}

//  ***********************************************************

function oeffneAlbertmail() {
  Fenster1 = window.open("http://albert.euphonia.com/formmailer/formmailer.php", "albertPopup", "toolbar=no,statusbar=no,buttonbar=no,menubar=no,scrollbars=yes,resizable=no,directories=no,location=no,top=100,left=100,width=550,height=600");
  Fenster1.focus();
}
function oeffneEuphimail() {
  Fenster1 = window.open("http://mail.euphonia.com/formmailer/formmailer.php", "euphiPopup", "toolbar=no,statusbar=no,buttonbar=no,menubar=no,scrollbars=yes,resizable=no,directories=no,location=no,top=100,left=100,width=550,height=600");
  Fenster1.focus();
}
function oeffneRobinmail() {
  Fenster1 = window.open("http://robin.euphonia.com/formmailer/formmailer.php", "robinPopup", "toolbar=no,statusbar=no,buttonbar=no,menubar=no,scrollbars=yes,resizable=no,directories=no,location=no,top=100,left=100,width=550,height=600");
  Fenster1.focus();
}
function oeffneBenemail() {
  Fenster1 = window.open("http://benedikt.euphonia.com/formmailer/formmailer.php", "benePopup", "toolbar=no,statusbar=no,buttonbar=no,menubar=no,scrollbars=yes,resizable=no,directories=no,location=no,top=100,left=100,width=555,height=600");
  Fenster1.focus();
}



