var d = new Date();
day = d.getDay();
date = d.getDate();
month = d.getMonth();
year = d.getFullYear();

var days = new Array(7);
days[0] = "Sunday";
days[1] = "Monday";
days[2] = "Tuesday";
days[3] = "Wednesday";
days[4] = "Thursday";
days[5] = "Friday";
days[6] = "Saturday";

var months = new Array(12);
months[0] = "January";
months[1] = "February";
months[2] = "March";
months[3] = "April";
months[4] = "May";
months[5] = "June";
months[6] = "July";
months[7] = "August";
months[8] = "September";
months[9] = "October";
months[10] = "November";
months[11] = "December";

function showDate()
{ 
    document.write("<span id='day'>" + days[day] +"</span>");
    document.write("<span id='monthdateyear'>" + months[month] +"&nbsp;" + date + ", " + year + "</span><br />");
}

function showMonthYear()
{
    document.write("<span id='fulldate'>" + months[month] + "&nbsp;" + year + "</span>"); 
}

// functions to increase and / or decrease font size within '<p>' tag
var min=12;
var max=18;
function increaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s + "px"
   }
}
function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}

function showMessage()
{
	window.open("../About/ExeDir_Message.html","","menubar=no,scrollbars=yes,toolbar=no,width=500,height=600;");
}

function cleartext(id)
{
  var d = document.contact;
  
  document.getElementById(id).value = "";
}

/* This function provides dropdown capability for menus */

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="li") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
window.onload=startList;
}



function openWindow(address)
{

    window.open(address,"","menubar=no,scrollbars=yes,toolbar=no,width=500,height=600;");
}

function openNewWindow(address)
{
    window.open(address,"");
}