function ShowDate(showYear) {
  var DayNames = new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");
  var MonthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
  var curDate = new Date();
  document.write(DayNames[curDate.getDay()] + ", <b>" + MonthNames[curDate.getMonth()] + " " + curDate.getDate());
  if (showYear == 1) {
    var curYear = curDate.getYear();
    if (curYear < 1000) {
      curYear += 1900
    }
    document.write(", " + curYear);
  }
  document.write("</b>");
}

var win = null;
function PopupWindow(url, name, w, h){
	var l = (screen.width - w) / 2;
	var t = (screen.height - h) / 2;
	win = window.open(url, name, 'height='+h+',width='+w+',top='+t+',left='+l+',scrollbars=yes,resizable=yes');
	if (parseInt(navigator.appVersion) >= 4) { 
		win.window.focus();
	}
}

var win = null;
function PopupWindowFull(url, name){

	w = screen.width;
	h = screen.height;

	var l = (screen.width - w) / 2;
	var t = (screen.height - h) / 2;
	win = window.open(url, name, 'height='+h+',width='+w+',top='+t+',left='+l+',scrollbars=yes,resizable=yes,toolbar=yes,menubar=yes,location=yes,status=yes');
	if (parseInt(navigator.appVersion) >= 4) { 
		win.window.focus();
	}
}