
function scJQGeneralAdd() {
  $('input:text.sc-js-input').listen();
  $('input:password.sc-js-input').listen();
  $('textarea.sc-js-input').listen();

} // scJQGeneralAdd

function scFocusField(sField) {
  var $oField = $('#id_sc_field_' + sField);

  if (0 == $oField.length) {
    $oField = $('input[name=' + sField + ']');
  }

  if (0 == $oField.length && document.F1.elements[sField]) {
    $oField = $(document.F1.elements[sField]);
  }

  if (0 < $oField.length && 0 < $oField[0].offsetHeight && 0 < $oField[0].offsetWidth && !$oField[0].disabled) {
    $oField[0].focus();
  }
} // scFocusField

function scJQEventsAdd(iSeqRow) {
  $('#id_sc_field_enduse_' + iSeqRow).bind('blur', function() { sc_data_enduse_edit_grid_enduse__onblur(this, iSeqRow) })
                                     .bind('change', function() { sc_data_enduse_edit_grid_enduse__onchange(this, iSeqRow) })
                                     .bind('focus', function() { sc_data_enduse_edit_grid_enduse__onfocus(this, iSeqRow) });
  $('#id_sc_field_ecode_' + iSeqRow).bind('blur', function() { sc_data_enduse_edit_grid_ecode__onblur(this, iSeqRow) })
                                    .bind('change', function() { sc_data_enduse_edit_grid_ecode__onchange(this, iSeqRow) })
                                    .bind('focus', function() { sc_data_enduse_edit_grid_ecode__onfocus(this, iSeqRow) });
  $('#id_sc_field_id2_' + iSeqRow).bind('blur', function() { sc_data_enduse_edit_grid_id2__onblur(this, iSeqRow) })
                                  .bind('change', function() { sc_data_enduse_edit_grid_id2__onchange(this, iSeqRow) })
                                  .bind('focus', function() { sc_data_enduse_edit_grid_id2__onfocus(this, iSeqRow) });
} // scJQEventsAdd

function sc_data_enduse_edit_grid_enduse__onblur(oThis, iSeqRow) {
  do_ajax_data_enduse_edit_grid_validate_enduse_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

function sc_data_enduse_edit_grid_enduse__onchange(oThis, iSeqRow) {
  nm_check_insert(iSeqRow);
}

function sc_data_enduse_edit_grid_enduse__onfocus(oThis, iSeqRow) {
  scCssFocus(oThis, iSeqRow);
}

function sc_data_enduse_edit_grid_ecode__onblur(oThis, iSeqRow) {
  do_ajax_data_enduse_edit_grid_validate_ecode_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

function sc_data_enduse_edit_grid_ecode__onchange(oThis, iSeqRow) {
  nm_check_insert(iSeqRow);
}

function sc_data_enduse_edit_grid_ecode__onfocus(oThis, iSeqRow) {
  scCssFocus(oThis, iSeqRow);
}

function sc_data_enduse_edit_grid_id2__onblur(oThis, iSeqRow) {
  do_ajax_data_enduse_edit_grid_validate_id2_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

function sc_data_enduse_edit_grid_id2__onchange(oThis, iSeqRow) {
  nm_check_insert(iSeqRow);
}

function sc_data_enduse_edit_grid_id2__onfocus(oThis, iSeqRow) {
  scCssFocus(oThis, iSeqRow);
}

function scJQUploadAdd(iSeqRow) {
} // scJQUploadAdd


function scJQElementsAdd(iLine) {
  scJQEventsAdd(iLine);
  scJQUploadAdd(iLine);
} // scJQElementsAdd

