// common script for awildernessvoice.com
// send link to a friend

function mailPage(type)
{
switch(type) {
case 1:

	mail_str = "mailto:?subject=View this web page: " + document.title;
	mail_str += "&body=I recommend this page from A Wilderness Voice in Search of a City -- ";
	break;
default:
	mail_str = "mailto:?subject=Check out this article: " + document.title;
	mail_str += "&body=I think you will enjoy this article from A Wilderness Voice in Search of a City -- ";
}

mail_str += location.href;
location.href = mail_str;
}


// send mail and make it difficult for robots to figure out the addresses
eNames = new Array('michaeldc110', 'georgedvs14', 'awildernessvoice1', 'awildernessvoice1'); 


function setMail(name) {
	var sAt = '@';
	mail_str = "ma" + "ilto:" + eNames[name];
	mail_str += sAt + "gma";
	mail_str += "il.com";

	if(name == 2) {
		mail_str += "?subject=Subscribe";
		mail_str += "&body=My name is:  ";
	}
	if(name == 3) {
		mail_str += "?subject=Remove";
		mail_str += "&body=My name is:  ";
	}	
	location.href = mail_str;
}
