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(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';
		  
	  }
	//alert(sPath);
	return sPath;
}