abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ 32 javascript:(this); ;(this); javascript:setGlobalKeyDownHandler(event); function (field) { if (cafGKeyPress != 9 && event.toElement && (event.toElement.id == "IDS_CANCEL" || event.toElement.id == "IDS_CLOSE" || event.toElement.id == "IDS_CLOSE_ICON" || event.toElement.name == "")) { if( event.toElement.name == "") field.value=""; else field.form.reset(); return; } else if (cafGKeyPress == 9) { cafGKeyPress = ""; } if (window.CAFReportValidationError) { var value = field.value; var highlight = null; var res = CAFContainsInvalidString(value); if (res) { CAFReportValidationError(cafInvalidStringMsg + res); highlight = res; } if (value.length > ) { CAFReportValidationError(cafInvalidLength); highlight=value; } if (value != null && value != "") { if (!CAFisInteger(value)) { CAFReportValidationError(cafInvalidInteger); highlight = value; } } if (value != null && value != "") { if (!CAFisInteger(value,true)) { CAFReportValidationError(cafInvalidUnsignedInteger); highlight = value; } } if (value != null && value != "") { if (!CAFisInteger(value)) { CAFReportValidationError(cafInvalidInteger); highlight = value; } } if (value != null && value != "") { if (!CAFisInteger(value,true)) { CAFReportValidationError(cafInvalidUnsignedInteger); highlight = value; } } if (highlight != null) { cafValidation_field = field; cafValidation_highlight = highlight; //use the setTimout to fix the following event conflicts //in FF: clicking tab selects the next field, //in IE: message is displayed twice when the next field is a select element setTimeout("CAFSelectText(cafValidation_field, cafValidation_highlight);",0); } } }