var Lv_Mensaje="         Interagua - Portal de Transparencia      ";

function AbrirVentana(Url)//permite abrir ventanas para presentar el mensaje
{
	 Lv_VentanaMsj = window.open(Url, "Lv_VentanaMsj", "top=150,left=150, toolbar=0, width=600, height=350");
}
function AbrirVentanaRef(Url)//permite abrir ventanas de las referenciales
{
	 Lv_VentanaRef = window.open(Url, "Lv_VentanaRef", "top=150,left=150, toolbar=0, width=800, height=500");
}
function AbrirVentanaTelefono(Url)//permite abrir ventanas para presentar el mensaje
{
	 Lv_VentanaFono = window.open(Url, "Lv_VentanaFono", "top=150,left=150, toolbar=0, width=500, height=350");
}
function AbrirVentanaInformacion(Url)//permite abrir la ventana de solicitu de información
{
Lv_VentanaInfor= window.open(Url, "Lv_VentanaInfor", "top=150,left=150, toolbar=0, width=700, height=525");
}
function AbrirVentanaComentario(Url)//permite abrir la ventana de solicitu de información
{
Lv_VentanaComen= window.open(Url, "Lv_VentanaComen", "top=60,left=150, toolbar=0, width=485, height=630");
}
function LTRAF0003_VerComentario(Url)//permite abrir la ventana de solicitu de información
{
Lv_LTRAF0003= window.open(Url, "Lv_LTRAF0003", "top=60,left=150, toolbar=0, width=485, height=630");
}
function LTRAF0004_Busqueda(Url)//permite abrir la ventana de solicitu de información
{
Lv_LTRAF0004= window.open(Url);
}
function CerrarVentana()
{
window.close();
}
function CerrarTodas()
{
  if (Lv_VentanaMsj)
    Lv_VentanaMsj.close()
  if (Lv_VentanaFono)
	Lv_VentanaFono.close()
  if (Lv_VentanaInfor)
    Lv_VentanaInfor.close()
  if (Lv_VentanaComen)
    Lv_VentanaComen.close()
  if (Lv_LTRAF0004)
    Lv_LTRAF0004.close()
}
function CerrarTodasAdmin()
{
  if(Lv_VentanaRef)
    Lv_VentanaRef.close()
  if (Lv_LTRAF0003)
    Lv_LTRAF0003.close()
}
function ventana() {
  alert ('La carga o descarga de este tipo de archivos puede tomar varios minutos');
}
function scroll() {
   window.status=Lv_Mensaje;
   Lv_Mensaje=Lv_Mensaje.substring(1,Lv_Mensaje.length)+Lv_Mensaje.charAt(0);
   window.setTimeout("scroll()", 200);
}
function color_lineas(tr, mode) 
	{
		if (mode == 0) 
		{
			boxWhiteCont = tr.className;
			tr.className = 'RegistroActual';
		} 
		else tr.className = 'RegistroBlanco';
	}
//////////aqui valido que lo que se ingrese en un capo sea solo enteros//////////////////////
function esEntero(e) {
var charCode
if (navigator.appName == "Netscape") // Veo si es Netscape o Explorer (mas adelante lo explicamos)
charCode = e.which // leo la tecla que ingreso
	else
	
	charCode = e.keyCode // leo la tecla que ingreso
	status = charCode 
				if ( ( charCode >=48 && charCode <= 57) )  // Chequeamos que sea un numero comparandolo con los valores ASCII
				return true
				else	
				alert("Error en este campo debes ingresar \nsolo enteros")			
	

return false
}
