addLoadEvent(function() {
  /*					  
  var tbls = document.getElementsByTagName("table");
  for (var i=0; i<tbls.length; i++) {
    if (hasClassName(tbls[i], "partners")) {
      var lnks = tbls[i].getElementsByTagName("a");
      for (var j=0; j<lnks.length; j++) {
        lnks[j].onclick = function() {
          alert("You are now departing from the regulatory site of Direct Financial Planning Ltd.\nDirect Financial Planning Ltd is not responsible for the accuracy of the information contained within the linked site.");
          return true;
        }
      }
    }
  }
  */
  var links = document.getElementsByTagName("a");
  var base_url = document.location.protocol + '//' + document.location.hostname;
  if (base_url.substr(base_url.length-1, 1) != '/') { base_url += '/'; }
  for (var i=0; i<links.length; i++) {
    if (links[i].href.substr(0, base_url.length) != base_url) {
	  //if (links[i].href.substr(0,40) != "http://www.directfinancialplanning.co.uk") {
		links[i].onclick = function() {
          	alert("You are now departing from the regulatory site of Direct Financial Planning Ltd.\n\nNiether Direct Financial Planning Ltd or Personal Touch Finanacial Services is responsible for the accuracy of the information contained within the linked site.");
         	 return true;
       }
	 }
  }
});