
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_gs' + iSeqRow).bind('blur', function() { sc_line_fingreig_form_gs_onblur(this, iSeqRow) })
                                .bind('focus', function() { sc_line_fingreig_form_gs_onfocus(this, iSeqRow) });
  $('#id_sc_field_fs' + iSeqRow).bind('blur', function() { sc_line_fingreig_form_fs_onblur(this, iSeqRow) })
                                .bind('focus', function() { sc_line_fingreig_form_fs_onfocus(this, iSeqRow) });
  $('#id_sc_field_grstyle' + iSeqRow).bind('blur', function() { sc_line_fingreig_form_grstyle_onblur(this, iSeqRow) })
                                     .bind('focus', function() { sc_line_fingreig_form_grstyle_onfocus(this, iSeqRow) });
} // scJQEventsAdd

function sc_line_fingreig_form_gs_onblur(oThis, iSeqRow) {
  do_ajax_line_fingreig_form_validate_gs();
  scCssBlur(oThis);
}

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

function sc_line_fingreig_form_fs_onblur(oThis, iSeqRow) {
  do_ajax_line_fingreig_form_validate_fs();
  scCssBlur(oThis);
}

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

function sc_line_fingreig_form_grstyle_onblur(oThis, iSeqRow) {
  do_ajax_line_fingreig_form_validate_grstyle();
  scCssBlur(oThis);
}

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

function scJQUploadAdd(iSeqRow) {
} // scJQUploadAdd


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

