<!-- 

// -----------------------------------------------------------------------
// Funciones JavaScript GENERALES
// -----------------------------------------------------------------------
		
//FECHA
function VisualizarFecha()
{
	date = new Date();
	var day_of_week_number = date.getDay();
	var day_of_month = date.getDate();
	var month_number = date.getMonth();
	var year = date.getYear();
	if (year<200) year+=1900;
	var day_of_week = '';
	var month = '' 

	var hours = date.getHours();
	var message = '';

	if (hours >= 6) { time_of_day = 'Buenos Días'; message='Morning Message';}
	if ((hours >= 14) && (hours < 21)) { time_of_day = 'Buenas Tardes'; message='Afternoon Message'}
	if (hours >= 21) { time_of_day = 'Buenas Noches'; message='Evening Message';}
	if ((hours >= 0) && (hours < 6)){ time_of_day = 'Buenas Noches'; message='Night Message';}

	if(month_number == 0){month = 'Enero';}
	if(month_number == 1){month = 'Febrero';}
	if(month_number == 2){month = 'Marzo';}
	if(month_number == 3){month = 'Abril';}
	if(month_number == 4){month = 'Mayo';}
	if(month_number == 5){month = 'Junio';}
	if(month_number == 6){month = 'Julio';}
	if(month_number == 7){month = 'Agosto';}
	if(month_number == 8){month = 'Septiembre';}
	if(month_number == 9){month = 'Octubre';}
	if(month_number == 10){month = 'Noviembre';}
	if(month_number == 11){month ='Diciembre';}
	
	if(day_of_week_number == 0){day_of_week = 'Domingo';}
	if(day_of_week_number == 1){day_of_week = 'Lunes';}
	if(day_of_week_number == 2){day_of_week = 'Martes';}
	if(day_of_week_number == 3){day_of_week = 'Miercoles';}
	if(day_of_week_number == 4){day_of_week = 'Jueves';}
	if(day_of_week_number == 5){day_of_week = 'Viernes';}
	if(day_of_week_number == 6){day_of_week = 'Sábado';} 

	var date_to_show='&nbsp;'+day_of_week+', '+day_of_month+' '+month+' '+year+'. '+time_of_day;
	document.write(date_to_show);
}

function mOvr(src,clrOver) {
 if (!src.contains(event.fromElement)) {
	 src.style.cursor = 'hand';
	 src.bgColor = clrOver;
	}
 }
 function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
	 src.style.cursor = 'default';
	 src.bgColor = clrIn;
	}
 }
 function mClk(src) {
 if(event.srcElement.tagName=='TD')
	 src.children.tags('A')[0].click();
 }


function calculomedia()
		{
			var a;
			var b;
			a= Math.round(Math.random()*3)+1;
			b= Math.round(Math.random()*58)+1;
			
			document.write ("Tiempo previsto de lectura: " + a + "' " + b + "''  " );			
		}
		
//  APERTURA DE VENTANA
	function abreVentana(pagina)
	{
		win=window.open(pagina,"","toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,width=520,height=425,top=10,left=150");
	}

     function abreVentana1(pagina)
	{
		win=window.open(pagina,"","toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,width=580,height=480,top=5,left=50");
	}
     
     function abreVentana2(pagina)
	{
		win=window.open(pagina,"","toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,width=580,height=480,top=5,left=50");
	}
      function abreVentana3(pagina)
	{
		win=window.open(pagina,"","toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,width=670,height=550,top=5,left=50");
	}

    function abreVentana5(pagina)
	{
		win=window.open(pagina,"","toolbar=0,location=0,directories=0,menubar=0,scrollbars=0,resizable=0,width=560,height=500,top=10,left=150");
	}	

    function abreVentana6(pagina)
	{
		win=window.open(pagina,"","toolbar=0,location=0,directories=0,menubar=0,scrollbars=0,resizable=0,width=290,height=190,top=100,left=450");
	}
    function abreVentana7(pagina)
	{
		win=window.open(pagina,"","toolbar=0,location=0,directories=0,menubar=0,scrollbars=0,resizable=0,width=220,height=210,top=10,left=550");
	}				
    function abreVentana8(pagina)
	{
		win=window.open(pagina,"","toolbar=0,location=0,directories=0,menubar=0,scrollbars=0,resizable=0,width=340,height=270,top=10,left=550");
	}
    function abreVentana9(pagina)
	{
		win=window.open(pagina,"","toolbar=0,location=0,directories=0,menubar=0,scrollbars=0,resizable=0,width=320,height=240,top=10,left=550");
	}
//	CERRAR VENTANA
	function cerrarVentana()
	{
		self.close();
	}
	
	function visitantes(inf,sup){ 
	numP = sup - inf; 
	rnd = Math.random() * numP;
	rnd = Math.round(rnd);
	return parseInt(inf) + rnd;
} 




