// JavaScript Document

/** 
 * Create a mailto link in your document 
 * @param {String} container The id of the container for your link 
 * @param {String} addr The portion to the left of the 'at' symbol 
 * @param {String} domain The portion to the right of the 'at' symbol 
 * @param {String} text The text to appear for the link 
 */ 
function mailto(container,addr,domain,text,subject) { 
 var n = document.getElementById(container); 
 if(!n ) return; 
 n.innerHTML = "<a href='mailto:" + addr + "@" + domain + "?subject=" + subject + "'>" + text + "</a>" 
}; 
