/* * base.js * k. walters * kennethwalters@lostghost.com */window.onload = doLinkBehaviors;function doLinkBehaviors() {	if (!document.getElementsByTagName) return false;	var links = document.getElementsByTagName("a");	for (var i=0; i < links.length; i++) {		if (links[i].rel.match("external")) {			attachExternal(links[i]);		} else if (links[i].rel.match("pdf")) {			attachPDF(links[i]);		} else if (links[i].rel.match("application")) {			attachApply(links[i]);		}	}}function attachExternal(elem) {	elem.onclick = function() {		if (confirm("You are now leaving Seacoast Marine Finance's website. Seacoast Marine Finance has provided this link for your convenience, but does not endorse and is not responsible for the content, links, privacy policy, or security policy of this website. If you do not wish to leave Seacoast Marine Finance's Website, please select 'cancel'.")) {			window.open(this.href);			}		return false;	}}function attachPDF(elem) {	elem.onclick = function() {		window.open(this.href);		return false;	}}function attachApply(elem) {	elem.onclick = function() {		window.open(this.href);		return false;	}}