// function limitTextArea(oForm, strTxtField, strRemainingLength, intMaxLen) // function AtLeastOneBoxChecked(oForm, strTxtField, intTotalBoxes) // function blankInfo(oForm) // function blankInfo2(oForm) // function blankInfo3(oForm, strTxtField, strFieldName) // function optionValueIsBlank(oForm, strField, strFieldName) // function blankInfo4(oForm, strTxtField){ // function deleteForm (oForm, oChkDelete, strMsgDelete) // function deleteFormAndConfirm (oForm, oChkDelete, strMsgDelete, bolRun, strMsgConfirm) // function optionValueBlank (oForm, oChkSelect) // function selectURL(s, p_strAction) // function lookUp(p_strWhatToFind, p_strFieldName) // function populate() // function checkAll(p_strFormName) // function clearPort(strTextField) // function validateNonBlankCountry(strTxtField) // function validateEmail(strTxtField) // function isDate(p_inputVal, strFormatDate) // function isTime(datTime) // function dateCompareSL(datSooner, datLater, datSoonerTime, datLaterTime, strFormatDate) // function convertDimension(p_inputsystem, p_value, p_type) // function setAction(p_objForm, p_strAction) // function replaceSpace(p_inputVal, p_strFiller) // function getCurrencyFromCountry(countryCD, aryCountry, aryCurrency) // function getCurrencyCDFromCurrencyDescription(currencyDesc) // function evaluateForSED(p_sExportCountryCD, p_sImportCountryCD) // function dressScheduleB(p_sScheduleBCD) //================================================ //FUNCTIONS TO EVALUATE AND FORMAT NUMBERS // function isPositiveInteger(inputVal) // function isInteger(inputVal) // function isPositiveFloat(inputVal, strDecimalDenoter) // function isFloat(inputVal, strDecimalDenoter) // function isPositiveFloatWithThousandDenoter(inputVal, strDecimalDenoter) // function isFloatWithThousandDenoter(inputVal, strDecimalDenoter) // function getThousandDenoter(strDecimalDenoter) // function roundFloat(inputVal, strDecimalDenoter, intNumberOfDecimals) // function roundFloatWithThousandDenoter(inputVal, strDecimalDenoter, intNumberOfDecimals) // function dressFloat(inputVal, strDecimalDenoter, intNumberOfDecimals) // function stripFloatWithThousandDenoter(inputVal, strThousandDenoter) //================================================ //================================================ //FUNCTIONS TO MANIPULATE STRINGS // function ltrim(s) // function rtrim(s) // function trim(s) // function trimString(str) //================================================ function limitTextArea(oForm, strTxtField, strRemainingLength, intMaxLen) { var oElement; var oElmtRemaining; if (typeof strTxtField == 'string') { oElement = oForm.elements[strTxtField]; } else { oElement = strTxtField; } oElmtRemaining = oForm.elements[strRemainingLength]; //alert(oElement.value.length + " the length now."); if (oElement.value.length > intMaxLen) oElement.value = oElement.value.substring(0, intMaxLen); else oElmtRemaining.value = intMaxLen - oElement.value.length; } function AtLeastOneBoxChecked(oForm, strTxtField, intTotalBoxes) { var oElement; oElement = oForm.elements[strTxtField]; for (var i = 0; i < intTotalBoxes; i++) { if (oElement[i].checked) return true; } return false; } function blankInfo(oForm){ var intIndex; var oElement; for (intIndex=0; intIndex