mocks.js
function(type, fields) {
			for(var i = 0; i < fields.length; i++)
				sforce.db.validateField(type, fields[i]);
		}
function(type, fields) {
			for(var i = 0; i < fields.length; i++)
				sforce.db.validateField(type, fields[i]);
		}
Validates a list of field names against a type in the schema