
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_scode_' + iSeqRow).bind('blur', function() { sc_custship_form_scode__onblur(this, iSeqRow) })
                                    .bind('change', function() { sc_custship_form_scode__onchange(this, iSeqRow) })
                                    .bind('focus', function() { sc_custship_form_scode__onfocus(this, iSeqRow) });
  $('#id_sc_field_bcode_' + iSeqRow).bind('blur', function() { sc_custship_form_bcode__onblur(this, iSeqRow) })
                                    .bind('change', function() { sc_custship_form_bcode__onchange(this, iSeqRow) })
                                    .bind('focus', function() { sc_custship_form_bcode__onfocus(this, iSeqRow) });
  $('#id_sc_field_name_' + iSeqRow).bind('blur', function() { sc_custship_form_name__onblur(this, iSeqRow) })
                                   .bind('change', function() { sc_custship_form_name__onchange(this, iSeqRow) })
                                   .bind('focus', function() { sc_custship_form_name__onfocus(this, iSeqRow) });
  $('#id_sc_field_prefix_' + iSeqRow).bind('blur', function() { sc_custship_form_prefix__onblur(this, iSeqRow) })
                                     .bind('change', function() { sc_custship_form_prefix__onchange(this, iSeqRow) })
                                     .bind('focus', function() { sc_custship_form_prefix__onfocus(this, iSeqRow) });
  $('#id_sc_field_address1_' + iSeqRow).bind('blur', function() { sc_custship_form_address1__onblur(this, iSeqRow) })
                                       .bind('change', function() { sc_custship_form_address1__onchange(this, iSeqRow) })
                                       .bind('focus', function() { sc_custship_form_address1__onfocus(this, iSeqRow) });
  $('#id_sc_field_address2_' + iSeqRow).bind('blur', function() { sc_custship_form_address2__onblur(this, iSeqRow) })
                                       .bind('change', function() { sc_custship_form_address2__onchange(this, iSeqRow) })
                                       .bind('focus', function() { sc_custship_form_address2__onfocus(this, iSeqRow) });
  $('#id_sc_field_city_' + iSeqRow).bind('blur', function() { sc_custship_form_city__onblur(this, iSeqRow) })
                                   .bind('change', function() { sc_custship_form_city__onchange(this, iSeqRow) })
                                   .bind('focus', function() { sc_custship_form_city__onfocus(this, iSeqRow) });
  $('#id_sc_field_state_' + iSeqRow).bind('blur', function() { sc_custship_form_state__onblur(this, iSeqRow) })
                                    .bind('change', function() { sc_custship_form_state__onchange(this, iSeqRow) })
                                    .bind('focus', function() { sc_custship_form_state__onfocus(this, iSeqRow) });
  $('#id_sc_field_country_' + iSeqRow).bind('blur', function() { sc_custship_form_country__onblur(this, iSeqRow) })
                                      .bind('change', function() { sc_custship_form_country__onchange(this, iSeqRow) })
                                      .bind('focus', function() { sc_custship_form_country__onfocus(this, iSeqRow) });
  $('#id_sc_field_zip_code_' + iSeqRow).bind('blur', function() { sc_custship_form_zip_code__onblur(this, iSeqRow) })
                                       .bind('change', function() { sc_custship_form_zip_code__onchange(this, iSeqRow) })
                                       .bind('focus', function() { sc_custship_form_zip_code__onfocus(this, iSeqRow) });
} // scJQEventsAdd

function sc_custship_form_scode__onblur(oThis, iSeqRow) {
  do_ajax_custship_form_validate_scode_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_custship_form_bcode__onblur(oThis, iSeqRow) {
  do_ajax_custship_form_validate_bcode_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_custship_form_name__onblur(oThis, iSeqRow) {
  do_ajax_custship_form_validate_name_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_custship_form_prefix__onblur(oThis, iSeqRow) {
  do_ajax_custship_form_validate_prefix_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_custship_form_address1__onblur(oThis, iSeqRow) {
  do_ajax_custship_form_validate_address1_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_custship_form_address2__onblur(oThis, iSeqRow) {
  do_ajax_custship_form_validate_address2_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_custship_form_city__onblur(oThis, iSeqRow) {
  do_ajax_custship_form_validate_city_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_custship_form_state__onblur(oThis, iSeqRow) {
  do_ajax_custship_form_validate_state_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_custship_form_country__onblur(oThis, iSeqRow) {
  do_ajax_custship_form_validate_country_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_custship_form_zip_code__onblur(oThis, iSeqRow) {
  do_ajax_custship_form_validate_zip_code_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function scJQUploadAdd(iSeqRow) {
} // scJQUploadAdd


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

