$(document).ready(function() {
	/*REPLACES SPELT OUT EMAIL ADDRESSES WITH
	  MAILTO LINKS*/
	//alert($('.coms').length + ' elements!');
	var html;
	//examine addresses
		$('.coms').each(function(){
			//display the html inside the coms span
			//alert($(this).html());
			html = $(this).html();
			html = html.replace(/dot/ig, ".");
			html = html.replace(/\[at\]/ig, "@");
			html = html.replace(/\s/g, "");
			
			// is email valid? 
	            if (/^[^@]+@[a-z0-9]+([_\.\-]{0,1}[a-z0-9]+)*([\.]{1}[a-z0-9]+)+$/.test(html)) { 
	                // change into a real mailto link 
	                html = "<a href='mailto:" + html + "'>" + html + "</a>";
	            } 
			//replace original html with new
			$(this).replaceWith(html);
		});
});