/*FUNCIONES PARA DAR COLOR A LAS FILAS*/
	var old_color="";
	function color_foco(nombre)
	{
		old_color=document.getElementById(nombre).className;
		document.getElementById(nombre).className="tr_lista_foco_mano";
	}
	function color_focolost(nombre)
	{document.getElementById(nombre).className=old_color;}
/*FUNCION QUE ABRE UN POPUP DE LA FORMA QUE QUIERAS*
url = determina la ruta del archivo que se quiere abrir en el popup, URL DEBE ESTA PRESENTE EN SU PROYECTO
ancho = define el ancho de la pagina
alto = define el alto de la imagen
full = si full es = a 1, el popup se abrira a pantalla completa.... si es cero o blanco se abrira al tamaņo que determina ancho y alto
centrado = si centrado es = a 1, el popup se centrara en tu pantalla.... si es cero o blanco se abrira en el top de la pantalla
scrollb= 1 = con popup con scroll...si es cero o blanco estara desabilitado
resize= 1 popup que se puede agrandar...si es cero o blanco estara desabilitado
*/
function popup_configurable(url,ancho,alto,full,centrado,scrollb,resize,title)
{
	var popup;
	var left_point;
	var top_point;
	var screen_height 	= screen.height;	/*ENTREGA EL ALTO DE SU PANTALLA*/
	var screen_width 	= screen.width; 	/*ENTREGA EL ANCHO DE SU PANTALLA*/
	
	/*VALIDAMOS SI EL POPUP CONTARA CON PROPIEDADES*/
		if(scrollb!=1){scrollb=0;}
		if(resize!=1){resize=0;}
		
	/*ABRIMOS EL POPUP*/
		popup=window.open(url,title,"width="+ancho+",height="+alto+",scrollbars="+scrollb+",resizable="+resize);
		popup.focus();
	
	/*VALIDAMOS SI SE DEBE CENTRAR EL POPUP, SINO QUEDARA SIEMPRE EN EL TOP=0 LEFT=0*/
		if(centrado==1)
		{
			ancho	= ancho*1;
			alto	= alto*1;
			left_point = parseInt(screen.availWidth/2.0)-(ancho/2.0);
			top_point = parseInt(screen.availHeight/2.0)-(alto/2.0);
			popup.moveTo(left_point,top_point);
		}
		else{popup.moveTo(0,0);}

	/*DEJAMOS EL POPUP FULLSCREAM*/
		if(full==1){popup.resizeTo(parseInt(screen.availWidth),parseInt(screen.availHeight));}
}    
/*ACEPTAR SOLO NUMEROS*/
function solonumeros(evento)
{
//	alert("validar solonumeros");
  //ejemplo <input type="text" onkeypress="return solonumeros(event)" />
  // key = 35 (Fin)
  // Key = 36 (Inicio)
  // Key = 37 (<-)
  // Key = 38 (Fecha Arriba)
  // Key = 39 (->)
  // Key = 40 (Flecha Abajo)
  // Key = 46 (Supr)  
  
  var key = evento.keyCode ? evento.keyCode : evento.which;
  //alert(key);
  if (key>32){
   if(key>=48 && key<= 57 || key==46 || key==35 || key==36  || key==37 || key==38 || key==39 || key==40){
    return
   }else{
    return false;
  }
 }
}

