function ValidaFrmBusqueda(Form){
 if(Form.texto.value == ""){
	   alert("Debe Indicar los criterios de busqueda");
	   Form.texto.focus();
	   return false;
  }
  flag=formato(Form.texto.value);
  if(flag) 
	return true;
  else {
    Form.texto.value='';
    Form.texto.focus();
	return false;
  }
}

function formato(cadena){
	var flag=true;
	var ind=0;
	for(i=0;i<cadena.length;i++){
		ind=cadena.charCodeAt(i);
		if(ind != 241)
			if(ind<48 || ind>57 && ind<65 || ind>90 && ind<96){
				if(ind!=32 && ind!=43 && ind!=45 && ind!=34){
					alert("Valor no aceptado. Verifique que el texto no contenga caracteres especiales (@,%,$,#,etc...)")
					i=cadena.length;
					flag=false;
				}
		}
	}
	return flag;
}

function popUp(file,w,h){
	var PopLeft = (window.screen.width-w)/2;
	var PopTop = (window.screen.height-h)/2;
	height=parseInt(h);
	width=parseInt(w);
	nuevawin = window.open(file, 'new','width=' + width + ',height=' + height + ',top=0,left=0,scrollbars=no,resizable=no,toolbar=no,menu=no,top='+PopTop+',left='+PopLeft); //+ ', topmargin=0, leftmargin=0, rightmargin=0, bottommargin=0, marginheight=0, marginwidth=0);
}

var nav4 = window.Event ? true : false;
function acceptNum(evt){
// NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57
var key = nav4 ? evt.which : evt.keyCode;
	return (key <= 13 || (key >= 48 && key <= 57));
}



function precargar()
{

var imagenes= new Array("imagenes/bullet1.gif","imagenes/bullet2.gif","imagenes/bullet3.gif","imagenes/bullet4.gif","imagenes/bullet5.gif");


	for(i=0;i<imagenes.length;i++)
	{
		imagenes[i]=new Image();
	}
}