// Email functions

// This function outputs the e-mail <a href= tag for dot com
// inputs: two email address strings
  // output: nothing
  // Action: none
// return: complete mailto <a href= html line

function MailCom(add1, add2, text) 
{
	var atsign = "@";      // Just the at @ sign
	var dotcom = ".com";   // The ".com" of my email address
	var Mail2 = "mailto:"; // The mailto: part of the <a href line

	var address = add1+atsign+add2+dotcom;	// complete mail address

	// The next line is the onMouseOver line placed into the 
	// browsers status line. It simply says "Send us an Email"

	var Ovr = " onMouseOver=\"window.status='Send us an Email'; return true;\"";

	// The next line clears the browsers status line when the
	// mouse is no longer over our link text.

	var Out = " onMouseOut=\"window.status=''\"";

	// This line returns the completed <a href=mailto line to our web page
	// and prints it into our html page as if it were always there.

	return(document.write("<a href=",Mail2+address+Ovr+Out, ">", text, "</a>"));
}
//

// This function Outputs the e-mail <a href= tag for dot net
// inputs: two email address strings
  // output: nothing
  // Action: none
// return: complete mailto <a href= html line

function MailNet(add1, add2, text) 
{
	var atsign = "@";      // Just the at @ sign
	var dotnet = ".net";   // The ".net" of email address
	var Mail2 = "mailto:"; // The mailto: part of the <a href line

	var address = add1+atsign+add2+dotnet;	// complete mail address

	// The next line is the onMouseOver line placed into the 
	// browsers status line. It simply says "Send us an Email"

	var Ovr = " onMouseOver=\"window.status='Send us an Email'; return true;\"";

	// The next line clears the browsers status line when the
	// mouse is no longer over our link text.

	var Out = " onMouseOut=\"window.status=''\"";

	// This line returns the completed <a href=mailto line to our web page
	// and prints it into our html page as if it were always there.

	return(document.write("<a href=",Mail2+address+Ovr+Out, ">", text, "</a>"));
}
//

// This function Outputs the e-mail <a href= tag for dot org
// inputs: two email address strings
  // output: nothing
  // Action: none
// return: complete mailto <a href= html line

function MailOrg(add1, add2, text) 
{
	var atsign = "@";      // Just the at @ sign
	var dotorg = ".org";   // The ".net" of email address
	var Mail2 = "mailto:"; // The mailto: part of the <a href line

	var address = add1+atsign+add2+dotorg;	// complete mail address

	// The next line is the onMouseOver line placed into the 
	// browsers status line. It simply says "Send us an Email"

	var Ovr = " onMouseOver=\"window.status='Send us an Email'; return true;\"";

	// The next line clears the browsers status line when the
	// mouse is no longer over our link text.

	var Out = " onMouseOut=\"window.status=''\"";

	// This line returns the completed <a href=mailto line to our web page
	// and prints it into our html page as if it were always there.

	return(document.write("<a href=",Mail2+address+Ovr+Out, ">", text, "</a>"));
}
