function ForceMaxLength(objField, nLength, strWarning){
    var strField = new String(objField.attr("value"));

    if (strField.length > nLength) {
        errorMessage = "Maximum Allowed Length is " + nLength ;
        DisplayError(objField,errorMessage);
        return false;
    } else
        return true;
}
// and false is returned, else true is returned.
and false is returned, else true is returned.
and false is returned else true is returned .
function ForceMaxLength(objField, nLength, strWarning){
    var strField = new String(objField.attr("value"));
    if (strField.length > nLength) {
        errorMessage = "Maximum Allowed Length is " + nLength ;
        DisplayError(objField,errorMessage);
        return false;
    } else
        return true;
}
function ForceMaxLength ( objField , nLength , strWarning ) { var strField = new String ( objField . attr ( "value" ) ) ; if ( strField . length > nLength ) { errorMessage = "Maximum Allowed Length is " + nLength ; DisplayError ( objField , errorMessage ) ; return false ; } else return true ; }
and false is returned, else true is returned.
and false is returned else true is returned .