<!-- //

function valida_buscar(theform)
{		
	if (theform.buscar.value.length < 1)
	{
		alert("Por favor, ingrese un texto para buscar");
		theform.buscar.focus();
		return (false);
	}
	return (true);
}

function ismail(obj)
{
	var ValorCampo;

	ValorCampo=obj.value;
	if(ValorCampo.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1){
		return(false);
	}else{
		return(true);
	}
}

function cambiar_color_over(celda,color)
{
   celda.style.backgroundColor=color;
}

function cambiar_color_out(celda,color)
{
   celda.style.backgroundColor= color;
} 

function ventana(path,pxancho,pxalto)
{
	var winmail;
	var TextLink = path;
	if (pxancho == null){pxancho = 650;}
	if (pxalto == null){pxalto = 460;}
		
	if (window.screen) 
	{
		var ancho = window.screen.width;
		var alto = window.screen.height;
			
		ancho = ancho - pxancho;
		ancho = ancho /2;
			
		alto = alto - pxalto;
		alto = alto /2;
			
		var propiedades = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,width="+pxancho+",height="+pxalto+",top="+alto+",left="+ancho;
		winmail = window.open(TextLink, "_blank", propiedades);
		winmail.focus();
	}
}
function mostrar_subir(id)
{
	var cantidad = document.getElementsByTagName('div').length;
	cantidad++;
	
	for(m=1; m < cantidad; m++)
	{
		if (m == id)
		{
			document.getElementById("subir"+id).style.visibility="visible"; 
		}else{
			document.getElementById("subir"+m).style.visibility="hidden"; 
		}
	}
}
function isnumeric(sText)
{
   var ValidChars = "0123456789,";
   var IsNumber=true;
   var Char;
 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return IsNumber;
}
// -->
