// JavaScript Document

function showTime(){
	
	var myDate = new Date();
	var hours, minutes, seconds;
	
	hours = myDate.getHours();
	minutes = myDate.getMinutes();
	seconds = myDate.getSeconds();

	if (hours.toString().length == 1) hours = "0" + hours;
	if (minutes.toString().length == 1) minutes = "0" + minutes;
	if (seconds.toString().length == 1) seconds = "0" + seconds;
	
	var time;
	
	time = hours + ":" + minutes + ":" + seconds;
	
	document.getElementById("time_div").innerHTML = "<b>Hora local:</b> "+time;
}