function ProcesarBusqueda()
{
    var theForm = document.forms['Form'];
    if (!theForm) {
        theForm = document.Form;
    }
    
    //Caracteres invalidos
    var TextoBusqueda = theForm.SearchTermArt.value;
    TextoBusqueda = TextoBusqueda.replace(":","");
    TextoBusqueda = TextoBusqueda.replace("&","");
    TextoBusqueda = TextoBusqueda.replace("*","");
    TextoBusqueda = TextoBusqueda.replace(".","");
    TextoBusqueda = TextoBusqueda.replace("+","");
    
    if (TextoBusqueda == '')
        alert('Debe ingresar un texto v\u00E1lido para la b\u00FAsqueda.')
    else
        window.location.href= '/tabid/37/SearchTerm/' + TextoBusqueda + '/Default.aspx';
}

/* modifica variable Path de un nivel para agregarle '/index' */
function setPathToCertifica(path) {
    //alert("llega: " + path);
    var sPath = path;
    var param = sPath.split("/");
    var i = 3;
    if (parent.location.host == 'localhost') {
        i = 4;
    }
    if (param.length == i) {
        //alert(param);
        //para unificar se considera default como home por ende a default se lo setea en '//'
        var token = param[i - 2];
        if (token.toLowerCase() == 'default') sPath = '//';
        if (sPath != '//') sPath = sPath + 'index';
        if (sPath == '//') sPath = "/home/index/";

    }
    	/* CV: 20/10/2011 - Modifica la URL, si tiene mas de 5 fragmentos la corta para el el p*/	
	    var fragmento = sPath.split("/");
  	    if (fragmento.length > 4) 
	      {
	          sPath = fragmento[1] + "/" + fragmento[2] + "/" + fragmento[3] ;
	          // CV: 20/10/2011 - Esta forma original que se pasaba hasta el titulo del articulo
		      //sPath = fragmento[1] + "/" + fragmento[2] + "/" + fragmento[3] + "/" +     fragmento[4] ;
	      }
    //alert(sPath);
    return sPath;
}
