// -------------------------------
// KNOWLEDGE MAP SUPPORT FUNCTIONS
// -------------------------------
// Copyright (c) 2003 The Salamander Organization Ltd.  All Rights Reserved.
//
// THIS WORK IS SUBJECT TO U.K. AND INTERNATIONAL COPYRIGHT LAWS AND TREATIES.
//
// DISCLAIMER:
//
// The Salamander Organization Ltd. (hereto referred as "Salamander") makes no representations or warranties
// with respect to the contents or use of this code, and specifically disclaims any express or implied
// warranties of merchantability or fitness for any particular purpose.  Further, Salamander reserves the right
// to revise this publication and to make changes to its content, at any time, without obligation to notify any
// person or entity of such revisions or changes.
//
// Further, Salamander makes no representations or warranties with respect to any software, and specifically
// disclaims any express or implied warranties of merchantability or fitness for any particular purpose.  Salamander
// reserves the right to make changes to any and all parts of the software, at any time, without obligation to notify
// any person or entity of such changes.
//
// Inclusion of the above notice does not necessarily imply publication.



function showTodaysDate() 
{
	var d = new Date();
	var weekday = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
	var monthname = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
	var daynumber = d.getDate();
	var daystring = daynumber.toString();
	if (daynumber < 10)
	{
		daystring = "0" + daystring;
	}
	document.write(weekday[d.getDay()] + ", ");
	document.write(monthname[d.getMonth()] + " ");
	document.write(daystring + ", ");
	document.write(d.getFullYear());
}

function doTitleNav(parentLink, contextLink) {
	// if there is a Parent Link then use that
	if (parentLink != "") {
		location.href=parentLink;
	} else {
		// if no Parent Link there should be a Context Link
		if (contextLink != "") {
			location.href=contextLink;
		} else {
			// not found either Parent or Context Link - something is broken
			//alert("There has been a problem navigating to the Parent Process or Context.");
		}
	}
}