var timerID;

function showDate() {
	// Array ofmonth Names
	var monthNames = new Array( "January","February","March","April","May","June","July","August","September","October","November","December");
	var now = new Date();
	thisYear = now.getYear();
	if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem
	document.write(now.getDate() + " " +  monthNames[now.getMonth()] + " " + thisYear);
	// -->
}

function teksmarquee1(){
	document.write('Activity A will be held in Jakarta on August 20 - 24, 2007');
}

function teksmarquee2(){
	document.write('Activity B will be held in Yogyakarta on November 11 - 20, 2007');
}

function teksmarquee3(){
	document.write('Activity C will be held in Bali on December 5 - 15, 2007');
}

function startClock(){
   // Initial call
   timerID = window.setTimeout("showClock()", 1000); // 1-second interval
}

function stopClock(){
   window.clearTimeout(timerID);
   txtHldClock.value = "Stopped!";
}

function ShowClock(){
   // This function actually displays the time. 
   	today = new Date(); 
	hours = today.getHours();
	minutes = today.getMinutes().toString();
	
	if (minutes.length < 2) minutes = "0" + minutes;
	seconds = today.getSeconds().toString();
	if (seconds.length < 2) seconds = "0" + seconds;

	jktHours = hours.toString(); 
	if (jktHours.length < 2) jktHours = "0" + jktHours;

 	document.write(jktHours + ":" + minutes + ":" + seconds);
   	timerID = window.setTimeout("showClock()", 1000); // repeat call
}