function externalLinks(){if(!document.getElementsByTagName){return;}var anchors=document.getElementsByTagName("a");var anchors_length=anchors.length;for(var i=0;i<anchors_length;i++){var anchor=anchors[i];if(anchor.getAttribute("href")&&anchor.getAttribute("rel")=="external"){anchor.onclick=function(){var r=confirm("This link will take you outside of the First Nations Bank Website.");if(r==true){return launchWindow(this.href);}else{return false;}}}}}function externalFormLinks(){if(!document.getElementsByTagName){return;}var forms=document.getElementsByTagName("form");var forms_length=forms.length;for(var i=0;i<forms_length;i++){var form=forms[i];if(form.action&&form.className=="external"){form.onsubmit=function(){page=document.getElementById('bank_login');page_use=page.options[page.selectedIndex].value;if(page_use=='easyweb'){var r=confirm("You are now leaving First Nations Bank's website and entering the EasyWeb website of our service provider, The Toronto-Dominion Bank. Despite the identification of TD Canada Trust as the financial institution on these sites, the accounts and/or investments that you are accessing here are held by and are the responsibility of First Nations Bank.");if(r==true){form.setAttribute("target","_blank");form.submit();return false;}else{return false;}}else if(page_use=='webbroker'){var r=confirm("You are now leaving First Nations Bank's website and entering the WebBroker website of our service provider, The Toronto-Dominion Bank. Despite the identification of TD Waterhouse as the financial institution on these sites, the accounts and/or investments that you are accessing here are held by and are the responsibility of First Nations Bank.");if(r==true){form.setAttribute("target","_blank");form.submit();return false;}else{return false;}}}}}}function launchWindow(href){if(href==""||!href){return;}window.open(href);return false;}externalLinks();externalFormLinks();
