// Heart-Fire Healing, Javascript Library
// JavaScript Document

// email defaults
	var aDfltUser = "information";
  var aDfltHost = "anthonycoopersaddler.com";

// set href to mail-to so robots can't scan address in web page
/* use as: <a href="javascript:jmailto('mailUser','Mail Subject', 'hostdomain.com')">click-here-tag</a>
	can leave off unwanted parameters; defaults to global defaults (above) & no subject */

function jmailto(aWho, aSubj, aHost) {
		if (jmailto.arguments.length == 0) { // aWho parm not supplied
		   aWho = ""
		};
		if (aWho == "") { // parm not supplied or supplied empty
           aWho = aDfltUser
		};
        var aLink = aWho + "@";

		if (jmailto.arguments.length < 3) { // aHost parm not supplied
			aHost = ""
		};
		if (aHost == "") { // parm not supplied or supplied empty
			aHost = aDfltHost
		};
        aLink = aLink + aHost;
		aLink = "mail" + "to:" + aLink;

		if (jmailto.arguments.length > 1) { // aSubj parm supplied
			if (aSubj != "") {
		    	aLink = aLink + "?Subject=" + escape(aSubj)
		 	}
		};
		//alert(aLink)
		parent.location.href = aLink
		/* return false */
}

// write mail addr in pieces so robots can't scan address in web page
/* use as: <a href="javascript:jmailto('user','subject', hostdomain.com)">
        <script type="text/javascript">jshowmail('user','hostdomain.com');</script></a>
	can leave off unwanted parameters; defaults to global variables (above) */

function jshowmail(aWho, aHost) {
		if (jshowmail.arguments.length == 0) { // aWho parm not supplied
           aWho = ""
		};
		if (aWho == "") { // parm not supplied or supplied empty
           aWho = aDfltUser
		};
        var aLink = aWho + "@";

		if (jshowmail.arguments.length < 2) { // aHost parm not supplied
			aHost = ""
		};
		if (aHost == "") { // parm not supplied or supplied empty
			aHost = aDfltHost
		};
        aLink = aLink + aHost;

		// alert(aLink);
		document.write(aLink)
		/* return false */
}


// end of hfh_jslib.js
