// JavaScript Document

function leavingsite(thehref)
    {   //ask the question on the popup
        var answer = confirm ("Usted est\u00E1 por departir este sitial. \u00BFEst\u00E1 seguro(a) que desea continuar?")
        if (answer)
        //this will return true to the href and navigate to the link
        return true;
        else
        //this will return false to the href and prevent the navigation from going to the link
        return false;
    }