//better window pop code implemented Sept 2003

var newWin = null;
function popUp(strURL, strType, strHeight, strWidth) {
  if (newWin != null && !newWin.closed)
    newWin.close();
  var strOptions="";
  if (strType=="console")
    strOptions="resizable,height="+
      strHeight+",width="+strWidth;
  if (strType=="fixed")
    strOptions="status,height="+
      strHeight+",width="+strWidth;
  if (strType=="elastic")
    strOptions="toolbar,menubar,scrollbars,"+
      "resizable,location,height="+
      strHeight+",width="+strWidth;
  newWin = window.open(strURL, 'newWin', strOptions);
  newWin.focus();
}

//code courtesy of GurusNetwork.com

function openWindow(url) {
  popupWin = window.open(url,'newWin','scrollbars=yes,resizable=yes,width=600,height=475,left=75,screenX=75,top=75,screenY=75');
}

function doodlePop(url) {
  popupWin = window.open(url,'doodle','scrollbars=no,resizable=no,width=690,height=600,left=5,screenX=5,top=5,screenY=5');
}
//date script


function makeArray() {
  var args = makeArray.arguments;
  for (var i = 0; i < args.length; i++) {
    this[i] = args[i];
  }
  this.length = args.length;
}

function fixDate(date) {
  var base = new Date(0);
  var skew = base.getTime();
  if (skew > 0)
    date.setTime(date.getTime() - skew);
}

function getString(date) {
  var months = new makeArray("January", "February", "March", "April",   "May",      "June", "July",    "August",   "September", "October", "November", "December");
  return months[date.getMonth()] + " " +
         date.getDate() + ", " +
         ((date.getFullYear() < 100) ? "19" : "") + date.getFullYear();
}

/*put this bit in the page:

var cur = new Date();
fixDate(cur);
var str = getString(cur);
document.write(str);
*/