function GetEmail(code) {
	switch(code)
	{
	case 'txwa':
	   return 'txwa@fast.st';
	default:
		return 'editor@fast.st';
	}
}

function CheckForm() {
	if ((document.myform.emailaddress.value.indexOf("@")== -1) || (document.myform.emailaddress.value.indexOf(".")== -1)) 
	{	alert ("Please enter a correct email address.");
	    return false;
	}

	if (document.myform.denom1.value.length == 0)
	{	alert ("Please indicate your religious affiliation.");
		return false;
	}

// Access Code
	var code = document.myform.code.value
	document.myform.sendtoemail.value = GetEmail(code);
	document.myform.submit();
}

function Hotline() {
	if ((document.myform.emailaddress.value.indexOf("@")== -1) || (document.myform.emailaddress.value.indexOf(".")== -1)) 
	{	alert ("Please enter a correct email address.");
	    return false;
	}

// Access Code
	var code = document.myform.code.value
	document.myform.sendtoemail.value = GetEmail(code);
	document.myform.submit();
}

function popup(x)
{	window.open(x + '.html','look','width=750,height=520,resizable=no,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,coyphistory=no');
}
