//ユーザが設定する変数----------------------------------
  var Wname = "newWin"; //新しいウィンドウの名前
  var x = "auto"; //ウィンドウのX座標
  var y = "auto"; //ウィンドウのY座標
//------------------------------------------------------

function thumbnail(URL, width, height){
  options = "Resizable=0, directories=0, location=0, menubar=0, scrollbars=0, status=0, toolbar=0, width=" + width + ", height=" + height;
  if( x != "auto" ) options += ", left=" + x;
  if( y != "auto" ) options += ", top=" + y;
  win = window.open ('', Wname, options);
  win.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
  win.document.write('<html>\n<head>\n');
  win.document.write('<meta http-equiv="Content-Style-Type" content="text/css">');
  win.document.write('<style type="text/css"><!--');
  win.document.write('body { margin : 0px; }');
  win.document.write('--></style>\n</head>\n');
  win.document.write('<body>\n');
  win.document.write('<img src="'+URL+'" width="'+width+'" height="'+height+'">\n');
  win.document.write('</body>\n</html>');
  win.document.close();
}
