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() {

	months = new Array();
	months[1] = "Jan"; months[7] = "Jul";
	months[2] = "Feb"; months[8] = "Aug";
	months[3] = "Mar"; months[9] = "Sep";
	months[4] = "Apr"; months[10] = "Oct";
	months[5] = "May"; months[11] = "Nov";
	months[6] = "Jun"; months[12] = "Dec";

	var todaysdate = new Date();
	var date  = todaysdate.getDate();
	var day  = todaysdate.getDay() + 1;
	var month = todaysdate.getMonth() + 1;
	var yy = todaysdate.getYear();
	var year = (yy < 1000) ? yy + 1900 : yy;
	var year2 = 2000 - year; year2 = (year2 < 10) ? "0" + year2 : year2;

        document.write('<span class="month">'+months[month]+'</span> <span class="date">' + date + '</span> <span class="year"> ' + year+'</span>'); 
}
// Added for trustlogo display on SSL secure pages
//<![CDATA[
var cot_loc0=(window.location.protocol == "https:")? "https://secure.comodo.net/trustlogo/javascript/cot.js" :
"http://www.trustlogo.com/trustlogo/javascript/cot.js";
document.writeln('<scr' + 'ipt language="JavaScript" src="'+cot_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>');
//]]>
