
	  size = 400;
      function resize(id) {
      if (document.images[id].width > size || document.images[id].height > size){
	  if (document.images[id].width > document.images[id].height) document.images[id].width = size ;
      else document.images[id].height = size ;
      }
	  }
 