
function checkURL (link) {

    if (link.href.match(/search\/en\//)) {
       link.href = "http://www.who.int/search/en";
    } else {
       link.href = link.href.replace(/.*?\/tdr\//, "http://www.who.int/tdr/");
    }

    link.target = "tdr";
    return confirm("You are about to connect to the Internet; are you sure you wish to proceed?");	
}
