function OpenWindow (Url,Title, Width, Height, Scrollbars,Resizable) {
  links=(screen.width-Width)/2
  oben=(screen.height-Height)/2
  var win_opt= "toolbar=0,location=0,directories=0,status=0,menubar=0,";
  win_opt += "scrollbars=" + Scrollbars + ",resizable=" + Resizable + ",copyhistory=0,";
  win_opt += "dependent=yes,screenY="+oben+",left="+links+",screenX="+links+",width=" + Width + ",height=" + Height;
	
  newWindow = window.open('',Title,win_opt);

  if (newWindow != null) {
    if (newWindow.opener == null)
      newWindow.opener = self;
    newWindow.location.href = Url;
    if (newWindow.focus) 
		  newWindow.focus();
  }
}


/*
function OpenWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
 
*/


Fensterzahl=0
function fenster(URL1,breite,hoehe){
  links=(screen.width-breite)/2
  oben=(screen.height-hoehe)/2
  if(Fensterzahl>0){
    if(F1.closed==false)
      F1.close()
  }
  Fensterzahl=1
  F1=open("","","width="+breite+",height="+hoehe+",top="+oben+",screenY="+oben+",left="+links+",screenX="+links)
  F1.document.open();
  F1.document.write('<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">')
  F1.document.write('<a href="javascript:window.close()"><img src="'+URL1+'" alt="Fenster schlie&szlig;en" title="Fenster schlie&szlig;en" border="0"></a></body>')
  F1.document.close();
}



function OpenSubmitWindow(fr){
  eval("actionwin=window.open('','"+fr+"','width=250,height=200,resize=no,scrollbars=no,menubar=no,directories=no').focus();");
}



function SubmitForm(fn,fr){
  if (document.forms[fn].email.value== ""){
   alert("Bitte geben Sie eine Emailadresse an!");
  }else{
    OpenSubmitWindow(fr);
    document.forms[fn].submit();
  }
}





