
function Subscribe() {
	
	var Name = $('Subscribe_Name').value;
	var Email = $('Subscribe_Email').value;
	var EmID = $('EmID').value;
	
	var missing = '';
	var numtodo = 0;
	
	if (Name.length <= 2) {
		numtodo = numtodo + 1;
		missing = missing + '  (' + numtodo + ') Your Name \n ';
	}
	if (Email.length <= 5) {
		numtodo = numtodo + 1;
		missing = missing + '  (' + numtodo + ') Email Address \n ';
	}
	
	missing = 'There are ' + numtodo + ' item(s) to correct: \n ' + missing;
	if (numtodo > 0) {
		alert(missing);
		return;
	}
	
	missing = '';
	var atemail = Email.indexOf('@');
	if (atemail < 0) {
		numtodo = numtodo + 1;
		missing = missing + 'Invalid Email Address \n ';
	}
	
	missing = 'Your email address is invalid \n ' + missing;
	if (numtodo > 0) {
		alert(missing);
		return;
	}
	
	var url = 'addr_Subscribe.asp?EmID=' + EmID + '&Name=' + Name + '&Email=' + Email;
	alert(url);
	return;
	new Ajax.Request(url, 
		{	method: 'get', 
			onSuccess: function(transport)	{
				if (transport.responseText == 'Recorded')	
				alert('Your subscription has been recorded. You will receive the newsletter monthly. Thank you!');
			},
			onFailure: function(transport)	{
				alert('Server Temporarily Offline -- Subscription not recorded. Sorry. Please call on our 800# to have it added.');
			}
		}
	)

}
