function GetImage(img,vx,vy,objname) { // определение разрешения монитора у пользователя var screen_width = screen.width var screen_height = screen.height var vxm=vx+40; var vym=vy+55; // ограничение размеров окна так, чтобы его размеры // не превышали разрешение монитора if ( vxm > screen_width ) { vxm = screen_width - 20; } if ( vym > screen_height ) { vym = screen_height - 70; } // открытие нового окна и помещение в него фотографии // с заданными в HTML-коде размерами myWin= window.open ("", "window", "width="+vxm+",height="+vym+",top=0,left=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes"); myWin.focus(); myWin.document.open(); myWin.document.writeln(''); myWin.document.writeln(''); myWin.document.writeln(''); myWin.document.writeln('ПОЛНОФОРМАТНОЕ ИЗОБРАЖЕНИЕ'); myWin.document.writeln(''); myWin.document.writeln(''); myWin.document.writeln(''); myWin.document.writeln('
'); myWin.document.writeln(''); myWin.document.writeln('
Окно закрывается кликом по фотографии'); myWin.document.writeln('
'); myWin.document.close(); myWin.document.focus(); }