function validateUpdate() {
	if (isWhitespace (document.MemberForm.membername.value)) {
		alert("Please enter your first name or nickname.");
		document.MemberForm.membername.focus();
		document.MemberForm.membername.select();
		return false;
	}
	
	if (isWhitespace (document.MemberForm.headline.value)) {
		alert("Please enter your headline.");
		document.MemberForm.headline.focus();
		document.MemberForm.headline.select();
		return false;
	}
	if (document.MemberForm.desireageFrom.selectedIndex > document.MemberForm.desireageTo.selectedIndex ) { 
		alert("Please choose Valid Age Range");
		document.MemberForm.desireageTo.focus();
		return false;
	}	 
	if (isWhitespace (document.MemberForm.city.value)) {
		alert("Please enter your city.");
		document.MemberForm.city.focus();
		document.MemberForm.city.select();
		return false;
	}
	if ( (document.MemberForm.country.selectedIndex == 0 
		|| document.MemberForm.country.selectedIndex == 1  )
		&& (isWhitespace (document.MemberForm.areacode.value) 
		|| !isaNum (document.MemberForm.areacode.value))) {
		alert("Numeric Area Code must be entered for United States and Canada.");
		document.MemberForm.areacode.focus();
		document.MemberForm.areacode.select();
		return false;
	}
	if ( (document.MemberForm.country.selectedIndex == 0 
		|| document.MemberForm.country.selectedIndex == 1  )
		&& isaNum (document.MemberForm.areacode.value)
		&& (document.MemberForm.areacode.value < 100 
		|| document.MemberForm.areacode.value > 999)) {
		alert("3-digit Area Code must be entered for United States and Canada.");
		document.MemberForm.areacode.focus();
		document.MemberForm.areacode.select();
		return false;
	}
	if ( !(document.MemberForm.country.selectedIndex == 0 
		|| document.MemberForm.country.selectedIndex == 1 )
		&& (!isWhitespace (document.MemberForm.areacode.value))) {
		alert("Area Code must be left blank if not in United States or Canada.");
		document.MemberForm.areacode.focus();
		document.MemberForm.areacode.select();
		return false;
	}	 
	if ( document.MemberForm.country.selectedIndex == 0
		&& (isWhitespace (document.MemberForm.searchzip.value) 
		|| !isaNum (document.MemberForm.searchzip.value))) {
		alert("Numeric Zip Code must be entered for United States.");
		document.MemberForm.searchzip.focus();
		document.MemberForm.searchzip.select();
		return false;
	}
	if ( document.MemberForm.country.selectedIndex == 0 
		&& isaNum (document.MemberForm.searchzip.value)
		&& (document.MemberForm.searchzip.value.length != 5)) {
		alert("5-digit Zip Code must be entered for United States and Canada.");
		document.MemberForm.searchzip.focus();
		document.MemberForm.searchzip.select();
		return false;
	}
	if ( document.MemberForm.country.selectedIndex != 0 
		&& !isWhitespace (document.MemberForm.searchzip.value)) {
		alert("Zip Code must be left blank if not in United States.");
		document.MemberForm.searchzip.focus();
		document.MemberForm.searchzip.select();
		return false;
	}	 
	if ((document.MemberForm.country.selectedIndex == 0  )
		&& (document.MemberForm.state.selectedIndex < 1 
		|| document.MemberForm.state.selectedIndex > 51) ) { 
		alert("Please choose valid US State");
		document.MemberForm.state.focus();
		return false;
	}	 
	if ((document.MemberForm.country.selectedIndex == 1  )
		&& document.MemberForm.state.selectedIndex < 52 ) { 
		alert("Please choose valid Canadian Province");
		document.MemberForm.state.focus();
		return false;
	}	 
	if ((document.MemberForm.country.selectedIndex > 1  )
		&& document.MemberForm.state.selectedIndex != 0 ) { 
		alert("If Country is not US or Canada, State must be Not Applicable");
		document.MemberForm.state.options[0].selected = true;
		document.MemberForm.state.focus();
		return false;
	}	 
	if (isWhitespace (document.MemberForm.occupation.value)) {
		alert("Please enter your occupation.");
		document.MemberForm.occupation.focus();
		return false;
	}
	if (document.MemberForm.occupation.value.length > 255) {
		alert("Occupation must not be greater than 255 characters.");
		document.MemberForm.occupation.focus();
		return false;
	}
	
	return true;	
}

