		function writeTST (TSTDate)
		{
		
			function TimeZoneOffsetToString(DateIn)
			{
				window.onerror=ErrorHandle;
				
				if ( TypeOf(DateIn) == "Date")
				{
					var OffSet = (DateIn.getTimezoneOffset()*100 / 60).toString();

					if ( OffSet.match(/^\d{3}$/) ) OffSet = "0" + OffSet;
					
					if ( DateIn.getTimezoneOffset() > 0 )
						OffSet = "+" + OffSet;
					else 
						OffSet = "-" + OffSet;

					return OffSet;
				} // end if statement 
				else return null;
			} // end funtion getTimeZoneOffset()
			
			var node;
			var strDate;
			
			var LocalTime = new Date();
			
/*			if ( document.getElementById("TST_Beat") )
			{
				Node = document.getElementById("TST_Beat");
				strDate = TSTtime(TSTDate);
				if ( Node.innerHTML != strDate ) Node.innerHTML = strDate;
				
				Node = document.getElementById("TST_GMT");
				strDate = TSTDate.toString().match(/[0-9|:]{8}/) + " GMT +0000";
				if (Node.innerHTML != strDate) Node.innerHTML = strDate;

				Node = document.getElementById("CitizLocal");
				strDate = LocalTime.toString().match(/[0-9|:]{8}/) + " GMT " + TimeZoneOffsetToString(LocalTime);
				if ( Node.innerHTML != strDate ) Node.innerHTML = strDate;
			} // end if
	
	
*/	
			if ( document.getElementById("Time") )
			{
				Node = document.getElementById("Time");
				strDate = TSTtime(TSTDate);
				if ( Node.innerHTML != strDate ) Node.innerHTML = strDate;
			} // end if
	

		} // end writeTST()
				
		function TSTtimeDisplay()
		{
			var dateTST = new Date();
			dateTST = getDateTimeGMT0(dateTST);
			writeTST (dateTST)
		} // end TSTTimeDisplay
	
	
	
		function LeadingZeros(num, places)
			/* 	****	LeadingZeros (num, places)	****
			Adds leading zeros to number (num) if the number of digits on the left side of the decimal place 
			is (places) digits.
			
			Arguments:	- num (string or number) - the number to to have decimal places trimmed off
						- places (number) -  the number of decimal places that should remain 
			
			Return:		- String of the num with leading zeros if necessary.
			****									**** */
		{
			if ( str.match(/^\d{1}\./) ) str = "0" + str;
			if ( str.match(/^\d{2}\./) ) str = "0" + str;
		}
		
		function truncDecimal(num, places, padded)
			/* 	****	truncDecimal(num, places)	****
			Description: Truncates a given floate number (num) to (places) decimal places 
			
			Arguments:	- num (string or number) - the number to to have decimal places trimmed off
						- places (number) -  the number of decimal places that should remain 
						- padding (boolean) true if they want a minumum number of decimal places that 
							are padded with zeros if less than the number of places
			****									**** */
		{
			if ( isNaN(num) ) return null;
				else num = num.toString();
				
			if ( isNaN(places) ) places = 0;
			if (padded != true) padded = false;
		/* Watch Code
			Watch("WATCH: num: " + num + " places:" + places + " ","padded: " + padded,DOCWRITE);
		 */
			var strBaseRegExp = "/\d{0";	
			var strNum;
			strNum = 0;
			
			if (places == 0) strNum = num.match(/[^.]*/);
			
			if (places > 0)
			{
		
		/* Watch Code 
			Watch("WATCH: strNum 1: ",strNum,DOCWRITE);
		 */		
				var re = new RegExp().compile(strBaseRegExp + "," + places + "}/");
				strNum = num.match(re);
			} // end if 
		
		/* Watch Code
			Watch("WATCH: strNum 2: ",strNum,DOCWRITE);
		 */
			if (padded) 
			{
		
			} // end if
		
			return strNum;
		} // end truncDecimals()
			
		/* 	Watch("Truncated Decimal", truncDecimal(123.12,4) , DOCWRITE);
			 */
			 
	
	setInterval("TSTtimeDisplay()", 250);

