// Originalscript: Christine Kühnel, http://www.screenexa.net
// Anpassungen: Patrick Andrieu, http://www.atomic-eggs.com; Kai Ortelt. http://www.mindkick.de

Protokoll = self.location.protocol;
Pfad = self.location.pathname;
Basis = Protokoll + '//' + Pfad.substring(1,Pfad.length-11)
neues_Fenster = null;

function Show(Bild0,Titel0,Breite0,Hoehe0)
{
   Bild = Bild0;
   Titel = Titel0;
   Breite = Breite0;
   Hoehe = Hoehe0;
   zu();
   setTimeout("sichtbar()",1000);
}


function sichtbar()
{  
   Fenster_Hoehe = Hoehe + 90;
   Fenster_Breite = Breite + 40;
   Optionen = 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,screenX=10,screenY=10,left=10,top=10,height='+Fenster_Hoehe+',width='+Fenster_Breite;
   neues_Fenster = window.open('','',Optionen)
   with (neues_Fenster) 
   {
      document.writeln('<html><head><title>' + Titel + '</title>');
      document.writeln('<link href="style.css" rel=stylesheet></head>');
      document.writeln('<bo'+'dy text="#000000" bgcolor="#004CAA" link="#FF3C3C" alink="#FF3C3C" vlink="#FF3C3C">');
	  document.writeln('<div align="center"><br><table border="0" cellspacing="0" cellpadding="0" valign="middle">');
	  document.writeln('<tr><td>');
      document.writeln('<img src="'+Bild+'" width="'+Breite+'" height="'+Hoehe+'" border="0" alt="'+Titel+'"></td>');
      document.writeln('</tr></table>');
      document.writeln('<p align="center">[&nbsp;<a href="javascript:self.close()">Schlie&szlig;en</a>&nbsp;]</p>');
      document.writeln('</div></bo'+'dy></html>');
      location.reload();
   }
}


function zu()
{
   if (neues_Fenster != null)
     if (!neues_Fenster.closed)
       neues_Fenster.close();
}


function chkFormular() 
{
	if(document.Formular.email.value == "") {
		alert("e-Mail Adresse eingeben!");
		document.Formular.email.focus();
		return false;
	}
	if(document.Formular.email.value.indexOf('@') == -1) {
		alert("e-Mail Adresse ist ungültig!");
		document.Formular.email.focus();
		return false;
	}
}
