/*
 * Travelog
 * File: travelog.js
 * Version: 0.1.3
 * Date: 2005/06/13
 * Author: Manuel Linsmayer (m.linsmayer@expersite.com)
 */

function enlarge(id,pic,width,height) {
  var uri,name,options;
  if (isNaN(width) || (width < 1) || isNaN(height) || (height < 1)) return (false);
  uri = encodeURI("travelog/image.php?id=" + String(id) + "&pic=" + String(pic));
  name = "enlargement" + String((new Date()).getTime());
  options = "height=" + String(height) + "px,width=" + String(width) + "px,left=" + String((screen.width-width)/2) + ",scrollbars=no,status=no,toolbar=no,top=" + String((screen.height-height)/2);
  window.open(uri, name, options);
  return (true);
}
