// 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
eNames = new Array('michaeldc1', 'gad2001', 'awildernessvoice'); 


function setMail(name) {
	var sAt = '@';
	mail_str = "ma" + "ilto:" + eNames[name];
	mail_str += sAt + "veri";
	mail_str += "zon.net";
	if(name == 2) {
		mail_str += "?subject=Subscribe";
		mail_str += "&body=My name is:  ";
	}
	location.href = mail_str;
}






