// JavaScript Document
function newWin(photo)
  {
  nImage = new Image();
  nImage.src = photo;
  width = screen.width;
  height = screen.height;
  i = nImage.width;
  j = nImage.height;
  k = 'no';
    /*if (i > screen.width)
      {
        i = screen.width - 80;
        j = nImage.height + 30;
        k = 'yes';
       }
     if (j > screen.height)
       {
         j = screen.height - 100;
         i = nImage.width + 40;
         k = 'yes';
       }
     if (width == 0 || height == 0)
       {
         i = 640;
         j = 480;
         k = 'yes';
       }
     else
       {
         i = i + 40
         j = j + 30
       }*/
  myWin= open("", "_self", 
  "width=595,height=450,left=200,top=170,status=no,toolbar=no,menubar=no,scrollbars="+k+",resizable="+k+"");
  myWin.document.open();
  myWin.document.write("<html><head><title>Portfolio</title></head><body bgcolor='#C0C0C0' leftmargin='7'><p align='center' valign='middle'><img border='0' src='");
  myWin.document.write(photo);
  myWin.document.write("'></p></body></html>");
  myWin.document.close();}

