// can't load the fucntion this way when menu navigation is present
// window.onload = findLinks;

function findLinks(){
	// variables
	var dlink = document.getElementsByTagName("A");
	var searchStr = new RegExp("mailto:");

	// loop through all links and test if the href contains mailto: -- if true then add and onclick event
	for (var i=0; i<dlink.length; i++) {
		if (searchStr.test(dlink[i].getAttribute("href"))){
		dlink[i]["onclick"] = new Function("return confirm('Please be aware that email with city staff or council members is a public record and is subject to disclosure upon request.');"); 
		}
	}
	
	
}