/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
function enlaceSeleccionado(idCapa) {
       var idCapas = new Array("subInicio","subDMA","subPlanificaionHidrologica","subPerfilContratante");
       
       for (i=0; i<idCapas.length;i++) {
            if (idCapas[i] == idCapa) {
                document.getElementById(idCapas[i]).className="Seleccionada";
            }
            else {
                 document.getElementById(idCapas[i]).className="subtitulo";
             }
       }
}

function obtenerFechaYHora() {
	var miFecha = new Date();
	var dia = miFecha.getDate();		
	var year = miFecha.getYear();
        var minutos = miFecha.getMinutes();

	if (year < 1000)
		year+=1900;
            
        if (minutos < 10)
            minutos = "0" + minutos;

	var mes = miFecha.getMonth();
	var arrayMes=new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre")
	
    return "<img src=imagenes/imagenCalendario.png />&nbsp;" + dia+" de "+ arrayMes[mes]+ " de "+year + "&nbsp;&nbsp;&nbsp;&nbsp;<img src=imagenes/imagenReloj.gif />&nbsp;" + miFecha.getHours() + ":" + minutos;	
}
