// default.js
// TJF
// 2005-09-21

// functions

function resize(width, height) {
  try {
    if (top.innerWidth) {
      width += top.outerWidth - top.innerWidth;
      height += top.outerHeight - top.innerHeight;
      top.resizeTo(width, height);
    }
    else if (top.document.body) {
      var delta_x = width - top.document.body.clientWidth;
      var delta_y = height - top.document.body.clientHeight;
      top.resizeBy(delta_x, delta_y);
    }
  }
  catch (ex) {
    alert(ex);
  }
}

function show(obj) {
  var w = window.open();
  var doc = w.document;
  doc.write("<html><head><title>Show Object</title></head><body><ol>");
  for (var prop in obj) {
    try {
      doc.write("<li>" + prop + " = " + obj[prop] + "</li>");
    }
    catch (ex) {}
  }
  doc.write("</ol></body></html>");
  doc.close();
}

