Javascript that removes url titles from mail to links

I have some javascript that put url titles “You are leaving” on external links, everything is working fine. Except I do not want url titles on my mailto links.

function extlinkTitle() {
var mat=;
var anc=document.getElementsByTagName(‘a’);
for(c=0;c<anc.length;c++){
mat[c]=anc[c].href.match(/quicklinks*/g);
if(mat[c]==null){
anc[c].title=‘You Are Leaving Quicklinks’;
}
}
}
window.addEventListener?
window.addEventListener(‘load’,extlinkTitle,false):
window.attachEvent(‘onload’,extlinkTitle);

CSS Code
a {
display:inline-block;
padding-right:14px;
padding: 0 20px 0 0
}
a[href^=“http://www”] {
background: url(“http://quicklinks/images/link_icons/extlink.gif”) no-repeat 100% 0;
padding: 0 20px 0 0
}

a[href^=“http://www”]:hover:after {
content:" - External - " attr(title);
}
a[href^=“mailto:”] {
line-height:18px;
background: url(“http://quicklinks/images/link_icons/mail.gif”) no-repeat 100% 0;
padding: 0 20px 0 0;
}