
/**
 *
 * Función para reemplazar los caracteres o cadenas del texto incluido en la búsqueda
 * antes de que sea interpretado en la página sigueinte
 *
 *
 */


function limpiaTxtCadena(strTexto){

        /*
         * array a modificar. incluir o excluir cadenas o caracteres para que sean escapados
        */
	var wordsStop = new Array ("<",">","&lt;","&gt;","&lt","&gt");


        var strTextoLow = "";
        var strTextoTemp = "";
        for(var y=0;y<wordsStop.length;y++) {
          //strTexto = strTexto.toLowerCase().replace(wordsStop[y],'');
          strTextoLow = strTexto.toLowerCase();
          fIndex = strTextoLow.indexOf(wordsStop[y]);
          //alert(fIndex);
          while (fIndex>=0){
            strTexto = eliminaCadena(strTexto, wordsStop[y],fIndex);
            //alert("strTexto:"+strTexto);
            strTextoLow = strTexto.toLowerCase();
            fIndex = strTextoLow.indexOf(wordsStop[y]);
          }
        }
        return strTexto;
}
