/* ********************* EMAIL ** EMAIL ***************** */
/* ********************* EMAIL ** EMAIL ***************** */
/* ********************* EMAIL ** EMAIL ***************** */

/*
 * Functions used to mask email addresses throughout website.
 * Variations on subject line, body or email address style
 */



function mkaddrexternal(addr) {
  document.write('<a href=\"mailto:' + addr +
 '\">' + addr + '</a>');

}

function mkaddr5(addr,subj,body,label) {
  document.write('<a class="menutab" href=\"mailto:' + addr
	+ '?subject=' + subj + '&body=' + body + '\">' 
	+ label + '</a>');
}

function mkaddr4(addr,subj,body,label) {
  site = "midwestlakes.org";
  document.write('<a href=\"mailto:' + addr + '@' + site 
	+ '?subject=' + subj + '&body=' + body + '\">' 
	+ label + '</a>');
}

function mkaddr2(addr,label) {
  site = "midwestlakes.org";
  document.write('<a href=\"mailto:' + addr + '@' + site 
        + '\">' + label + '</a>');
}

function mkaddr3(addr,label) {
  site = "midwestlakes.org";
  label = "Email Us"
  document.write('<a href=\"mailto:' + addr + '@' + site 
        + '\">' + label + '</a>');
}

function mkaddr(addr) {
  site = "midwestlakes.org";
  mkaddr2(addr,addr + '@' + site);
}

function protectaddr(addr,domain,label) {
	document.write('<a href=\"mailto:' + addr + '@' + domain 
		+ '\">' + label + '</a>');
}

function protectaddr2(addr,domain) {
	document.write('<a href=\"mailto:' + addr + '@' + domain 
		+ '\">' + addr + '@' + domain + '</a>');
}
 

function emailafriend(body,url,lbl) {
    document.write('<a href="mailto:?body='+body+'  See more details and give directly to this project at http://www.globalgiving.com/'+url+'">'+lbl+'</a>');
}


function emailprofile(subject,body,url,lbl) {
    document.write('<a href="mailto:?subject=' + subject + '&body=' + body + escape(url) + ' ">'+lbl+'</a>');
}