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) { switch ($oField[0].name) { case 'bcode': case 'status': case 'updated': case 'number': case 'terms': case 'salesman': case 'tdate': case 'att': case 'prefix': case 'name': case 'address1': case 'address2': case 'city': case 'state': case 'zip_code': case 'country': sc_exib_ocult_pag('custbill_form_form0'); break; case 'email': case 'phone': case 'contact': case 'fax': case 'cphone1': case 'cemail1': case 'cfax1': case 'contact2': case 'cphone2': case 'cemail2': case 'cfax2': sc_exib_ocult_pag('custbill_form_form1'); break; case 'cat1': case 'cat2': case 'cat3': case 'cat4': case 'cat5': case 'cat6': case 'cat7': sc_exib_ocult_pag('custbill_form_form2'); break; case 'mtd': case 'qtd': case 'ytd': case 'jan': case 'feb': case 'mar': case 'apr': case 'may': case 'jun': case 'jul': case 'aug': case 'sep': case 'oct': case 'nov': case 'dec': case 'lyear': case 'llyear': case 'q1': case 'q2': case 'q4': case 'q3': sc_exib_ocult_pag('custbill_form_form3'); break; case 'memo': sc_exib_ocult_pag('custbill_form_form4'); break; } } 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_bcode' + iSeqRow).bind('blur', function() { sc_custbill_form_bcode_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_bcode_onfocus(this, iSeqRow) }); $('#id_sc_field_status' + iSeqRow).bind('blur', function() { sc_custbill_form_status_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_status_onfocus(this, iSeqRow) }); $('#id_sc_field_name' + iSeqRow).bind('blur', function() { sc_custbill_form_name_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_name_onfocus(this, iSeqRow) }); $('#id_sc_field_number' + iSeqRow).bind('blur', function() { sc_custbill_form_number_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_number_onfocus(this, iSeqRow) }); $('#id_sc_field_prefix' + iSeqRow).bind('blur', function() { sc_custbill_form_prefix_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_prefix_onfocus(this, iSeqRow) }); $('#id_sc_field_address1' + iSeqRow).bind('blur', function() { sc_custbill_form_address1_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_address1_onfocus(this, iSeqRow) }); $('#id_sc_field_address2' + iSeqRow).bind('blur', function() { sc_custbill_form_address2_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_address2_onfocus(this, iSeqRow) }); $('#id_sc_field_city' + iSeqRow).bind('blur', function() { sc_custbill_form_city_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_city_onfocus(this, iSeqRow) }); $('#id_sc_field_state' + iSeqRow).bind('blur', function() { sc_custbill_form_state_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_state_onfocus(this, iSeqRow) }); $('#id_sc_field_country' + iSeqRow).bind('blur', function() { sc_custbill_form_country_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_country_onfocus(this, iSeqRow) }); $('#id_sc_field_zip_code' + iSeqRow).bind('blur', function() { sc_custbill_form_zip_code_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_zip_code_onfocus(this, iSeqRow) }); $('#id_sc_field_salesman' + iSeqRow).bind('blur', function() { sc_custbill_form_salesman_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_salesman_onfocus(this, iSeqRow) }); $('#id_sc_field_email' + iSeqRow).bind('blur', function() { sc_custbill_form_email_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_email_onfocus(this, iSeqRow) }); $('#id_sc_field_cat1' + iSeqRow).bind('blur', function() { sc_custbill_form_cat1_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_cat1_onfocus(this, iSeqRow) }); $('#id_sc_field_cat2' + iSeqRow).bind('blur', function() { sc_custbill_form_cat2_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_cat2_onfocus(this, iSeqRow) }); $('#id_sc_field_cat3' + iSeqRow).bind('blur', function() { sc_custbill_form_cat3_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_cat3_onfocus(this, iSeqRow) }); $('#id_sc_field_cat4' + iSeqRow).bind('blur', function() { sc_custbill_form_cat4_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_cat4_onfocus(this, iSeqRow) }); $('#id_sc_field_cat5' + iSeqRow).bind('blur', function() { sc_custbill_form_cat5_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_cat5_onfocus(this, iSeqRow) }); $('#id_sc_field_cat6' + iSeqRow).bind('blur', function() { sc_custbill_form_cat6_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_cat6_onfocus(this, iSeqRow) }); $('#id_sc_field_cat7' + iSeqRow).bind('blur', function() { sc_custbill_form_cat7_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_cat7_onfocus(this, iSeqRow) }); $('#id_sc_field_terms' + iSeqRow).bind('blur', function() { sc_custbill_form_terms_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_terms_onfocus(this, iSeqRow) }); $('#id_sc_field_phone' + iSeqRow).bind('blur', function() { sc_custbill_form_phone_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_phone_onfocus(this, iSeqRow) }); $('#id_sc_field_contact' + iSeqRow).bind('blur', function() { sc_custbill_form_contact_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_contact_onfocus(this, iSeqRow) }); $('#id_sc_field_tdate' + iSeqRow).bind('blur', function() { sc_custbill_form_tdate_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_tdate_onfocus(this, iSeqRow) }); $('#id_sc_field_memo' + iSeqRow).bind('blur', function() { sc_custbill_form_memo_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_memo_onfocus(this, iSeqRow) }); $('#id_sc_field_att' + iSeqRow).bind('blur', function() { sc_custbill_form_att_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_att_onfocus(this, iSeqRow) }); $('#id_sc_field_cphone1' + iSeqRow).bind('blur', function() { sc_custbill_form_cphone1_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_cphone1_onfocus(this, iSeqRow) }); $('#id_sc_field_cphone2' + iSeqRow).bind('blur', function() { sc_custbill_form_cphone2_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_cphone2_onfocus(this, iSeqRow) }); $('#id_sc_field_contact2' + iSeqRow).bind('blur', function() { sc_custbill_form_contact2_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_contact2_onfocus(this, iSeqRow) }); $('#id_sc_field_cemail1' + iSeqRow).bind('blur', function() { sc_custbill_form_cemail1_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_cemail1_onfocus(this, iSeqRow) }); $('#id_sc_field_cemail2' + iSeqRow).bind('blur', function() { sc_custbill_form_cemail2_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_cemail2_onfocus(this, iSeqRow) }); $('#id_sc_field_fax' + iSeqRow).bind('blur', function() { sc_custbill_form_fax_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_fax_onfocus(this, iSeqRow) }); $('#id_sc_field_cfax1' + iSeqRow).bind('blur', function() { sc_custbill_form_cfax1_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_cfax1_onfocus(this, iSeqRow) }); $('#id_sc_field_cfax2' + iSeqRow).bind('blur', function() { sc_custbill_form_cfax2_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_cfax2_onfocus(this, iSeqRow) }); $('#id_sc_field_mtd' + iSeqRow).bind('blur', function() { sc_custbill_form_mtd_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_mtd_onfocus(this, iSeqRow) }); $('#id_sc_field_ytd' + iSeqRow).bind('blur', function() { sc_custbill_form_ytd_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_ytd_onfocus(this, iSeqRow) }); $('#id_sc_field_qtd' + iSeqRow).bind('blur', function() { sc_custbill_form_qtd_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_qtd_onfocus(this, iSeqRow) }); $('#id_sc_field_jan' + iSeqRow).bind('blur', function() { sc_custbill_form_jan_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_jan_onfocus(this, iSeqRow) }); $('#id_sc_field_feb' + iSeqRow).bind('blur', function() { sc_custbill_form_feb_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_feb_onfocus(this, iSeqRow) }); $('#id_sc_field_mar' + iSeqRow).bind('blur', function() { sc_custbill_form_mar_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_mar_onfocus(this, iSeqRow) }); $('#id_sc_field_apr' + iSeqRow).bind('blur', function() { sc_custbill_form_apr_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_apr_onfocus(this, iSeqRow) }); $('#id_sc_field_may' + iSeqRow).bind('blur', function() { sc_custbill_form_may_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_may_onfocus(this, iSeqRow) }); $('#id_sc_field_jun' + iSeqRow).bind('blur', function() { sc_custbill_form_jun_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_jun_onfocus(this, iSeqRow) }); $('#id_sc_field_jul' + iSeqRow).bind('blur', function() { sc_custbill_form_jul_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_jul_onfocus(this, iSeqRow) }); $('#id_sc_field_aug' + iSeqRow).bind('blur', function() { sc_custbill_form_aug_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_aug_onfocus(this, iSeqRow) }); $('#id_sc_field_sep' + iSeqRow).bind('blur', function() { sc_custbill_form_sep_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_sep_onfocus(this, iSeqRow) }); $('#id_sc_field_oct' + iSeqRow).bind('blur', function() { sc_custbill_form_oct_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_oct_onfocus(this, iSeqRow) }); $('#id_sc_field_nov' + iSeqRow).bind('blur', function() { sc_custbill_form_nov_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_nov_onfocus(this, iSeqRow) }); $('#id_sc_field_dec' + iSeqRow).bind('blur', function() { sc_custbill_form_dec_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_dec_onfocus(this, iSeqRow) }); $('#id_sc_field_lyear' + iSeqRow).bind('blur', function() { sc_custbill_form_lyear_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_lyear_onfocus(this, iSeqRow) }); $('#id_sc_field_llyear' + iSeqRow).bind('blur', function() { sc_custbill_form_llyear_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_llyear_onfocus(this, iSeqRow) }); $('#id_sc_field_q1' + iSeqRow).bind('blur', function() { sc_custbill_form_q1_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_q1_onfocus(this, iSeqRow) }); $('#id_sc_field_q2' + iSeqRow).bind('blur', function() { sc_custbill_form_q2_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_q2_onfocus(this, iSeqRow) }); $('#id_sc_field_q3' + iSeqRow).bind('blur', function() { sc_custbill_form_q3_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_q3_onfocus(this, iSeqRow) }); $('#id_sc_field_q4' + iSeqRow).bind('blur', function() { sc_custbill_form_q4_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_q4_onfocus(this, iSeqRow) }); $('#id_sc_field_updated' + iSeqRow).bind('blur', function() { sc_custbill_form_updated_onblur(this, iSeqRow) }) .bind('focus', function() { sc_custbill_form_updated_onfocus(this, iSeqRow) }); } // scJQEventsAdd function sc_custbill_form_bcode_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_bcode(); scCssBlur(oThis); } function sc_custbill_form_bcode_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_status_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_status(); scCssBlur(oThis); } function sc_custbill_form_status_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_name_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_name(); scCssBlur(oThis); } function sc_custbill_form_name_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_number_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_number(); scCssBlur(oThis); } function sc_custbill_form_number_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_prefix_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_prefix(); scCssBlur(oThis); } function sc_custbill_form_prefix_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_address1_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_address1(); scCssBlur(oThis); } function sc_custbill_form_address1_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_address2_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_address2(); scCssBlur(oThis); } function sc_custbill_form_address2_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_city_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_city(); scCssBlur(oThis); } function sc_custbill_form_city_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_state_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_state(); scCssBlur(oThis); } function sc_custbill_form_state_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_country_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_country(); scCssBlur(oThis); } function sc_custbill_form_country_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_zip_code_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_zip_code(); scCssBlur(oThis); } function sc_custbill_form_zip_code_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_salesman_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_salesman(); scCssBlur(oThis); } function sc_custbill_form_salesman_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_email_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_email(); scCssBlur(oThis); } function sc_custbill_form_email_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_cat1_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_cat1(); scCssBlur(oThis); } function sc_custbill_form_cat1_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_cat2_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_cat2(); scCssBlur(oThis); } function sc_custbill_form_cat2_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_cat3_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_cat3(); scCssBlur(oThis); } function sc_custbill_form_cat3_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_cat4_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_cat4(); scCssBlur(oThis); } function sc_custbill_form_cat4_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_cat5_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_cat5(); scCssBlur(oThis); } function sc_custbill_form_cat5_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_cat6_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_cat6(); scCssBlur(oThis); } function sc_custbill_form_cat6_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_cat7_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_cat7(); scCssBlur(oThis); } function sc_custbill_form_cat7_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_terms_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_terms(); scCssBlur(oThis); } function sc_custbill_form_terms_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_phone_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_phone(); scCssBlur(oThis); } function sc_custbill_form_phone_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_contact_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_contact(); scCssBlur(oThis); } function sc_custbill_form_contact_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_tdate_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_tdate(); scCssBlur(oThis); } function sc_custbill_form_tdate_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_memo_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_memo(); scCssBlur(oThis); } function sc_custbill_form_memo_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_att_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_att(); scCssBlur(oThis); } function sc_custbill_form_att_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_cphone1_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_cphone1(); scCssBlur(oThis); } function sc_custbill_form_cphone1_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_cphone2_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_cphone2(); scCssBlur(oThis); } function sc_custbill_form_cphone2_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_contact2_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_contact2(); scCssBlur(oThis); } function sc_custbill_form_contact2_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_cemail1_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_cemail1(); scCssBlur(oThis); } function sc_custbill_form_cemail1_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_cemail2_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_cemail2(); scCssBlur(oThis); } function sc_custbill_form_cemail2_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_fax_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_fax(); scCssBlur(oThis); } function sc_custbill_form_fax_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_cfax1_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_cfax1(); scCssBlur(oThis); } function sc_custbill_form_cfax1_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_cfax2_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_cfax2(); scCssBlur(oThis); } function sc_custbill_form_cfax2_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_mtd_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_mtd(); scCssBlur(oThis); } function sc_custbill_form_mtd_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_ytd_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_ytd(); scCssBlur(oThis); } function sc_custbill_form_ytd_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_qtd_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_qtd(); scCssBlur(oThis); } function sc_custbill_form_qtd_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_jan_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_jan(); scCssBlur(oThis); } function sc_custbill_form_jan_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_feb_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_feb(); scCssBlur(oThis); } function sc_custbill_form_feb_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_mar_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_mar(); scCssBlur(oThis); } function sc_custbill_form_mar_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_apr_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_apr(); scCssBlur(oThis); } function sc_custbill_form_apr_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_may_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_may(); scCssBlur(oThis); } function sc_custbill_form_may_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_jun_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_jun(); scCssBlur(oThis); } function sc_custbill_form_jun_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_jul_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_jul(); scCssBlur(oThis); } function sc_custbill_form_jul_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_aug_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_aug(); scCssBlur(oThis); } function sc_custbill_form_aug_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_sep_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_sep(); scCssBlur(oThis); } function sc_custbill_form_sep_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_oct_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_oct(); scCssBlur(oThis); } function sc_custbill_form_oct_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_nov_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_nov(); scCssBlur(oThis); } function sc_custbill_form_nov_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_dec_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_dec(); scCssBlur(oThis); } function sc_custbill_form_dec_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_lyear_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_lyear(); scCssBlur(oThis); } function sc_custbill_form_lyear_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_llyear_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_llyear(); scCssBlur(oThis); } function sc_custbill_form_llyear_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_q1_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_q1(); scCssBlur(oThis); } function sc_custbill_form_q1_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_q2_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_q2(); scCssBlur(oThis); } function sc_custbill_form_q2_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_q3_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_q3(); scCssBlur(oThis); } function sc_custbill_form_q3_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_q4_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_q4(); scCssBlur(oThis); } function sc_custbill_form_q4_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } function sc_custbill_form_updated_onblur(oThis, iSeqRow) { do_ajax_custbill_form_validate_updated(); scCssBlur(oThis); } function sc_custbill_form_updated_onfocus(oThis, iSeqRow) { scCssFocus(oThis); } var sc_jq_calendar_value = {}; function scJQCalendarAdd(iSeqRow) { $("#id_sc_field_updated" + iSeqRow).datepicker({ beforeShow: function(input, inst) { var $oField = $(this), aParts = $oField.val().split(" "), sTime = ""; sc_jq_calendar_value["#id_sc_field_updated" + iSeqRow] = $oField.val(); }, onClose: function(dateText, inst) { }, showWeek: true, numberOfMonths: 1, changeMonth: true, changeYear: true, yearRange: 'c-5:c+5', dayNames: ['