function clearCheck ( object ) {
    if( object.value == "Your Friend's Address" ) {
	object.value = "";
    }
}

function verifyAndMail () {
    var friend = document.getElementById("friendEmail");
    var valid =  /^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i;

    if (!valid.test(friend.value)) {
	alert('Please provide a valid email address for your friend.');
	friend.focus();
	return false;
    } else {
	var subject = "I thought you'd be interested in this teething bracelet!"
	var body = "I saw this award winning, ecologically safe baby teether called Oh Plah! and thought you’d want to check it out.  You can learn more by visiting their website: http://roundhousedc.com/ohplah_teething_bracelet.html";
	document.location.href = "mailto:" + friend.value + "?subject=" + subject + "&body=" + body, "mywindow";
	return true;
    }
}
