// This was added to fix the BST problem 
// Mark Boyle, 30th March 2004

// return ms of Spring/Autumn EU clock change
function EUch( Y, M ) { 
  // last of month is 31st, get GMT
	var J = Date.UTC( Y, M-1, 31 );

	/* Sun, 0100 GMT, ms */
	return J - 864e5 * ( ( 4 + J/864e5 ) % 7 ) + 36e5 ;
}

function bst() {
	var d = new Date();
	var yr = d.getUTCFullYear();
	var EUSTon = EUch( yr, 03 );
	var EUSTof = EUch( yr, 10 );
	var ms = d.getTime();
	if ( (ms >= EUSTon) && (EUSTof > ms) )
    ms += 3600000 // +1h
	return new Date(ms);
}

function PrintDate() {
	// Grab the local system time in a way that can handle the BST Time Change
	d = bst();

	var weekday = new Array( "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" );
	var monthname = new Array( "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" );
	document.write( weekday[d.getDay()] + " " );
	document.write( d.getDate() + ". " );
	document.write( monthname[d.getMonth()] + " " );
	document.write( d.getFullYear() );
	/*
	document.write( " &nbsp;&nbsp;&nbsp;" );
	document.write( d.getUTCHours() );
	document.write( ":" );

	var temp = d.getUTCMinutes();

	if (temp < 10)
	{
		temp = '0'+temp;
	}

	document.write(temp);

	document.write("h");
	*/
}

/*By JavaScript Kit
http://javascriptkit.com
Credit MUST stay intact for use
*/

function show2(param) {
  if ( !document.all && !document.getElementById )
    return
  // thelement = document.getElementById ? document.getElementById("showTime") : document.all.showTime;
  // thelement = document.all.showTime;
  //thelement = eval( 'document.all.' + param );
  if ( document.getElementById ) {
    thelement = eval( 'document.getElementById("' + param + '")' );
  } else {
    thelement = eval( 'document.all.' + param );
  }
  var Digital = new Date();
  var hours = Digital.getHours();
  var minutes = Digital.getMinutes();
  var seconds = Digital.getSeconds();
  var dn = "PM";
  if ( hours < 12 )
    dn = "AM";
  if ( hours > 12 )
    hours = hours - 12;
  if ( hours == 0 )
    hours = 12
  if ( minutes <= 9 )
    minutes = "0" + minutes;
  if ( seconds <= 9 )
    seconds = "0" + seconds;
  var ctime = hours + ":" + minutes + ":" + seconds + " " + dn;
  thelement.innerHTML = ctime;
  setTimeout( "show2('"+param+"')", 1000 );
}
// window.onload = show2;