
function ViewImage(dir, img, ix,iy)
{
	var win = window.open("viewer.php?dir=" + escape( dir ) + "&img=" + escape( img ) + "&w=" + ix + "&h=" + iy, "imageviewer","width="+( ix + 40 )+",height="+( iy + 40 )+",menubar=0,toolbar=0,scrollbars=1,resizable=1" );
	if( !win )
		alert("<=$msg['AntiPopup'][ _LANGUAGE_ ]?>");
	else
		win.focus();
}

