code: function addLeadingZeros(numField, length) {
  		while (numField.toString().length < length) {
  			numField = '0' + numField.toString();
  		}
  
  		return numField;
  	}
docs: Adds leading zeros to the specified numeric field.