function ecardfenster(){
       links=screen.width/2-325;
       oben=screen.height/2-300;
       window.open("","ecard","width=650,height=600,top= " + oben + ",left= " + links + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=1,copyhistory=0")
}
if (document.images) {
  var onLoadBeforeImage = null;
  if (window.onload)
    onLoadBeforeImage = window.onload;
    window.onload = BildOeffnenInit;
}
function BildOeffnenInit() {
  if (onLoadBeforeImage)
    onLoadBeforeImage();

  for (var i=0; i < document.links.length; i++) {
    var HREF = document.links[i].href.toLowerCase().split('.');
    if (HREF[HREF.length-1] == 'jpg' || HREF[HREF.length-1] == 'gif' || HREF[HREF.length-1] == 'png')
      document.links[i].onclick = OeffneBild;
  }
}
function OeffneBild()
{
  var BildName = this.href.split('.');
  var BildGroesse = BildName[BildName.length-2].split('x');
  var ModX=0, ModY=0, Dat=this.href.split('/'); Dat=Dat[Dat.length-1];
  if (!document.layers && !document.all) { ModX=20;ModY=30; }
  var Param = 'width='+(parseInt(BildGroesse[0])+ModX)+',height='+(parseInt(BildGroesse[1])+ModY+25)+',directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0';
  if (document.layers)
    Param += ',screenX='+(screen.width/2-BildGroesse[0]/2)+',screenY='+(screen.height/2-BildGroesse[1]/2);
  else if (document.all)
    Param += ',left='+(screen.width/2-BildGroesse[0]/2)+',top='+(screen.height/2-BildGroesse[1]/2);
  var neuwin = window.open('', 'neuwin', Param);
  with (neuwin.document) {
    open();
    write('<html>\n<head>\n<title>Erzgebirge life</title>\n<link rel="stylesheet" href="http://www.erzgebirge-life.de/css/el_life_rs13.css" type="text/css">\n<script language="JavaScript">\nfunction fenstervorn()\n{setTimeout("self.focus()",0);\n}\n</script>\n</head>\n');
    write('<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 bgcolor=#FFFFFF link=#000000 vlink=#000000 onBlur="fenstervorn()">\n');
    write('  <img src="'+this.href+'" width='+BildGroesse[0]+' height='+BildGroesse[1]+' alt="Erzgebirge life">\n');
    write('<center><a class="nav_popup" href="javascript:window.close()">Fenster schließen</a></center></body>\n</html>\n');
    close();
  }
  return false;
}
function QuizPreisBild(bildurl,bezeichnung,beschreibung)
{
  fensteroptionen="toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0";
  w=700;
  h=500;
  l = (screen.availWidth/2)-(w/2);
  t = (screen.availHeight/2)-(h/2);
  preisbildfenster=window.open("", "", fensteroptionen + ",width="+w+",height="+h+",left="+l+",top="+t+"");
  preisbildfenster.focus();
  preisbildfenster.document.open();
  with(preisbildfenster)
  {
    document.write("<html><head>");
    document.write("<title>Preisdetails " + bezeichnung + "</title>");
    document.write("<link rel=\"stylesheet\" href=\"http://www.erzgebirge-life.de/css/el_life_rs13.css\" type=\"text/css\">");
    document.write("</head>");
    document.write("<body style=\"background-color:#FFFFFF;\">");
    document.write("<table align=\"center\" width=\"90%\" cellpadding=\"5\" cellspacing=\"0\" border=\"0\">");
    document.write("<tr><td align=\"center\"><br><br><a href=\"#\" onclick=\"window.close();\">Fenster schliessen</a></td></tr>");
    document.write("<tr><td align=\"center\"><h1 class=\"header\">" + bezeichnung + "</h1></td></tr>");
    document.write("<tr><td align=\"center\"><img border=\"0\" src=\""+ bildurl +"\" title=\"" + bezeichnung + "\"></td></tr>");
    document.write("<tr><td>" + beschreibung + "</td></tr>");
    document.write("</table>");
    document.write("</body></html>");
  }
}
function pdfscreen(){
  links=screen.width/2-300;
  oben=screen.height/2-400;
  window.open("","pw_window","width=600,height=400,top= " + oben + ",left=" + links + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=1,copyhistory=0");  
}