function fenster(seite, weite, hoehe,name){ 
var mon, toppos, leftpos; 
var resizable=1;
if (seite.indexOf('stadtplan')>-1 || seite.indexOf('panorama')>-1) resizable=0;
toppos = (screen.height - hoehe)/2; 
leftpos = (screen.width - weite)/2; 
features = "scrollbars=1,location=0,toolbar=0,menubar=0,resizable="+resizable+",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 mon, toppos, leftpos; 

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('<head><title>'+name+'</title></head><body><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" valign="middle"><a href="javascript:window.close();"><img src='+seite+' width="'+eval(weite-40)+'" border="0"></a></td></tr></table></body>');
//mon.document.title=name;
mon.focus();
}

function show_panorama(seite, weite, hoehe, name){ 
var mon, toppos, leftpos; 

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("about:blank","name","width="+weite+",height="+hoehe+",top="+toppos+",left="+leftpos+","+features); 
mon.document.write('<head><title>'+name+'</title></head><body bgcolor="#fffff0"><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="center" valign="middle"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.#version=5,0,30,0" height="'+eval(hoehe-40)+'" width="'+eval(weite-40)+'"><param name="movie" value="'+seite+'"><param name="quality" value="best"><param name="play" value="true"><embed height="'+eval(hoehe-40)+'" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" src="'+seite+'" type="application/x-shockwave-flash" width="'+eval(weite-40)+'" quality="best" play="true"></object></td></tr></table></body>');
//mon.document.title=name;
mon.focus();
}

function print_window(seite, weite, hoehe,name){ 
var mon, toppos, leftpos; 

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();
} 
var titel = new Array();
var text = new Array();
var bild = new Array();
var count=1;
function print(j){
	count=1;
	for(i=1;i<=j;i++){
		if(document.getElementById('titel'+i) && document.getElementById('titel'+i).innerHTML!=""){
			titel[i]=document.getElementById('titel'+i).innerHTML;
			count++;
		}
		if(document.getElementById('text'+i) && document.getElementById('text'+i).innerHTML!=""){
			text[i]=document.getElementById('text'+i).innerHTML;
			count++;
		}
		if(document.getElementById('bild'+i) && document.getElementById('bild'+i).innerHTML!=""){
			bild[i]=document.getElementById('bild'+i).innerHTML;
			count++;
		}
	}
	print_window('drucken.html',670,600);
}

function print_arrangement(j){
	count=1;
	if(document.getElementById('arrangement_titel'+j) && document.getElementById('arrangement_titel'+j).innerHTML!=""){
		titel[1]=document.getElementById('arrangement_titel'+j).innerHTML;
		count++;
	}
	if(document.getElementById('arrangement_text'+j) && document.getElementById('arrangement_text'+j).innerHTML!=""){
		text[1]=document.getElementById('arrangement_text'+j).innerHTML;
		count++;
	}
	if(document.getElementById('arrangement_bild'+j) && document.getElementById('arrangement_bild'+j).innerHTML!=""){
		bild[1]=document.getElementById('arrangement_bild'+j).innerHTML;
		count++;
	}
	print_window('drucken.html',670,600);
}

function checkArrangement(){
	var arrangement="";
	var url_string = window.location.href;
	if(url_string.indexOf("?arrangement=")>-1){
		arrangement=url_string.substring(url_string.indexOf("?arrangement=")+13,url_string.length);
		pauschale_feld=document.formular.Pauschale;
		for(i=0;i<pauschale_feld.options.length;i++){
			if(pauschale_feld.options[i].value==arrangement) pauschale_feld.selectedIndex=i;
		}
	}
}

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