function formValidation(form) {
	if(notEmpty(form.first_name)) {
		if(notEmpty(form.last_name)) {
			if(notEmpty(form.address)) {
				if(notEmpty(form.city)) {
					if (notEmpty(form.state)) {
						if (notEmpty(form.zip)) {
							if (notEmpty(form.sp_ph_area_code)) {
								if (notEmpty(form.sp_ph_prefix)) {
									if (notEmpty(form.sp_ph_suffix)) {
										if (notEmpty(form.amt)) {
												return true;
										}
									}
								}
							}
						}
					}
				}
			}
		}
	}
	return false;
}

function trim(str)
{
  return str.replace(/^\s+|\s+$/g, '');
}

function notEmpty(elem){
	var str = trim(elem.value);
	if(str.length == 0){
		alert("You must fill in all required fields (*)");
		return false;
	} 
	else {
		return true;
	}
}