function OpenWindow(theURL,winName) {
  window.open(theURL,winName,'scrollbars=yes,resizable=yes,width=390,height=340,left=5,top=5');
} 

function OpenPrint(theURL,winName) {
  window.open(theURL,winName,'toolbar=yes,scrollbars=yes,resizable=yes,width=700,left=0,top=0');
}

function login(fname) {
  f = eval("document.forms." + fname);
  if(f.UserName.value == "" || f.Password.value == "") {
    alert("Please enter your username and password!"); return false;}
  else f.submit();
}

function makeMonthArray() {
  this.length = 12;
  this[1] = "January"; this[2] = "February"; this[3] = "March"; this[4] = "April"; this[5] = "May"; this[6] = "June";
  this[7] = "Jule"; this[8] = "August"; this[9] = "September"; this[10] = "October"; this[11] = "November"; this[12] = "December";
  return(this);
}
function makeDayArray() {
  this.length = 7;
  this[1] = "Sunday"; this[2] = "Monday"; this[3] = "Tuesday"; this[4] = "Wednesday";
  this[5] = "Thursday"; this[6] = "Friday"; this[7] = "Saturday";
  return(this);
}
function writeDate() {
  attdate = new Date();
  monthName = new makeMonthArray();
  dayName = new makeDayArray();
  day = attdate.getDay() + 1;
  date = attdate.getDate();
  month = attdate.getMonth() + 1;
  year = attdate.getYear();
  sec = attdate.getSeconds()
  if (90 <= year && year < 2000) 
    year = "19" + year;
  dateStr  = date;
  dateStr += " ";
  dateStr += monthName[month];
  dateStr += " ";
  dateStr += year;
  dateStr += ", ";
  dateStr += dayName[day];
  document.write(dateStr);
}
loaded = 1;