﻿function showToday() {
	today3 = new Date();
	today2 = today3.getDay();
	today1 = today3.getMonth();
	today0 = today3.getDate();
	today5 = today3.getYear();
	
	if (today1==0){ today4="January"; }
	if (today1==1){ today4="February"; }
	if (today1==2){ today4="March"; }
	if (today1==3){ today4="April"; }
	if (today1==4){ today4="May"; }
	if (today1==5){ today4="June"; }
	if (today1==6){ today4="July"; }
	if (today1==7){ today4="August"; }
	if (today1==8){ today4="September"; }
	if (today1==9){ today4="October"; }
	if (today1==10){ today4="November"; }
	if (today1==11){ today4="December"; }
	
	if (today2==1){ today="Monday"; }
	if (today2==2){ today="Tuesday"; }
	if (today2==3){ today="Wednesday"; }
	if (today2==4){ today="Thursday"; }
	if (today2==5){ today="Friday"; }
	if (today2==6){ today="Saturday"; }
	if (today2==0){ today="Sunday"; }
	
	document.write('<nobr><font color="#800000" face="Times New Roman, Times" size="-1"><B><I>' + today + ', ' + today4 + ' ' + today0 + ', ' + today5 + '</I></B></font></nobr>');
}

function isInternetExplorer() {
    var userAgent = navigator.userAgent.toLowerCase();
    
    if (document.all && userAgent.indexOf('msie')!=-1) {
        return true;
    }
    else {
        return false;
    }
}

function IEVersion() {
    if (isInternetExplorer()) {
	    var userAgent = navigator.userAgent.toLowerCase();
	    return parseInt(userAgent.substring(userAgent.indexOf('msie')+5));
    }
}

function object_AddEventListener(object, evt, handler, bubble) {
    if (isInternetExplorer()) 
    {
        object.attachEvent('on' + evt, handler);
    }
    else
    {
        object.addEventListener(evt, handler, bubble);
    }
}