// Using this function to obscure address from greedy, nasty bots...
function sendEmail(mailbox, subject) {
	if (mailbox == null) {
		alert("You need to supply a mailbox in your call to sendEmail!");
	}
	if (subject == null) {
		subject = "";
	}
	var eml = mailbox;
	var locString = "";
	eml += "@";
	eml += "musicplace";
	eml += ".";
	eml += "com";
	locString = "mailto:" + eml + "?subject=" + subject;
	location = locString;
}

function emailsMatch() {
	// assumes fieldnames of if_email and if_email2
	e1 = document.forms[0].if_email.value;
	e2 = document.forms[0].if_email2.value;
	if (! (e1 == e2)) {
		alert("Whoops!!! Those emails don't match!!!");
		document.forms[0].if_email.focus();
		return false;
	}
	// They're the same; are they valid?
	var atsign = e1.indexOf("@");
	if (atsign < 1) {
		alert("Your email doesn't look valid;\nI don't see an \"@\" symbol?");
		document.forms[0].if_email.focus();
		return false;
	}
	if (e1.substr(atsign).indexOf(".") < 1) {
		alert("Your email doesn't look valid;\nI don't see any \"dots\" after the @ symbol?");
		document.forms[0].if_email.focus();
		return false;
	}
}

