function confirmEmail()
{
	if (document.res.email1.value == '') {
		var agree=confirm("Although your email address is not required, it is helpful to give it to us. Click 'OK' to enter your email - Click 'Cancel' to continue without your email address.");
		if (agree) {
			return true ;
		} else {
			return false ;
		}
	}
}

function validate() {

//return true;

var strAlert = '';

if (document.res.lastname.value == '') {strAlert += '- Your Last Name.\n';}
if (document.res.firstname.value == '') {strAlert += '- Your First Name.\n';}
if (document.res.addr1.value == '') {strAlert += '- Your Address.\n';}
if (document.res.city.value == '') {strAlert += '- Your City.\n';}
if (document.res.state.value == '') {strAlert += '- Your State.\n';}
if (document.res.zip.value == '') {strAlert += '- Your Zipcode.\n';}
if (document.res.event_type.value == '') {strAlert += '- Event Type.\n';}
if (document.res.event_month.value == '') {strAlert += '- Event Month.\n';}
if (document.res.event_day.value == '') {strAlert += '- Event Day.\n';}
if (document.res.event_year.value == '') {strAlert += '- Event Year.\n';}
if (document.res.numgen.value == '') {strAlert += '- Enter Security Code.\n';}
 
if (strAlert != '') {
	strAlert = 'We will need the following information to continue:\n' + strAlert;
	window.alert(strAlert);
	return false;
	} else {

	for (var i = 0; i < document.res.elements.length; i++) {
		if ((document.res.elements[i].value).indexOf(',') != -1) {
			document.res.elements[i].value = Replace(document.res.elements[i].value,',',' ');
			window.alert(document.res.elements[i].name + ' is now... ' + document.res.elements[i].value);
		}
	}
}
return confirmEmail();
}