//
// File:     pictures.js
// Purpose:  Javascript functions for pictures
//
//

function display(dir, picture)
{
    var winStyle = "resizable=yes,width=600,height=690,left=60,top=30";
    var win = window.open("",
                          "newWindow",
                          winStyle);

    saveMethod = document.forms[0].method;
    saveAction = document.forms[0].action;
    saveTarget = document.forms[0].target;
    document.forms[0].method = "get";
    document.forms[0].target = "newWindow";
    document.forms[0].action = 
      dir + "/php/" + picture + ".php";
    document.forms[0].submit();
    document.forms[0].method = saveMethod;
    document.forms[0].action = saveAction;
    document.forms[0].target = saveTarget;

//
//  This is stuff for debugging
//

//  win.document.open("text/plain");
//  win.document.writeln("This document has " +
//      document.forms.length + " forms.")
//  for (i=0; i<document.forms.length;i++)
//  {
//      win.document.writeln("Form " +
//                           i +
//                           " has " +
//                           document.forms[i].elements.length +
//                           " elements.")
//      for (j=0; j<document.forms[i].elements.length; j++)
//      {
//          win.document.writeln(j +
//                               " A " +
//                               document.forms[i].elements[j].type +
//                               " element.  The Value is " +
//                               document.forms[i].elements[j].value)
//      }
//  }
//
//  win.document.writeln(args)
}

function ourclose()
{
    close();
}

