<!-- JavaScript Document

function abreVentana(URL, nombreVentana, ancho, alto, posX, posY) {
	if (typeof(nombreVentana)=="undefined") { nombreVentana = 'reparex' + numeroAleatorioEntero(100);	}
	if (typeof(ancho)=="undefined")         { ancho = 450; }
	if (typeof(alto)=="undefined")          { alto  = 300; }
	if (typeof(posX)=="undefined")          { posX = Math.round((screen.width / 2) - (ancho / 2)); }
	if (typeof(posY)=="undefined")          { posY = Math.round((screen.height / 2) - (alto / 2)); }
//	alert('URL: '+URL+'\nNombreVentana: '+nombreVentana+'\nAncho: '+ancho+'\nAlto: '+alto+'\nPosX: '+posX+'\nPosY: '+posY);
	window.open(URL, nombreVentana, 'toolbar=no,scrollbars=1,location=0,statusbar=1,status=1,menubar=0,resizable=0,width='+ancho+',height='+alto+',left = '+posX+',top = '+posY);
}

function numeroAleatorioEntero(cotaSuperior)  {
var ran_sinRedondeo=Math.random()*cotaSuperior;
return Math.round(ran_sinRedondeo); 
}

function validaClientes() {
	document.getElementById('fClientes').submit();
}

function buscarTexto() {
	document.getElementById('fBuscador').submit();
}

function window.onbeforeprint(){ 
noprint.style.visibility = 'hidden'; 
noprint.style.position = 'absolute';
}
function window.onafterprint(){ 
noprint.style.visibility = 'visible'; 
noprint.style.position = 'relative'; 
}

// -->

