

/* When 'strValue' length reaches 'length', move the focus to 'moveToField' */
function whenLengthMoveToField (strValue, length, moveToField) {
	if(strValue == null) return;
	if(length == null) return;
	if (moveToField == null) return;

	if(strValue.length >0 && strValue.length == length) {
		if(moveToField != null) {
			moveToField.focus();
		} else {
			if(document.getElementById(moveToField)) {
				document.getElementById(moveToField).focus();
			}
		}
	}
}