
function printdate() {

  days = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");  
  //Load the month names into an array
  months = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
  
  //Get the values for month, day, etc.
  d = new Date();
  month = d.getMonth();
  month += 1;
  day = d.getDate();
  weekday = d.getDay();
  year = d.getFullYear();
  
  //Convert hours from military time -- remember AM or PM
  h = d.getHours();
  if (h>12){
    h-=12;
    ampm = "PM";
  } else {
    ampm = "AM";
  };

  //Single-digit minutes need a leading zero
  m = d.getMinutes();
  if (m<10){m = "0" + m};
  
  
now = days[weekday] + "&nbsp;&nbsp;" + month + "/" + day + "/" + year + "&nbsp;&nbsp;" + h + ":" + m + " " + ampm; 
  document.write(now);
};  
//End of function printdate()


// Function to check to see if the cookie exists
// name - name of the desired cookie
// * return string containing value of specified cookie or null if cookie does not exist
function getCookie(cookieName) {
  var dc = document.cookie;
  var prefix = cookieName + "=";
  var begin = dc.indexOf("; " + prefix);
  if (begin == -1) {
    begin = dc.indexOf(prefix);
    if (begin != 0) return null;
  } else
    begin += 2;
  var end = document.cookie.indexOf(";", begin);
  if (end == -1)
    end = dc.length;
  return unescape(dc.substring(begin + prefix.length, end));
}

// fixdate function
// date - any instance of the Date object
// * hand all instances of the Date object to this function for "repairs"
function fixDate(date) {
  var base = new Date(0);
  var skew = base.getTime();
  if (skew > 0)
    date.setTime(date.getTime() - skew);
}

// function to pop up the disclosure page.
function showdisclosurepage() {
window.open('/disclaimer.html','Ad','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=340,height=320');
Ad.focus();
}

function setCookie(name,value,expires,path,domain,secure) {
	document.cookie = name + "=" + escape(value) +
	((expires) ? "; expires=" + expires.toGMTString() : "" ) +
	((path) ? "path=" + path : "") +
	((domain) ? "domain=" + domain : "") +
	((secure) ? "secure" : "");
}

	