
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_order_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_order__onblur(this, iSeqRow) })
                                    .bind('change', function() { sc_orders_asst_form_order__onchange(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_asst_form_order__onfocus(this, iSeqRow) });
  $('#id_sc_field_assortment_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_assortment__onblur(this, iSeqRow) })
                                         .bind('change', function() { sc_orders_asst_form_assortment__onchange(this, iSeqRow) })
                                         .bind('focus', function() { sc_orders_asst_form_assortment__onfocus(this, iSeqRow) });
  $('#id_sc_field_our_order_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_our_order__onblur(this, iSeqRow) })
                                        .bind('change', function() { sc_orders_asst_form_our_order__onchange(this, iSeqRow) })
                                        .bind('focus', function() { sc_orders_asst_form_our_order__onfocus(this, iSeqRow) });
  $('#id_sc_field_bcode_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_bcode__onblur(this, iSeqRow) })
                                    .bind('change', function() { sc_orders_asst_form_bcode__onchange(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_asst_form_bcode__onfocus(this, iSeqRow) });
  $('#id_sc_field_date_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_date__onblur(this, iSeqRow) })
                                   .bind('change', function() { sc_orders_asst_form_date__onchange(this, iSeqRow) })
                                   .bind('focus', function() { sc_orders_asst_form_date__onfocus(this, iSeqRow) });
  $('#id_sc_field_style_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_style__onblur(this, iSeqRow) })
                                    .bind('change', function() { sc_orders_asst_form_style__onchange(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_asst_form_style__onfocus(this, iSeqRow) });
  $('#id_sc_field_width_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_width__onblur(this, iSeqRow) })
                                    .bind('change', function() { sc_orders_asst_form_width__onchange(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_asst_form_width__onfocus(this, iSeqRow) });
  $('#id_sc_field_color_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_color__onblur(this, iSeqRow) })
                                    .bind('change', function() { sc_orders_asst_form_color__onchange(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_asst_form_color__onfocus(this, iSeqRow) });
  $('#id_sc_field_color_no_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_color_no__onblur(this, iSeqRow) })
                                       .bind('change', function() { sc_orders_asst_form_color_no__onchange(this, iSeqRow) })
                                       .bind('focus', function() { sc_orders_asst_form_color_no__onfocus(this, iSeqRow) });
  $('#id_sc_field_yards_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_yards__onblur(this, iSeqRow) })
                                    .bind('change', function() { sc_orders_asst_form_yards__onchange(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_asst_form_yards__onfocus(this, iSeqRow) });
  $('#id_sc_field_lin_sq_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_lin_sq__onblur(this, iSeqRow) })
                                     .bind('change', function() { sc_orders_asst_form_lin_sq__onchange(this, iSeqRow) })
                                     .bind('focus', function() { sc_orders_asst_form_lin_sq__onfocus(this, iSeqRow) });
  $('#id_sc_field_delivery_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_delivery__onblur(this, iSeqRow) })
                                       .bind('change', function() { sc_orders_asst_form_delivery__onchange(this, iSeqRow) })
                                       .bind('focus', function() { sc_orders_asst_form_delivery__onfocus(this, iSeqRow) });
  $('#id_sc_field_c_o_number_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_c_o_number__onblur(this, iSeqRow) })
                                         .bind('change', function() { sc_orders_asst_form_c_o_number__onchange(this, iSeqRow) })
                                         .bind('focus', function() { sc_orders_asst_form_c_o_number__onfocus(this, iSeqRow) });
  $('#id_sc_field_price_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_price__onblur(this, iSeqRow) })
                                    .bind('change', function() { sc_orders_asst_form_price__onchange(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_asst_form_price__onfocus(this, iSeqRow) });
  $('#id_sc_field_amount_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_amount__onblur(this, iSeqRow) })
                                     .bind('change', function() { sc_orders_asst_form_amount__onchange(this, iSeqRow) })
                                     .bind('focus', function() { sc_orders_asst_form_amount__onfocus(this, iSeqRow) });
  $('#id_sc_field_stat_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_stat__onblur(this, iSeqRow) })
                                   .bind('change', function() { sc_orders_asst_form_stat__onchange(this, iSeqRow) })
                                   .bind('focus', function() { sc_orders_asst_form_stat__onfocus(this, iSeqRow) });
  $('#id_sc_field_yid_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_yid__onblur(this, iSeqRow) })
                                  .bind('change', function() { sc_orders_asst_form_yid__onchange(this, iSeqRow) })
                                  .bind('focus', function() { sc_orders_asst_form_yid__onfocus(this, iSeqRow) });
  $('#id_sc_field_adate_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_adate__onblur(this, iSeqRow) })
                                    .bind('change', function() { sc_orders_asst_form_adate__onchange(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_asst_form_adate__onfocus(this, iSeqRow) });
  $('#id_sc_field_edate_' + iSeqRow).bind('blur', function() { sc_orders_asst_form_edate__onblur(this, iSeqRow) })
                                    .bind('change', function() { sc_orders_asst_form_edate__onchange(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_asst_form_edate__onfocus(this, iSeqRow) });
} // scJQEventsAdd

function sc_orders_asst_form_order__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_order_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_assortment__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_assortment_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_our_order__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_our_order_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_bcode__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_bcode_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_date__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_date_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_style__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_style_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_width__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_width_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_color__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_color_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_color_no__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_color_no_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_yards__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_yards_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_lin_sq__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_lin_sq_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_delivery__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_delivery_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_c_o_number__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_c_o_number_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_price__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_price_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_amount__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_amount_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_stat__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_stat_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_yid__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_yid_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_adate__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_adate_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

function sc_orders_asst_form_edate__onblur(oThis, iSeqRow) {
  do_ajax_orders_asst_form_validate_edate_(iSeqRow);
  scCssBlur(oThis, iSeqRow);
}

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

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

var sc_jq_calendar_value = {};

function scJQCalendarAdd(iSeqRow) {
  $("#id_sc_field_date_" + iSeqRow).datepicker({
    beforeShow: function(input, inst) {
      var $oField = $(this),
          aParts  = $oField.val().split(" "),
          sTime   = "";
      sc_jq_calendar_value["#id_sc_field_date_" + iSeqRow] = $oField.val();
    },
    onClose: function(dateText, inst) {
    },
    showWeek: true,
    numberOfMonths: 1,
    changeMonth: true,
    changeYear: true,
    yearRange: 'c-5:c+5',
    dayNames: ['<?php        echo html_entity_decode($this->Ini->Nm_lang['lang_days_sund']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_mond']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_tued']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_wend']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_thud']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_frid']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_satd']);        ?>'],
    dayNamesMin: ['<?php     echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_sund']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_mond']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_tued']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_wend']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_thud']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_frid']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_satd']); ?>'],
    monthNamesShort: ['<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_janu']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_febr']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_marc']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_apri']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_mayy']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_june']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_july']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_augu']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_sept']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_octo']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_nove']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_dece']); ?>'],
    weekHeader: "<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_days_sem']); ?>",
    firstDay: <?php echo $this->jqueryCalendarWeekInit("" . $_SESSION['scriptcase']['reg_conf']['date_week_ini'] . ""); ?>,
    dateFormat: "<?php echo $this->jqueryCalendarDtFormat("" . str_replace(array('/', 'aaaa', $_SESSION['scriptcase']['reg_conf']['date_sep']), array('', 'yyyy', ''), $this->field_config['date_']['date_format']) . "", "" . $_SESSION['scriptcase']['reg_conf']['date_sep'] . ""); ?>",
    showOtherMonths: true,
    showOn: "button",
    buttonImage: "<?php echo $this->jqueryIconFile('calendar'); ?>",
    buttonImageOnly: true
  });

  $("#id_sc_field_adate_" + iSeqRow).datepicker({
    beforeShow: function(input, inst) {
      var $oField = $(this),
          aParts  = $oField.val().split(" "),
          sTime   = "";
      sc_jq_calendar_value["#id_sc_field_adate_" + iSeqRow] = $oField.val();
    },
    onClose: function(dateText, inst) {
    },
    showWeek: true,
    numberOfMonths: 1,
    changeMonth: true,
    changeYear: true,
    yearRange: 'c-5:c+5',
    dayNames: ['<?php        echo html_entity_decode($this->Ini->Nm_lang['lang_days_sund']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_mond']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_tued']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_wend']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_thud']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_frid']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_satd']);        ?>'],
    dayNamesMin: ['<?php     echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_sund']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_mond']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_tued']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_wend']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_thud']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_frid']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_satd']); ?>'],
    monthNamesShort: ['<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_janu']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_febr']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_marc']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_apri']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_mayy']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_june']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_july']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_augu']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_sept']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_octo']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_nove']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_dece']); ?>'],
    weekHeader: "<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_days_sem']); ?>",
    firstDay: <?php echo $this->jqueryCalendarWeekInit("" . $_SESSION['scriptcase']['reg_conf']['date_week_ini'] . ""); ?>,
    dateFormat: "<?php echo $this->jqueryCalendarDtFormat("" . str_replace(array('/', 'aaaa', $_SESSION['scriptcase']['reg_conf']['date_sep']), array('', 'yyyy', ''), $this->field_config['adate_']['date_format']) . "", "" . $_SESSION['scriptcase']['reg_conf']['date_sep'] . ""); ?>",
    showOtherMonths: true,
    showOn: "button",
    buttonImage: "<?php echo $this->jqueryIconFile('calendar'); ?>",
    buttonImageOnly: true
  });

  $("#id_sc_field_edate_" + iSeqRow).datepicker({
    beforeShow: function(input, inst) {
      var $oField = $(this),
          aParts  = $oField.val().split(" "),
          sTime   = "";
      sc_jq_calendar_value["#id_sc_field_edate_" + iSeqRow] = $oField.val();
    },
    onClose: function(dateText, inst) {
    },
    showWeek: true,
    numberOfMonths: 1,
    changeMonth: true,
    changeYear: true,
    yearRange: 'c-5:c+5',
    dayNames: ['<?php        echo html_entity_decode($this->Ini->Nm_lang['lang_days_sund']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_mond']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_tued']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_wend']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_thud']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_frid']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_satd']);        ?>'],
    dayNamesMin: ['<?php     echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_sund']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_mond']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_tued']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_wend']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_thud']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_frid']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_satd']); ?>'],
    monthNamesShort: ['<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_janu']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_febr']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_marc']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_apri']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_mayy']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_june']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_july']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_augu']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_sept']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_octo']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_nove']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_dece']); ?>'],
    weekHeader: "<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_days_sem']); ?>",
    firstDay: <?php echo $this->jqueryCalendarWeekInit("" . $_SESSION['scriptcase']['reg_conf']['date_week_ini'] . ""); ?>,
    dateFormat: "<?php echo $this->jqueryCalendarDtFormat("" . str_replace(array('/', 'aaaa', $_SESSION['scriptcase']['reg_conf']['date_sep']), array('', 'yyyy', ''), $this->field_config['edate_']['date_format']) . "", "" . $_SESSION['scriptcase']['reg_conf']['date_sep'] . ""); ?>",
    showOtherMonths: true,
    showOn: "button",
    buttonImage: "<?php echo $this->jqueryIconFile('calendar'); ?>",
    buttonImageOnly: true
  });

  $("#id_sc_field_sdate_" + iSeqRow).datepicker({
    beforeShow: function(input, inst) {
      var $oField = $(this),
          aParts  = $oField.val().split(" "),
          sTime   = "";
      sc_jq_calendar_value["#id_sc_field_sdate_" + iSeqRow] = $oField.val();
    },
    onClose: function(dateText, inst) {
    },
    showWeek: true,
    numberOfMonths: 1,
    changeMonth: true,
    changeYear: true,
    yearRange: 'c-5:c+5',
    dayNames: ['<?php        echo html_entity_decode($this->Ini->Nm_lang['lang_days_sund']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_mond']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_tued']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_wend']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_thud']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_frid']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_satd']);        ?>'],
    dayNamesMin: ['<?php     echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_sund']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_mond']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_tued']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_wend']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_thud']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_frid']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_satd']); ?>'],
    monthNamesShort: ['<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_janu']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_febr']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_marc']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_apri']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_mayy']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_june']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_july']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_augu']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_sept']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_octo']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_nove']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_dece']); ?>'],
    weekHeader: "<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_days_sem']); ?>",
    firstDay: <?php echo $this->jqueryCalendarWeekInit("" . $_SESSION['scriptcase']['reg_conf']['date_week_ini'] . ""); ?>,
    dateFormat: "<?php echo $this->jqueryCalendarDtFormat("" . str_replace(array('/', 'aaaa', $_SESSION['scriptcase']['reg_conf']['date_sep']), array('', 'yyyy', ''), $this->field_config['sdate_']['date_format']) . "", "" . $_SESSION['scriptcase']['reg_conf']['date_sep'] . ""); ?>",
    showOtherMonths: true,
    showOn: "button",
    buttonImage: "<?php echo $this->jqueryIconFile('calendar'); ?>",
    buttonImageOnly: true
  });

} // scJQCalendarAdd

function scJQUploadAdd(iSeqRow) {
} // scJQUploadAdd


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

