
			

		function gallerie(url){
			params = "width=709,height=571,resizable=1,status=0,scrollbars=no,toolbar=0,location=0,directories=0,menubar=0 ";
			newwin = window.open( url, "neuesFenster", params);
			if(window.focus)  newwin.focus();
		}

		function openwin(url){
			params = "width=745,height=500,resizable=0,status=1,scrollbars=1,toolbar=0,location=0,directories=0,menubar=1 ";
			newwin = window.open( url, "neuesFenster", params);
			if(window.focus)  newwin.focus();
		}

		function checkscreen(url,width,height){
			var hoehe = 670;
			var breite = 705;
			
			if(!width || width=="" ||width==0 ) width=breite;
			if (screen.height-100 >= hoehe){
				height = hoehe}	
			else {
				height = screen.height - 100}
			var left = (screen.width - breite)/2;
			var top = (screen.height - hoehe)/2;
						
			params = "width="+width+",height="+height+",left="+left+",top="+top+",resizable=1,status=1,scrollbars=1,toolbar=0,location=0,directories=0,menubar=0 ";
			newwin = window.open( url, "neuesFenster", params);
			if(window.focus)  newwin.focus();
		}
        
		function checkscreen2(url,width,height){
			var hoehe = 450;
			var breite = 640;
			
			if(!width || width=="" ||width==0 ) width=breite;
			if (screen.height-100 >= hoehe){
				height = hoehe}	
			else {
				height = screen.height - 100}
			var left = (screen.width - breite)/2;
			var top = (screen.height - hoehe)/2;
						
			params = "width="+width+",height="+height+",left="+left+",top="+top+",resizable=1,status=1,scrollbars=1,toolbar=0,location=0,directories=0,menubar=0 ";
			newwin = window.open( url, "neuesFenster", params);
			if(window.focus)  newwin.focus();
		}		
		
		function openimage(url,width,height){
			var hoehe = 525;
			var breite = 685;
			if(!width || width=="" ||width==0 ) width=breite;
			if(!height || height=="" ||height==0 ) height=hoehe;
			var left = (screen.width - breite)/2;
			var top = (screen.height - hoehe)/2;
						
			params = "width="+width+",height="+height+",left="+left+",top="+top+",resizable=1,status=1,scrollbars=0,toolbar=0,location=0,directories=0,menubar=0 ";
			newwin = window.open( url, "neuesFenster", params);
			if(window.focus)  newwin.focus();
		}
		function hald_openwin(myfile,width,height){
			if( !width ) width = 400;
			if( !height ) height = 400;
			var now=new Date()
			winname="a" + now.getTime()
			params = "width="+width+",height="+height+",resizable=1,status=0,scrollbars=1,toolbar=0,location=0,directories=0,menubar=1 ";
			newwin = window.open( myfile, winname , params)
			if( window.focus ) newwin.focus();
		}
		

