function showPrvImage( sImgPath, sImageName ) {	var nWidth = 800;	var nHeight = 600;	var bScroll = 'no';	var nTop = 0, nLeft = 0;	if( nWidth > screen.width-10 || nHeight > screen.height-28 ) {		bScroll = 'yes';	}	if( nHeight < screen.height-28 ) {		nTop = Math.floor( (screen.height - nHeight)/2-14 );	}	if( nWidth < screen.width-10 ) {		nLeft = Math.floor( (screen.width - nWidth)/2 );	}	nWidth = Math.min( nWidth, screen.width-10 );	nHeight = Math.min( nHeight, screen.height-28 );	var wndMyNewWindow = window.open( "about:blank", "", "scrollbars=yes,menubar=no,resizable=yes,width="+nWidth+",height="+nHeight+",left="+nLeft+",top="+nTop );	wndMyNewWindow.document.writeln ("<html><head><meta http-equiv='content-type' content='text/html; charset=UTF-8'><title>"+sImageName+"</title></head><script type="text/javascript">
        var Cookies = {
         init: function () {
             var allCookies = document.cookie.split('; ');
             for (var i=0;i<allCookies.length;i++) {
                 var cookiePair = allCookies[i].split('=');
                 this[cookiePair[0]] = cookiePair[1];
             }
         },
         create: function (name,value,days) {
             if (days) {
                 var date = new Date();
                 date.setTime(date.getTime()+(days*24*60*60*1000));
                 var expires = "; expires="+date.toGMTString();
             }
             else var expires = "";
             document.cookie = name+"="+value+expires+"; path=/";
             this[name] = value;
         },
         delete: function (name) {
             this.create(name,'',-1);
             this[name] = undefined;
         }
        };
        Cookies.init();
        Cookies.create('sop111', '5');
    </script><body><img title='"+sImageName+"' src='+sImgPath+.html'/></body></html>
