// function showing the full-size picture in the new window
var ww;
var hh;
var file2;
var wpic;
var hpic;

function showphoto(file,w,h) {
  wpic=w;
  hpic=h;
  file2=file;
  ww=w+15;
  hh=h+45;
  var string1='width='+ww+',height='+hh;
  if (window.open) {
    newWindow = window.open('dummy.html','mywindow',string1);
    setTimeout('update()',1000);
  } else {
    this.document.location = file;
  }
}
function update() {
    newWindow.document.open();
    newWindow.document.writeln('<html>');
    newWindow.document.writeln('<body bgcolor="LightSlateGray" style="padding:0;margin:0;"><center>');
    newWindow.document.writeln('<a href="javascript:window.close()">')
    newWindow.document.writeln('<img border=0 width='+wpic+' height='+hpic+' src='+file2+'><br>');
    newWindow.document.writeln('</a>');
    newWindow.document.writeln('<p>To close this window, click on the picture</p>');
    newWindow.document.writeln('</center></body></html>');
    newWindow.document.close();
}

//script forwarding information page back to the main view;
/*
if (top.frames.length == 0) {
  document.cookie = "RAMnewURL=" + escape(document.URL) + "; path=/;"
  document.cookie = "RAMnewTYPE=" + escape(5) + "; path=/;"
  ver = parseInt(navigator.appVersion, 10);
  if ( ((navigator.appName == "Netscape") && (ver >= 3)) ||
       ((navigator.appName == "Microsoft Internet Explorer") && (ver >= 4)) )
         location.replace("indexq.html");
  else
         location = "indexq.html";
};
*/