/* Generate the 'main' frame.
Interestingly, by generating the contents of this frame (as opposed to loading an html file) IE5.5 and Netscape 4.72
appear to cache the images automatically. This comment applies to the 'select' frame as well. */
function gen_main() {
  main.document.open();
  dw_m('<html>');
  dw_m('<head>');
  dw_m('<link rel="stylesheet" href="main.css" type="text/css">');
  dw_m('</head>');
  dw_m('<body>');
  var fn = arr[ctr].iFname();
  dw_m('<img src="' + fn + '" border=0 alt="' + arr[ctr].title + '">');
  dw_m('<div class="ititle">' + 'Title: ' + arr[ctr].title + '</div>');
  dw_m('<div>Copyright (C) Apyx, Inc. All rights reserved.</div>');
  dw_m('</body>');
  dw_m('</html>');
  main.document.close();
}
