var iLength = 0;
function moveCursor(oCurrentField,cEvent,iFieldLength,oNextField){
	if (cEvent == "down") {
		iLength = oCurrentField.value.length;
	}
	else if (cEvent == "up") {
		if (oCurrentField.value.length != iLength) {
			iLength = oCurrentField.value.length;
			if (iLength == iFieldLength) {
				oNextField.focus();
			}
		}
	}
}