//open win resizable


function ImagePopup(url)

{

     var popupWin=window.open('','','titlebar=no,location=no,menubar=no,toolbar=no,status=no,scrollbars=no,resizable=no,hotkeys=no');

     var docHTML;

 

     docHTML  = "<html><head><title></title><script language='javascript'>";

     docHTML += "var NS = (navigator.appName=='Netscape')?true:false;";

     docHTML += "function ResizePicture() {iWidth = (NS)?window.innerWidth:document.body.clientWidth;";

      docHTML += "iHeight = (NS)?window.innerHeight:document.body.clientHeight;";

      docHTML += "iWidth = document.images[0].width - iWidth;";

      docHTML += "iHeight = document.images[0].height - iHeight;";

      docHTML += "window.resizeBy(iWidth, iHeight);";

      docHTML += "self.focus();}</";

      docHTML += "script></head>";

      docHTML += "<body topmargin='0' leftmargin='0' marginwidth='0' margineight='0' onload='ResizePicture();'>";

      docHTML += "<script language='javascript'>document.write('<img src=";

      docHTML += '"';

      docHTML += url;

      docHTML += '"';

      docHTML += " border=0>');</";

      docHTML += "script></";

      docHTML += "body></";

      docHTML += "html>";

 

      popupWin.document.open();

      popupWin.document.write(docHTML);

      popupWin.document.close();

}


