function openWin(file, w, h){
	var x = screen.availWidth;
	var y = screen.availHeight;
	win = open("Фото","open","width="+w+",height="+h+",status=no,toolbar=no,menubar=no,scrollbars=no,screenX="+(x-w)/2+",screenY="+(y-h)/2);
  	win.document.open();
  
	win.document.write("<html><head></head><body oncontextmenu='return false', onselectstart='return false' oncopy='return false'>");
win.document.write("<img src="+file+"></body></html>");
//win.status = "Фото";	
//win.defaultStatus = "Фото";
win.document.close();

}