/* author: Dan Cartier */
/* Creation date: 9/10/2004 */
//
// email 'say no to spam' function
//
// domain variables
var rest;
var rest1 = "at_someDomain_dot_com";
var rest2 = "at_DansWebSpot_dot_com";
// variables for the 'dude' parameter
var AskDan = "AskDan";
var AskDanHelpRequest = "AskDan";
var Webmaster= "Webmaster";
var Photos = "Photos";
var DansWebSpot = "DansWebSpot";
var Info = "Info";
// variables for the 'topic' parameter
//var sbj;
var adhr = "'Ask Dan' Help Request";
var dwsc = "Dan's Web Spot Contact";
var phacc = "Request for photo access";
var phreq = " Request for photo files";

function saynotospam(dude,topic){

if (dude == Webmaster || dude == AskDanHelpRequest || dude == Photos || dude == DansWebSpot || dude == Info){
rest = rest2;
}else{

rest = rest1;
}
if (topic == adhr || topic == dwsc || topic == phreq || topic == phacc){
}else{

return false;
}
	//alert("dude=" + dude + " subject line=" + topic);
var re= /at_/gi;
var first = rest.replace(re,'@');
var re= /_dot_/gi;
var second = first.replace(re,'.');
var last = dude + second;
var the_link="mai" + "lto" +":" + last + "?subject=" + topic;
	//alert("the_link=" + the_link);
window.location=the_link;
}
