function ShowText()
{
  parent.Text.location.href="text00.htm";
}


function ShowImage(image, width, height, comment)
{
  parent.Bild.document.open();
  parent.Bild.document.bgColor = "FFFFFF";

  if (image != "")
  {
    image = "../"+ image;
  
    iWidth = screen.availWidth - 620;
    iHeight = screen.availHeight - 240;

    if ((width / 2) < (iWidth - 20))
    {
      if (width > (iWidth-10))
      {
        height = height * ((iWidth - 20) / width);
        width = iWidth - 20;
      }
/*
      parent.Bild.document.write("<table width=\""+ iWidth+ "\" height=\""+ iHeight+ "\" border=\"0\">");
      parent.Bild.document.write("<tr><td width=\""+ (iWidth - width) / 2 + "\"></td>");
      parent.Bild.document.write("<td width=\""+ width+ "\" align=\"center\">");
      parent.Bild.document.write("<img src=\""+ image+ ".jpg\" height=\""+ height+ "\" width=\""+ width+ "\"><br><div style=\"font-size:9pt\"><i>"+ comment +"</i></div></td>");
      parent.Bild.document.write("<td width=\""+ (iWidth - width) / 2 + "\"></td></tr></table>");
*/
      parent.Bild.document.write("<table style=\"height:100%; width:100%\"><tr><td style=\"text-align:center; vertical-align:middle;\"><img src=\""+ image+ ".jpg\" height=\""+ height+ "\" width=\""+ width+ "\"><br><div style=\"font-size:9pt\"><i>"+ comment +"</i></div></td></tr></table>");
    }
    else
    {
    }
  }

  parent.Bild.document.close();
}


function LoadPage(page)
{
  ShowImage();
  open(page);
}
