<!--
	function getTemp()
	{
		var xmlhttp = GetAjax();
		var temp_div = window.document.getElementById( 'temp_div' );
		
		temp_div.innerHTML = 'Cargando temperatura..';
		
		xmlhttp.open( 'GET', 'ws/temp.php', true );
		xmlhttp.onreadystatechange = function()
		{
			if ( xmlhttp.readyState == 4 && xmlhttp.status == 200 )
			{
				temp_div.innerHTML = xmlhttp.responseText;
			}
		}
		
		xmlhttp.send( null );
	}
	
	function muestraReloj()
	{
		// Obtengo la hora actual y la divido en sus partes
		var fechacompleta = new Date();
		var dia = fechacompleta.getDate();
		var mes = fechacompleta.getMonth() + 1;
		var year = fechacompleta.getFullYear();
		var horas = fechacompleta.getHours();
		var minutos = fechacompleta.getMinutes();
		var segundos = fechacompleta.getSeconds();
		
		if (minutos <= 9) minutos = "0" + minutos;
		if (segundos <= 9) segundos = "0" + segundos;
		if ( dia <= 9 )
		{
			dia = "0" + dia;
		}
		
		if ( mes <= 9 )
		{
			mes = "0" + mes;
		}
		
		var fecha_inc = dia + "/" + mes + "/" + year;
		var hora_inc =  horas + ":" + minutos + ":" + segundos;
		
		document.getElementById( "fecha_inc" ).innerHTML = fecha_inc;
		document.getElementById( "hora_inc" ).innerHTML = hora_inc;
		
		// Ejecuto la función con un intervalo de un segundo
		setTimeout("muestraReloj()", 1000);
	}
//-->