﻿// JScript File
  
    function abc()
    {
    var ImageName;
      
  
    var AStrHeight=0
    var AStrWidth=0
    AStrHeight=parseInt(NEW_Image.height)+80
    AStrWidth=parseInt(NEW_Image.width)+50
    newwindow=window.open("","name","width=" + AStrWidth + ", height=" + AStrHeight + ",left=150,top=20");			
    var tmp = newwindow.document;
       tmp.write("<html><head><title>Zoom View</title><body><center>");
    tmp.write('<Table border=0 cellspacing=2 cellpadding=0><tr><td align=center valign=top>');
    tmp.write("<img style=border-width:1px src='" + IMGNameEnlarge + "' alt='Zoom View' title='Zoom View' border=0>");
    tmp.write('</td></tr>');
    tmp.write('<tr><td>&nbsp;</td></tr>');
    tmp.write('<tr><td align=center><a href="javascript:self.close()"  style="font-family: Verdana, Arial, Helvetica, sans-serif;font-weight: bold;font-size: 12px;color: #980019;text-decoration:none;"><img src=images/btn_close.gif border=0 alt=></a></td></tr></table>');
    tmp.write('</center></body></html>');
    if (window.focus)
    {
	    newwindow.focus()
    }
    }

    var  NEW_Image = new Image();                 // Create an Image object
    function newwin(ImgHeight,ImgWidth,AStrImgName)
    {
        IMGNameEnlarge =  AStrImgName;;
        NEW_Image.src = IMGNameEnlarge;
        setTimeout("abc()",1500);
    }
    
    
     function ShowImage(ImgName)
    {
        window.open("mlspopup.aspx?ImgName="+ImgName,"PopUp","top=100,left=200,scrollbars=yes,height=490,width=570");
    }


  


