function PopupPic(sPicURL) { 
  window.open( "ImagePopup.aspx?"+sPicURL, "",  
  "resizable=1,height=100,width=100"); 
} 

function FitPic() { 
  winiWidth = (NS)?window.innerWidth:document.body.clientWidth; 
  winiHeight = (NS)?window.innerHeight:document.body.clientHeight; 

  iWidth = document.images[0].width;
  iHeight = document.images[0].height;
  
  if(MS)//Adjustment for IE
  {
    iWidth = iWidth + 10;
    iHeight = iHeight + 38;
  }
  else//Adjustment for others
  {
    iWidth = iWidth + 10;
    iHeight = iHeight + 49;
  }
  
  window.resizeTo(iWidth,iHeight); 
  self.focus(); 
}; 