function newsletterValidate() {
    errors = new Array();		

    str = getElementValue('firstname');
    if (empty_string(str)) { 
        errors.push('You must enter your first name');
        reportError('firstname');
    } else {
        unReportError('firstname');
    }

    str = getElementValue('lastname');
    if (empty_string(str)) { 
        errors.push('You must enter your last name');
        reportError('lastname');
    } else {
        unReportError('lastname');
    }

    str = getElementValue('email');
    if (empty_string(str)) { 
        errors.push('You must enter your email address');
        reportError('email');
    } else if (!valid_emailaddr(str)) {
        errors.push('The email address you have entered is not valid');
        reportError('email');
    } else {
        unReportError('email');
    }

		if (errors.length) { 
				txt = "One or more errors occurred during newsletter registration:\n\n";
				
				for (i = 0; i < errors.length; i++) { 
						txt += "- " + errors[i] + "\n";
				}
		
				alert(txt);
		
				return false;
		}
		
		return true;
}
