
     var ImgWnd=null; 
     
     function imgPopup(img,x,y) 
     {
       // path, width and height as arguments
       wid=x;
       ht=y;
       abspos="";
	   x=x+25;
       y=y+45;
       if (document.all) //IE
       {
          abspos=",left="+window.screenLeft+",top="+window.screenTop;
       }
       else if (document.layers) //Netscape
       {
	    
         abspos=",screenX="+window.screenX+",screenY="+window.screenY;
       }
       features="resizable=1,height="+y+",width="+x+",scrollbars=0,menubar=0"+abspos;
       winname="ImgWin";
	    if (ImgWnd)
	    {
	      if (ImgWnd.closed)
           ImgWnd = window.open('',winname,features);
       }
       else
         ImgWnd = window.open('',winname,features);
      var page='<html><body leftmargin="0" marginwidth="0" topmargin="5" marginheight="5" bgcolor="#FAF6D9" style="overflow:hidden;"><center><img src="images/' + img +'" width="'+wid+'" height="'+ht+'" border="0"></center></body></html>';
      ImgWnd.document.open();
      ImgWnd.document.write(page);
      ImgWnd.document.close();
      ImgWnd.name=winname;
      ImgWnd.focus();
      ImgWnd.resizeTo(x,y);
    }




    function imgClose()



    {



      if (ImgWnd)



	    {



	      if (!ImgWnd.closed)



           ImgWnd.close();



       }



     }