﻿// Archivo JScript

function miventana(url,ancho,alto,scroll)
{
 if (scroll==undefined)
 {
           scroll=1;
 } 
    var ventana;
     var top = (screen.height/2) - (alto/2);
    var left = (screen.width/2) - (ancho/2);
   ventana=window.open(url,url.substring(0,url.lastIndexOf(".")),"width="+ancho+",height="+alto+",resizable=0,toolbar=no,menubar=no,scrollbars="+scroll+",status=0,top=" + top +",left=" + left );
    
}


function maximoCaracteres(text,long) {
	var maxlength = new Number(long); 
	if (text.value.length > maxlength){
		text.value = text.value.substring(0,maxlength);
		alert(" Solo " + long + " caracteres permitidos");
	}
}

function seleccionarFila(fila,chkn){
var c=document.getElementById(chkn)
    if(c.checked==true)
    {
   document.getElementById(fila).style.backgroundColor="#e3f0fc";
    document.getElementById(fila).style.color="#2d6387";   
     }
    else{
    document.getElementById(fila).style.backgroundColor ="#fff";
    document.getElementById(fila).style.color ="#000";
     }
}



