function checkAcceso(form) {
if (form.login.value.length==0) 
    {
      form.login.focus();  
      alert ("Debe indicar el usuario\nRecuerde que distigue mayúsculas y minúsculas");
      return false;
	}
if (form.password.value.length==0) 
    {
      form.password.focus();  
      alert ("Debe indicar la contraseña\nRecuerde que distigue mayúsculas y minúsculas");
      return false;
	}
  form.submit();
  return true;
}
function checkBuscar(form) {
if (form.buscar2.value.length==0) 
    {
      form.buscar2.focus();  
      alert ("Indique datos a buscar");
      return false;
	}
  form.submit();
  return false;
}
function mostrartexto( secid )
{
var seccionId = document.getElementById(secid);
if (seccionId == null) return;
if (seccionId.style.display == '') 
{
seccionId.style.display = 'none';
var ImgSrc = document.getElementById("i" + secid);
ImgSrc.src = "../imagen/plus.gif";
}
else
{
seccionId.style.display = '';
var ImgSrc = document.getElementById("i" + secid);
ImgSrc.src = "../imagen/minus.gif";
}
}

function Oculto( obj )
{
var oDiv = document.getElementById(obj);
if(oDiv != null) oDiv.style.display = "none";
}

function muestrapag(datos,pagina,titulo,al,ah)
{
var W = al; 
var H = ah; 
var windowX = Math.ceil( (window.screen.width  - W) / 2 );
var windowY = Math.ceil( (window.screen.height - H) / 2 );
Wnd = open(""+pagina+"?"+datos,titulo,"width="+W+",height="+H+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0");
Wnd.moveTo( Math.ceil( windowX ) , Math.ceil( windowY ) );
	}

function muestrapagSSL(paginaSSL,tituloSSL,alSSL,ahSSL)
{
var W2 = alSSL; 
var H2 = ahSSL; 
Wnd = open(paginaSSL,tituloSSL,"width="+W2+",height="+H2+",toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0");
}

function muestraimg(pagina,titulo,al,ah)
{
var W = al; 
var H = ah; 
var windowX = Math.ceil( (window.screen.width  - W) / 2 );
var windowY = Math.ceil( (window.screen.height - H) / 2 );
Wnd = open(""+pagina+"",titulo,"width="+W+",height="+H+",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0");
Wnd.moveTo( Math.ceil( windowX ) , Math.ceil( windowY ) );
	}

function generapubli()
	{

	var banners = 1;
	var ahora = new Date()
	var segundos = ahora.getSeconds()
	var ad = segundos % banners;
	ad +=1;
	if (ad==1) {
	flash="PUBLI/StepFilters_2.swf"
	width="468";
	height="60";
	}
	if (ad==2) {
	flash="publi/MeteleUnGolAlMundial.swf"
	width="468";
	height="60";
	}


	document.write('<center>');
	document.write('<OBJECT CLASSID=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=' + width + ' height=' + height + ' CODEBASE=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0\">');
	document.write('<PARAM NAME=\"MOVIE\" VALUE=\"' + flash + '\">');
	document.write('<PARAM NAME=\"MENU"\  VALUE=\"false\"/>');
	document.write('<PARAM NAME=\"PLAY\" VALUE=\"true\">');
	document.write('<PARAM NAME=\"LOOP\" VALUE=\"true\">');
	document.write('<PARAM NAME=\"QUALITY\" VALUE=\"high\">');
	document.write('<EMBED SRC=' + flash + ' width=' + width + ' height=' + height + ' PLAY=\"true\" LOOP=\"true\" QUALITY=\"high\" TYPE=\"application/x-shockwave-flash\" PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\">');
	document.write('</EMBED>');
	document.write('</OBJECT>');
	document.write('</center>');

}

// CODIGO DE ROLLOVER DE COLOR DE CELDAS
function cOvr(src) {
if (!src.contains(event.fromElement)) {
src.style.cursor = 'hand';
}
}

function cOut(src) {
if (!src.contains(event.toElement)) {
src.style.cursor = 'default';
}
}

function mClk(src) {
if(event.srcElement.tagName=='TD'){
src.children.tags('A')[0].click();
}
}