﻿// JScript File
var height_new = 0;
var width_new = 0;
 
 
 function ShowBigImgAuto(url,width,height) 
 { 		
    imgwin=window.open('', '_blank', 'directories=no, location=no, menubar=no, resizable=no, scrollbars=no, status=no, toolbar=no, width='+width+', height='+height); 	
    imgwin.document.open(); 	
    imgwin.document.writeln("<HTML> <HEAD> <TITLE> "+url+" </TITLE> </HEAD> <BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 onload=\"setTimeout(Test,100);\"> <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%  HEIGHT=100%><TR><TD align=center valign=middle><a href='Javascript:window.close();'><IMG border=0 SRC='"+url+"' id=imgCover></a> </TD> </TR> </TABLE><script>function Test() { if (document.getElementById('imgCover').height > 600){document.getElementById('imgCover').height = 600;} if (document.getElementById('imgCover').width > 800){document.getElementById('imgCover').width = 800} window.resizeTo((document.getElementById('imgCover').width+40),(document.getElementById('imgCover').height+60));}  </script> </BODY> </HTML>"); 	
    imgwin.document.close(); 
} 
