<!-- Begin

//Copyright 2003 - George Plumley  george@bravenewniche.com
//Please email the author for permission to use - I usually say yes :-)

//The makeLive number refers to the kind of email link it will be.
//1 = just the email address with no link or class style
//2 = the opening portion of an A HREF link without a class style (use around images, etc.)
//3 = same as 2, but with class style
//4 = the email address as the text of the mailto link, with a class style
//0 or no number = same as 4, but with no class style
//endBit = domain suffix (.com)   whereat = domain name (yahoo)  toWhom = username (joesmith)

function eThis(endBit,whereAt,toWhom,makeLive,theClass) {

var theAddress;
var thePartial;
var thePartialClass;
var theFull;
var theFullClass;

theAddress = toWhom+"@"+whereAt+"."+endBit;

if (makeLive == "1") {
	document.write(theAddress);
}

else if (makeLive == "2") {
	thePartial = '<a href="mailto:'+theAddress+'">';
	document.write(thePartial);
}

else if (makeLive == "3") {
	thePartial = '<a class="'+theClass+'" href="mailto:'+theAddress+'">';
	document.write(thePartial);
}

else if (makeLive == "4") {
	theFullClass = '<a class="'+theClass+'" href="mailto:'+theAddress+'">'+theAddress+'</a>';
	document.write(theFullClass);
} 

else {
	theFull = '<a href="mailto:'+theAddress+'">'+theAddress+'</a>';
	document.write(theFull);
} 


}


//This function is to protect the recipient email in a form

function includeEmail() {

var f = document.RequestForm;
var name = "lisa";
var at = "@";
var url = "weconnect.ca";
f.recipient.value = name + at + url;
return true;

}



function buttonBuilder(paypalText,itemPrice) {

document.write ('<!-- PAYPAL BUTTON BEGINS -->');
document.write ('<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="padding:0;border:0;margin:0;" name="PayPalPurchase">');
document.write ('<input type="hidden" name="cmd" value="_xclick">');
document.write ('<input type="hidden" name="business" value="george@bnnmediacoaching.com">');
document.write ('<input type="hidden" name="item_name" value="' + paypalText + '">');
document.write ('<input type="hidden" name="return" value="http://www.bcwf.bc.ca/about/donationthanks.html">');
document.write ('<input type="hidden" name="amount" value="' + itemPrice + '">');
document.write ('<input type="hidden" name="cn" value="Comments">');
document.write ('<input type="hidden" name="currency_code" value="CAD">');
document.write ('<input type="hidden" name="tax" value="0">');
document.write ('<input type="hidden" name="shipping" value="0.00">');
document.write ('<input type="hidden" name="lc" value="CA">');
document.write ('<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it\'s fast, free and secure!">');
document.write ('</form>');
document.write ('<!-- PAYPAL BUTTON ENDS -->');

}



// End -->
