function MM_reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function open_window(url,win_name, breite, hoehe, pos)
{
	if(pos == "center"){
		var new_left = (screen.width-breite)/2;
		var new_top = (screen.height-hoehe)/2;
	}else if(pos == "lefttop"){
		var new_left =0;
		var new_top = 0;
	}else{
		var new_left = (screen.width-breite)/2;
		var new_top = (screen.height-hoehe)/2;
	}
  	fenster=window.open(url, win_name, 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+breite+',height='+hoehe+',left='+new_left+',top='+new_top+''); 
}

function open_image(image_url, title){
		var w=screen.width;
		var h=screen.height;
		url = "php/open_image.php?u="+image_url+ "&t="+title+"&w="+w+"&h="+h;
 		open_window(url,"Image", 10, 10, "lefttop")
}




