var imgMas = new Image();
imgMas.src = "images/signo_mas.gif";
var imgMenos = new Image();
imgMenos.src = "images/signo_menos.gif";

function mostrarOcultarDetalle( n_detalle ) {
			
var l_control;
var l_boton;

	eval( "l_control = document.all.item( \"detalle_" + n_detalle + "\");" );				 
	eval( "l_boton = document.all.item( \"boton_" + n_detalle + "\");" );
	
	if( l_control.style.display == "" ) {
		l_control.style.display = "none";
		l_boton.src = imgMas.src;
	}
	else {
		l_control.style.display = "";
		l_boton.src = imgMenos.src;
	}
}

function abrirPagina(sName, sUrl, iWidth, iHeight, iTop, iLeft)
{
	Args="width=" + iWidth + ",height=" + iHeight + ",toolbar=0,location=0,directories=0,menubar=0,resizable=0,scrollbars=0,status=1,top=" + iTop + ",left=" + iLeft + ";"
	remote=window.open(sUrl,sName,Args);
	if (remote != null) {
		if (remote.opener == null)
		remote.opener = self;
	}
}

function abrirAviso()
{
   mywin = window.open('aviso.htm','win','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=468,height=400,top=10,left=10');
}

function abrirPolPri()
{
   mywin = window.open('PolPri.htm','win','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width=468,height=400,top=10,left=10');
}

function entrar(src,color_entrada) {
 if (!src.contains(event.fromElement)) {
	 src.style.cursor = "hand";
	 src.bgColor = color_entrada;
	 src.FontColor="ff0000";
	}
 }
function sortir(src,color_default) {
	if (!src.contains(event.toElement)) {
	 src.style.cursor = "default";
	 src.bgColor = color_default;
	}
 } 

function ponerFecha()
{
	var mes = new Array(12);
	mes[0]  = "Enero";
	mes[1]  = "Febrero";
	mes[2]  = "Marzo";
	mes[3]  = "Abril";
	mes[4]  = "Mayo";
	mes[5]  = "Junio";
	mes[6]  = "Julio";
	mes[7]  = "Agosto";
	mes[8]  = "Septiembre";
	mes[9]  = "Octubre";
	mes[10] = "Noviembre";
	mes[11] = "Diciembre";
	var hoy = new Date();
	var dia   = hoy.getDate();
	var este_mes = hoy.getMonth();
	var ano  = hoy.getYear();
	if (ano < 1900){
		ano += 1900;
	}
	return(dia+" de "+mes[este_mes]+" de " +ano);
} 
// <script type="text/javascript" language="JavaScript">document.write(MostrarFecha());</script>

function ponerFechaCuadro()
{
	mesarray=new Array("Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio","Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre");
	diaarray=new Array( "Domingo","Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado");
	hoy = new Date();
	dias = hoy.getDate();
	dia = hoy.getDay();
	mes = hoy.getMonth();
	mes=mesarray[mes];
	dia =diaarray[dia];
	anno = hoy.getYear();
	if (anno <200)
	anno = anno+1900;
	document.write('<TABLE WIDTH="60" height="60" BORDER="2" BGCOLOR="#FFFFFF"><TR><TD><CENTER>');
	document.write('<FONT SIZE="2" COLOR="#000000"> <B>'+mes+'</B><br>');
	document.write('<FONT SIZE="1" COLOR="#000000">'+anno+'<br>');
	document.write('<FONT SIZE="4" COLOR="#000000" FACE="Arial"><B>'+dias+'</B><br>');
	document.write('<FONT SIZE="1" COLOR="#000000">'+dia+'<br>');
	document.write('</CENTER></TR></TD></TABLE>');
}

