﻿function btc()
{
    delCookie("s","/","terra.es");
    delCookie("s","/","webmail.terra.es");
    delCookie("s","/","prepro.terra.es");
    delCookie("s","/","webmail.prepro.terra.es");    
    //delCookie(".ASPXAUTH","/","terra.es");    
    document.cookie = ".ASPXAUTH=; path=/";
    //alert("pasa");
    location.href=location;
}

function bc()
{
    delCookie("TIDR","/","terra.es"); 
       
    location.href=location;
}

function delCookie( name, path, domain ) 
{
  if (getCookie(name))
    document.cookie = name + "=" + ((path) ? ";path=" + path : "") + ((domain) ? ";domain=" + domain : "" ) + ";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}

function getCookie(NameOfCookie){
  var results = document.cookie.match(NameOfCookie + '=(.*?)(;|$)');
  if (results)
    return (unescape(results[1]));
  else
    return null;
} 
if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();