var exist=false;
var bshoehe=screen.height;
var bsbreite=screen.width;

 
function openSeite (seite,fbreite,fhoehe) 
{


 if (exist)
 {if (!mywindow.closed)
  { mywindow.window.close();
  }
 }
 var X=bsbreite-fbreite-10;
 var plazierung=',screenX='+X+',screenY=0,top=0,left='+X;
 var dim='width='+fbreite+',height='+fhoehe;
 
  mywindow = window.open(seite,'',dim+plazierung+',scrollbars=yes,resizable=yes');
  exist=true;
}



var dasein=false;
var brhoehe=screen.height;
var brbreite=screen.width;

 
function openSeite1 (seite,fbreite,fhoehe) 
{


 if (dasein)
 {if (!mywindow.closed)
  { mywindow.window.close();
  }
 }
 var X=brbreite-fbreite-10;
 var plazierung=',screenX='+X+',screenY=0,top=70,left=250';
 var dim='width='+fbreite+',height='+fhoehe;
 
  mywindow = window.open(seite,'',dim+plazierung+',scrollbars=yes,resizable=yes');
  dasein=true;
}

/* Fuer die Bildvergroesserungen: */

var existbild=false;

function openBild (bild,schrift,bildbreite,bildhoehe) 
{
var mybreite=bildbreite;
var myhoehe=bildhoehe;
var dim='width='+mybreite+' ,height='+myhoehe;
  if (existbild) 
 {if (!bildwindow.closed) 
  { bildwindow.window.close(); 
  }
 }
 bildwindow = window.open("",'',dim);
 with (bildwindow.document)
 { open('text/html');
   writeln('<HTML><HEAD><TITLE>Gastgeber</TITLE></HEAD>'); 
   writeln('<BODY bgcolor=ffffff marginheight=10 topmargin=10 link=000000 alink=000000 vlink=000000>');
   writeln('<TABLE cellspacing="5" cellpadding="0" border="0">');
   writeln('<TR><TD colspan=2>');
   writeln('<img src='+bild+'>'); 
   writeln('</TD></tr><tr><TD valign=top><font face=arial size=2>'+schrift);
   writeln('</TD><TD valign=bottom align=right><FONT FACE=arial SIZE=1>');
   writeln('<a href=javascript:window.close()><b>Fenster schlie&szlig;en</b></A></td>');
   writeln('</TR>');
   writeln('</TABLE>');
   writeln('</BODY>'); 
   close();
  }	
  existbild=true; 
}

var exist1=false;

function openDetail (bild,schrift) 
{ if (exist1) 
 {if (!mywindow.closed) 
  { mywindow.window.close(); 
  }
 }
 mywindow = window.open("",'','width=600,height=600');
 with (mywindow.document)
 { open('text/html');
   writeln('<HTML><HEAD><TITLE>Termindatenbank</TITLE></HEAD>'); 
   writeln('<BODY bgcolor=ffffff marginheight=10 topmargin=10 link=000000 alink=000000 vlink=000000>');
   writeln('<TABLE cellspacing="5" cellpadding="0" border="0">');
   writeln('<TR><TD colspan=2>');
   writeln('<img src='+bild+'>'); 
   writeln('</TD></tr><tr><TD valign=top><font face=arial size=2>'+schrift);
   writeln('</TD><TD valign=bottom align=right><FONT FACE=arial SIZE=1>');
   writeln('<a href=javascript:window.close()><b>Fenster schlie&szlig;en</b></A></td>');
   writeln('</TR>');
   writeln('</TABLE>');
   writeln('</BODY>'); 
   close();
  }	
  exist1=true; 
}

/* Fuer Formulare: */

function pruef_mail(form_object, input_object, object_value)
{if (object_value != ""){
	if ( object_value.search(/^[_\&a-zA-Z0-9-]+([_\.\&a-zA-Z0-9-]+)*@([a-zA-Z0-9-]+\.)+[a-zA-Z]{2,6}$/) == -1 )
	 {return false;}
	else {return true;};
	}
else {return true;}
}

function pruef_telefon(form_object, input_object, object_value)
{if (object_value != ""){
	if (object_value.search(/^[0-9\/ ()-]{7,24}$/) == -1 )
	 {return false;}
	else {return true;};
	}
else {return true;}
}

function pruef_fax(form_object, input_object, object_value)
{if (object_value != ""){
	if (object_value.search(/^[0-9\/ ()-]{7,24}$/) == -1 )
		 {return false;}
	else {return true;};
	}
else {return true;}
}
