﻿/* ========= Event Handler group for multiple JS functions =========== */
/* ========= File handles the following: Today's Date, Out of Frames ============ */

/* This script and many more are available free online at The JavaScript Source (javascript.internet.com) Created by: Lee Underwood (javascript.internet.com/) ---*/
function displayDate() {
  var now = new Date();
  var today = now.getDate();
  var month = now.getMonth();
    var monthName = new Array(12)
      monthName[0]="January ";
      monthName[1]="February ";
      monthName[2]="March ";
      monthName[3]="April ";
      monthName[4]="May ";
      monthName[5]="June ";
      monthName[6]="July ";
      monthName[7]="August ";
      monthName[8]="September ";
      monthName[9]="October ";
      monthName[10]="November ";
      monthName[11]="December ";
  var year = now.getFullYear();
  document.write(monthName[month]+today+ ", "+year);
}

/* ------------------------New 'addOnload' for .js programs------------------------------------------------------------------  */
addOnload(outFm);
function addOnload(newFunction) {
	var oldOnload = window.onload;
	
	if (typeof oldOnload == "function") {
		window.onload = function() {
			if (oldOnload) {
				oldOnload();
			}
			newFunction();
		}
	}
	else {
		window.onload = newFunction;
	}
}
/* ------------------------End New 'addOnload' for .js programs------------------------------------------------------------------  */

/* Out of Frames courtesy w3schools.org */
function outFm() {
if (top.location != self.location) {
	top.location.replace(self.location);
}
}



