﻿// JScript File
// JScript File
  
    function abc()
    {
    var ImageName;

     var AStrHeight=240
     var AStrWidth=360
  // AStrHeight=parseInt(NEW_Image.height)+15
   //  AStrWidth=parseInt(NEW_Image.width)+10
    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' width='239' height='159' 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(ImgPath,ImgName)
    {
        
        window.open("popup.aspx?ImgPath="+ImgPath+"&ImgName="+ImgName,"PopUp","top=100,left=200,scrollbars=yes,height=550,width=630");
        
    }


  




