<!--
// Hide

var gHostName		= "RopeMarks.com";
var gUserBob		= "bob";
var gUserChantal	= "chantal";
var gUserInfo		= "info";
var gUserWorkshop	= "workshop";
var gUserWebmaster	= "webmaster";


// ---
// Create a clickable "mailto:" link that displays the e-mail address
//
// thoughts: 
//	spider cannot process scripts
//	using "mailto" opens the clients mail client
//	if "mailto" is not properly configured the e-mail address is visible.
//
function mailTo( /* string */username, /* string */subject) {

	var hostname = gHostName;

	document.write( 
		  '<a ' 
		+ 'href="' + 'mail' + 'to:' + username + '@' + hostname + '?subject=' + subject + '">' 
		+ username + '@' + hostname
		+ '</a>' 
	);
}

function mailToText( /* string */username, /* string */ linkText, /* */subject ) {

	var hostname = gHostName;
	
	document.write( 
		  '<a ' 
		+ 'href="' + 'mail' + 'to:' + username + '@' + hostname + '?subject=' + subject + '">' 
		+ linkText
		+ '</a>' 
	);
}

function mailToFormField( /* string */username, /* string */formFieldName ) {

	var hostname		= gHostName;
	var emailAddress	= username + '@' + hostname;
	
	document.write( 
		  '<input '
		+ 'type="hidden" '
		+ 'name="' + formFieldName + '" '
		+ 'value="' + emailAddress + '"> ' 
	);
}

// --------------------------------------------------------------------------------
// --------------------------------------------------------------------------------

function mailToSimple( username, hostname, subject )
{
	document.write( 
		  '<a ' 
		+ 'href="' + 'mail' + 'to:' + username + '@' + hostname + '?subject=' + subject + '">' 
		+ username + '@' + hostname
		+ '</a>' 
	);
}

// -->
