function showPic(url,x,y,title) {
  var w = window.open('','w','width=' + x + ',height= ' + y + ',statusbar=true');
  var out = '<html><head><title>' + title + '</title></head><body><div style="position: absolute; top: 0px; left: 0px"><img src="';
  out += (url.indexOf('http://') > 0) ? 'url' : 'images/' + url;
  out += '" width="' + x + '" height="' + y + '" alt=""/></div></body></html>';
  
  with (w.document) {
   open();
   write(out);
   close();
  }
}
