  //openWindow('xxx.html','name','width=700,height=600');
  //toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0
	function openWindow(URL, winname, options) {
 		window.open(URL,winname,options);
	}
  

var newwin=null;

function imageWindow(iURL) {
	valw = 520;
  valh = 400;
  vali = 'Berlinausflug, ' + iURL.replace(/foto/,'') + '/';
  
  newwin=window.open('','new3','width=' + valw + ',height=' + valh + '');
	with(newwin.document) {
	  writeln('<HTML><HEAD><TITLE>' + vali + '</TITLE>');
		writeln('</HEAD>');
		writeln('<BODY BGCOLOR="#cccccc" link="#000000" alink="#000000" vlink="#000000" text="#000000" leftmargin="10" topmargin="10" marginwidth="10" marginheight="10">');
		writeln('<center>');
      
		writeln('<a href="javascript:self.close()"><img src="' + iURL + '" border="1"></a>');
		writeln('<br><font face="verdana,arial" size="1" color="#999999">[<a href="javascript:self.close()" style="color:#999999;">close window</a>]</font>');
	
		writeln('<script>window.focus();<\/script>');
		writeln('</center>');
    writeln('</BODY>');
		writeln('</HTML>');
		close();
  }
	newwin.focus();
}

 


