function checkValue(thisControl, hiddenControl) { if (isFull(thisControl.value) && isNum(thisControl.value)) { setValue(thisControl.value,hiddenControl,'text',parent.menu.document.hiddenform.updated) return true } else { thisControl.value = hiddenControl.value thisControl.focus() return false } }