var mon, toppos, leftpos;
var Bilder=Array('<img src="images/map_gross.gif" alt="Anfahrtsplan" height="456" width="456" border="0">','<img src="images/grundriss_01.gif" alt="Beispiel Grundriss" height="450" width="356" border="0">');

function fenster(seite, weite, hoehe,name){ 
toppos = (screen.height - hoehe)/2; 
leftpos = (screen.width - weite)/2; 
features = "scrollbars=1,location=0,toolbar=0,menubar=0,resizable=1,status=0"; 
mon = window.open(seite,"name","width="+weite+",height="+hoehe+",top="+toppos+",left="+leftpos+","+features); 
//mon.document.title=name;
mon.focus();
} 

function fenster1(seite, weite, hoehe, name){ 
var index=0;
if(seite.indexOf('grundriss')>-1) index=1;
hoehe=hoehe+40;
toppos = (screen.height - hoehe)/2; 
leftpos = (screen.width - weite)/2; 
features = "scrollbars=1,location=0,toolbar=0,menubar=0,resizable=1,status=0"; 
mon = window.open(seite,"name","width="+weite+",height="+hoehe+",top="+toppos+",left="+leftpos+","+features); 
mon.document.write('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html lang="de"><head><title>'+name+'</title></head><body><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" valign="middle"><img src='+seite+' width="'+eval(weite-40)+'"><br><br><input onclick="opener.bild=opener.Bilder['+index+'];opener.drucken();" type="button" name="Druckbutton" value="&gt;&gt; drucken &lt;&lt;" border="0"></td></tr></table></body></html>');
//mon.document.title=name;
mon.focus();
} 

function MM_displayStatusMsg(msgStr)
{ 
  status=msgStr;
  document.MM_returnValue = true;
}
