function CheckRequiredFields() {
var errormessage = new String();




// Put field checks below this point.

if(WithoutContent(document.EZFormMailer.Name.value))
	{ errormessage += "\n\n• Please type your first and last names in the \"Name\" text field."; }

if(WithoutContent(document.EZFormMailer.email.value))
	{ errormessage += "\n• Please type your email address in the \"email\" text field."; }

if(WithoutContent(document.EZFormMailer.visitor_business_address.value))
	{ errormessage += "\n• Please type your Business Address in the \"Business Address\" text field."; }

if(WithoutContent(document.EZFormMailer.visitor_city.value))
	{ errormessage += "\n• Please type your City in the \"City\" text field."; }

if(WithoutContent(document.EZFormMailer.visitor_state.value))
	{ errormessage += "\n• Please type your State in the \"State\" text field."; }

if(WithoutContent(document.EZFormMailer.visitor_country.value))
	{ errormessage += "\n• Please type your Country in the \"Country\" text field."; }

if(WithoutContent(document.EZFormMailer.visitor_zipcode.value))
	{ errormessage += "\n• Please type your Zip Code (or Country Code) in the \"Zip/Country Code\" text field."; }

if(WithoutContent(document.EZFormMailer.visitor_telephone.value))
	{ errormessage += "\n• Please type your Telephone Number in the \"Telephone\" text field."; }

if(WithoutContent(document.EZFormMailer.AboutYou.value))
	{ errormessage += "\n• Please fill in the \"Tell us about your company\" textarea box."; }

if(WithoutContent(document.EZFormMailer.summarize_project.value))
	{ errormessage += "\n• Please fill in the \"Summarize your Ebook/Ecover project\" textarea box."; }

if(WithoutContent(document.EZFormMailer.existing_documentation.value))
	{ errormessage += "\n• Please fill in the \"Do you have existing research, documentation...\" textarea box."; }

if(NoneWithCheck(document.EZFormMailer.TypeOfContent))
	{ errormessage += "\n• Choose THE PRIMARY OPTION for your content needs in the \"What type of content do you need...\" textarea box."; }

if(NoneWithCheck(document.EZFormMailer.TargetAudience))
	{ errormessage += "\n• Choose one of the three options in the \"Internet Audience\" textarea box."; }

if(WithoutContent(document.EZFormMailer.browser_type.value))
	{ errormessage += "\n• Please fill in the \"End User Computing/Technology -- Browser Type\" textarea box."; }

if(WithoutContent(document.EZFormMailer.connection_speed.value))
	{ errormessage += "\n• Please fill in the \"End User Computing/Technology -- Connection Speed\" textarea box."; }



if(WithoutContent(document.EZFormMailer.age_group.value))
	{ errormessage += "\n• Please fill in the \"Demographics -- Age Group(s)\" textarea box."; }

if(WithoutContent(document.EZFormMailer.reading_level_grade.value))
	{ errormessage += "\n• Please fill in the \"Demographics -- Reading Level Grade\" textarea box."; }

if(WithoutContent(document.EZFormMailer.gender.value))
	{ errormessage += "\n• Please fill in the \"Demographics -- Gender(s)\" textarea box."; }

if(WithoutContent(document.EZFormMailer.income_range.value))
	{ errormessage += "\n• Please fill in the \"Demographics -- Income Range\" textarea box."; }

if(WithoutContent(document.EZFormMailer.occupation.value))
	{ errormessage += "\n• Please fill in the \"Demographics -- Occupation(s)\" textarea box."; }

if(WithoutContent(document.EZFormMailer.country.value))
	{ errormessage += "\n• Please fill in the \"Demographics -- Country\" textarea box."; }

if(WithoutContent(document.EZFormMailer.what_conveyed_to_audience.value))
	{ errormessage += "\n• Please fill in the \"What do you want to convey to your audience...\" textarea box."; }

if(WithoutContent(document.EZFormMailer.market_promote.value))
	{ errormessage += "\n• Please fill in the \"How will you market and promote this Ebook...\" textarea box."; }



if(NoneWithCheck(document.EZFormMailer.WritingStyle))
	{ errormessage += "\n• Choose one of the two options in the \"What type of writing style or voice do you require -- STYLE\" textarea box."; }

if(NoneWithCheck(document.EZFormMailer.WritingStyleVoice))
	{ errormessage += "\n• Choose one of the two options in the \"What type of writing style or voice do you require -- VOICE\" textarea box."; }



if(WithoutContent(document.EZFormMailer.URL_1_visitor_likes.value))
	{ errormessage += "\n• Please fill in the \"URL 1 - Internet addresses (URLs) of Ebooks and/or writing styles that you like\" textarea box."; }

if(WithoutContent(document.EZFormMailer.URL_2_visitor_likes.value))
	{ errormessage += "\n• Please fill in the \"URL 2 - Internet addresses (URLs) of Ebooks and/or writing styles that you like\" textarea box."; }

if(WithoutContent(document.EZFormMailer.URL_3_visitor_likes.value))
	{ errormessage += "\n• Please fill in the \"URL 3 - Internet addresses (URLs) of Ebooks and/or writing styles that you like\" textarea box."; }

if(NoneWithCheck(document.EZFormMailer.WhatToConvey))
	{ errormessage += "\n• Choose one of the two options in the \"What do you want to convey to your readers...\" textarea box."; }

// Put field checks above this point.




if(errormessage.length > 2) {
	alert('NOTE:' + errormessage);
	return false;
	}
return true;
} // end of function CheckRequiredFields()


function WithoutContent(ss) {
if(ss.length > 0) { return false; }
return true;
}

function NoneWithContent(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].value.length > 0) { return false; }
	}
return true;
}

function NoneWithCheck(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].checked) { return false; }
	}
return true;
}

function WithoutCheck(ss) {
if(ss.checked) { return false; }
return true;
}

function WithoutSelectionValue(ss) {
for(var i = 0; i < ss.length; i++) {
	if(ss[i].selected) {
		if(ss[i].value.length) { return false; }
		}
	}
return true;
}
