function printDocLocation() {
	document.write('<p class="doclocation">This document is located at: ' + location.href + '</p>');
}

function clearField(thefield){
	if (thefield.defaultValue==thefield.value)
	thefield.value = "";
}

function selectField(thefield){
	thefield.select();
}

function toggleImage(name,sourceold,sourcenew) {
  re = new RegExp(sourceold);
  if (document[name].src.search(re) != -1) {
    document[name].src = sourcenew ;
  }
  else { document[name].src = sourceold ; }
}

function toggleDisplayOnOff(id){	
	if (document.all){	// IE4+
		x=document.all[id].style;
		x['display'] = (x['display']=='none' ? '' : 'none')
	}	
	else if (document.getElementById){ // NN5+
			x=document.getElementById(id).style;	
			x['display'] = (x['display']=='none' ? '' : 'none');
// Think this is KU	y=document.getElementById(content).style;	
//	only		y['border-left'] = (y['border-left']=='1px solid #49729c' ? 'none' : 'none');
	}
}

function toggleDisplay() {
	toggleDisplayOnOff('toggle');
}


function printDate(style) {
	/******************************************
	   Today's Date           by Joe Barta
	   http://www.pagetutor.com/todaysdate/
	*******************************************/

	Style = style; //pick a style from below

	/*------------------------------
	Style 1: March 17, 2000
	Style 2: Mar 17, 2000
	Style 3: Saturday March 17, 2000
	Style 4: Sat Mar 17, 2000
	Style 5: Sat March 17, 2000
	Style 6: 17 March 2000
	Style 7: 17 Mar 2000
	Style 8: 17 Mar 00
	Style 9: 3/17/00
	Style 10: 3-17-00
	Style 11: Saturday March 17
	--------------------------------*/

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

	months2 = new Array();
	months2[1] = "Jan"; months2[7] = "Jul";
	months2[2] = "Feb"; months2[8] = "Aug";
	months2[3] = "Mar"; months2[9] = "Sep";
	months2[4] = "Apr"; months2[10] = "Oct";
	months2[5] = "May"; months2[11] = "Nov";
	months2[6] = "Jun"; months2[12] = "Dec";

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

	days2 = new Array();
	days2[1] = "Sun"; days2[5] = "Thu";
	days2[2] = "Mon"; days2[6] = "Fri";
	days2[3] = "Tue"; days2[7] = "Sat";
	days2[4] = "Wed";

	todaysdate = new Date();
	date  = todaysdate.getDate();
	day  = todaysdate.getDay() + 1;
	month = todaysdate.getMonth() + 1;
	yy = todaysdate.getYear();
	year = (yy < 1000) ? yy + 1900 : yy;
	year2 = 2000 - year; year2 = (year2 < 10) ? "0" + year2 : year2;

	dateline = new Array();
	dateline[1] = months[month] + " " + date + ", " + year;
	dateline[2] = months2[month] + " " + date + ", " + year;
	dateline[3] = days[day] + " " + months[month] + " " + date + ", " + year;
	dateline[4] = days2[day] + " " + months2[month] + " " + date + ", " + year;
	dateline[5] = days2[day] + " " + months[month] + " " + date + ", " + year;
	dateline[6] = date + " " + months[month] + " " + year;
	dateline[7] = date + " " + months2[month] + " " + year;
	dateline[8] = date + " " + months2[month] + " " + year2;
	dateline[9] = month + "/" + date + "/" + year2;
	dateline[10] = month + "-" + date + "-" + year2;
	dateline[11] = days[day] + " " + months[month] + " " + date;

	document.write(dateline[Style]);
}
