// JavaScript Document
function openImage(image, label) {
        	newWindow=open('','','width=1024, height=768, scrollbars=no, resizable=yes, menubar=no');
        	with(newWindow.document) {
        		write (
        		 '<'+'!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\"'+'>\r\n'
        		+'<'+'html'+'>\r\n'
        		+'<'+'head'+'>\r\n'
        		+'<'+'title'+'>'+label+'<'+'/title'+'>\r\n'
        			+'\t<'+'meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"'+'>\r\n'
        			+'\t<'+'meta http-equiv=\"imagetoolbar\" content=\"false\"'+'>\r\n'
        			+'\t<'+'script type=\"text/javascript\"'+'>\r\n'
              +'\tdocument.onclick=function() {\r\n'
              +'\t\twindow.close();\r\n'
              +'\t}\r\n'
              +'\tfunction fixSize() {\r\n'
        			+'\t\tself.resizeTo(document.img.width+100, document.img.height+100);\r\n'
        			+'\t}\r\n'
        			+'\t<'+'/script'+'>\r\n'
        			+'\t<'+'style type=\"text/css\"'+'>\r\n'
        			+'\tbody {\r\n'
        				+'\t\tbackground-color: black;\r\n'
        				+'\t\tmargin: 10px 0 0;\r\n'
        				+'\t\tpadding: 0;\r\n'
        			+'\t}\r\n'
        			+'\tdiv {\r\n'
        				+'\t\tmargin: auto;\r\n'
        				+'\t\ttext-align: center;\r\n'
        			+'\t}\r\n'
        			+'\t<'+'/style'+'>\r\n'
        		+'<'+'/head'+'>\r\n'
        		+'<'+'body onload=\"fixSize();\"'+'>\r\n'
        		
            +'<'+'div'+'>\r\n'
        			+'\t<'+'img src=\"'+image+'\"\r\n'
        			+'\t     alt=\"'+label+'\" title=\"\" name=\"img\"'+'>\r\n'
        		+'<'+'/div'+'>\r\n'
        		
        		+'<'+'/body'+'>\r\n'
        		+'<'+'/html'+'>'
        		);
        		void(close());
        	}
        }
