function checkLen(o, next) {
	if ( o.value.length == o.size ) next.focus();
	return true;
}

function allCartVars(fs) {
	var msg = "";
	var len = fs.length;

	for ( var i = 0; i < len; i++ ) {
		msg += fs.elements[i].name + ": " + fs.elements[i].value + "\n";
//		msg += eval(fs + ".elements[" + i + "].name") + ": " + eval(fs + ".elements[" + i + "].value") + "\n";
	}
	return msg;
}

function validateCustomerInfo(f) {

	var pattern = "";
	validateMsg = "";
	validateCount = 0;
	focusSet = 0;

// Check that all fields are populated correctly
	
	if ( trim(f.name_rwo.value) == "" ) {
		validateMsg += "    Your Name\n";
		validateCount += 1;
		if ( ! focusSet ) {
			f.name_rwo.focus();
			focusSet = 1;
		}
	}
	if ( trim(f.profession.value) == "" ) {
		validateMsg += "    Profession\n";
		validateCount += 1;
		if ( ! focusSet ) {
			f.profession.focus();
			focusSet = 1;
		}
	}
	if ( trim(f.e_mail.value) == "" ) {
		validateMsg += "    E-mail Address\n";
		validateCount += 1;
		if ( ! focusSet ) {
			f.e_mail.focus();
			focusSet = 1;
		}
	}

// Announce any missing fields

	if ( validateCount > 0 ) {
		var instructions = "Please complete the following field";
		if ( validateCount > 1 ) {
			instructions += "s:\n";
		}
		else {
			instructions += ":\n";
		}
		alert( instructions + validateMsg );
		return false;
	}

// Check for valid e-mail format

	if (validateEmail(f.e_mail) == false) return false;

//	alert("Validation Complete.");
	return true;
}

