<!--

function noSpam()
{
	user = "sherry";
	domain = "healinggateway.com";
	locationstring = "mailto:" + user + "@" + domain;
	window.location = locationstring;
}

function emailvalidation(entered, alertbox) {
	// E-mail Validation by Henrik Petersen / NetKontoret
	// Explained at www.echoecho.com/jsforms.htm
	// Please do not remove this line and the two lines above.
	with (entered) {
		apos=value.indexOf("@");
		dotpos=value.lastIndexOf(".");
		lastpos=value.length-1;
		if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2 || value==defaultValue) {
			if (alertbox) {	alert(alertbox);	}
			return false;
		} else {
			return true;
		}
	}
}

function emptyvalidation(entered, alertbox) {
	// Emptyfield Validation by Henrik Petersen / NetKontoret
	// Explained at www.echoecho.com/jsforms.htm
	// Please do not remove this line and the two lines above.
	with (entered) {
		if (value==null || value=='' || value==defaultValue) {
			if (alertbox) {
				alert(alertbox);
			}
			return false;
		} else {
			return true;
		}
	}
}

function formvalidation(thisform) {
	with (thisform) {
		if (emailvalidation(thisform.userEmail,"That is not a valid email address.")==false) {thisform.userEmail.focus(); return false;};
		if (emptyvalidation(thisform.userSubject,"Please specify a subject.")==false) {thisform.userSubject.focus(); return false;};
		if (emptyvalidation(thisform.userMessage,"The message is empty.")==false) {thisform.userMessage.focus(); return false;};
	}
}

//-->