// 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, Mayor, or Council members is a public record and is subject to disclosure upon request.  PLEASE  do not e-mail time sensitive information, do not use e-mail for emergencies , and do not use e-mail  to report suspicious activity.');"); 
		}
	}
	
	
}