function format(vField, iLength, bCutFromFront) {
				if (!vField) {
					vField = vField === 0 ? "0" : "";
				} else if (typeof vField === "number") {
					vField = Math.round(vField).toString();
					if (vField.length > iLength) {
						vField = "-1";
					}
				} else {
					vField = bCutFromFront ? vField.substr(-iLength, iLength) : vField.substr(0, iLength);
				}
				return vField;
			}
// format string to fesr compliant string
format string to fesr compliant string
format string to fesr compliant string
function format(vField, iLength, bCutFromFront) {
				if (!vField) {
					vField = vField === 0 ? "0" : "";
				} else if (typeof vField === "number") {
					vField = Math.round(vField).toString();
					if (vField.length > iLength) {
						vField = "-1";
					}
				} else {
					vField = bCutFromFront ? vField.substr(-iLength, iLength) : vField.substr(0, iLength);
				}
				return vField;
			}
function format ( vField , iLength , bCutFromFront ) { if ( ! vField ) { vField = vField === 0 ? "0" : "" ; } else if ( typeof vField === "number" ) { vField = Math . round ( vField ) . toString ( ) ; if ( vField . length > iLength ) { vField = "-1" ; } } else { vField = bCutFromFront ? vField . substr ( - iLength , iLength ) : vField . substr ( 0 , iLength ) ; } return vField ; }
format string to fesr compliant string
format string to fesr compliant string