
function Disp(FileName,Wo,Ho){
  BaseWidth=screen.width-50;
  BaseHeight=screen.Height-50;

  pic=new Image();
  pic.src = FileName;
  pw=pic.width;
  ph=pic.height;

  if (pw==0||ph==0) {
	pw=Wo;
	ph=Ho;
  } else {
	Wo=pw;
	Ho=ph;
  }

  W=Wo;
  H=Ho;
  W1=W+90;
  H1=H+90;
  if (W1>BaseWidth) W1=BaseWidth;
  if (H1>BaseHeight) H1=BaseHeight;
  mW=window.open("","NewWindow","width="+W1+",Height="+H1+",resizable=yes,scrollbars=yes");
  mW.focus();
  mW.document.open();
  mW.document.write("<TITLE>"+FileName+"</TITLE>");
  mW.document.write("<BODY BGCOLOR='#BFBFBF'>");
//  mW.document.write("<TABLE BORDER=0 WIDTH="+W1+" HEIGHT="+H1+" CELLSPACING=0>");
  mW.document.write("<TR><TD ALIGN=CENTER VLAIGN=MIDDLE>");
  mW.document.write("<A HREF='JavaScript:window.close();'>");
  mW.document.write("<IMG SRC="+FileName+" WIDTH="+W+" HEIGHT="+H+" BORDER=0>");
  mW.document.write("<BR>"+"To close this window, click the image.");
  mW.document.write("</A></TABLE>");
  mW.document.close();
}

function HtmDisp(FileName){
	open(FileName,"newwindow");
}

