function checkEmail(str){	var testresults;	var filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;	if (filter.test(str)){		testresults=true;	}	else {		alert("Please enter a valid email address.");		testresults=false;	}	return (testresults);}function addAddress(){	var l = document.maillist_public.email.value;	if (l) {		var yea = checkEmail(l);		if (yea){			document.location='/?action=d7_maillist_public_add_address&Address=' + l + '&Group_ID=14197&Name=' + document.maillist_public.name.value+'&user_notify_from_address=';		}	}}function removeAddress(Group_Range){	if ( !Group_Range ){		alert("Please select a region.");	}	var l = document.maillist_public.email.value;	if ( l && Group_Range ) {		var yea = checkEmail( l );		if (yea){			document.location='/?action=d7_maillist_public_add_address&Address=' + l + '&Group_ID=' + Group_Range + '&Name=' + document.maillist_public.name.value+'&user_notify_from_address=';		}	}}