<commit_before>var CHKEDIT = "chkEdit"
var HIDAID = "hidAID"
var TXTNM = "txtName"
var CHKISCD = "chkIscard"
var CHKISCDCHK = CHKISCD + "_chk"
var SELUID = "selUID"
var TXTBL = "txtBalance"
var LBLDT = "lblDate"

// edit checkbox
function chgEdit(){
    var i = this.id.substring(this.id.length-1,this.id.length);
    chgDisabled(TXTNM+i, this.checked);
    chgDisabled(SELUID+i, this.checked);
    chgDisabled(TXTBL+i, this.checked);
    chgDisabled(HIDAID+i, this.checked);
    chgDisabled(CHKISCDCHK+i, this.checked);
    chgDisabled(CHKISCD+i, this.checked);
}

function chgIsCard(){
    var i = this.id.substring(this.id.length-1,this.id.length);
    chgOnOffValue(CHKISCD+i, this.checked);
}

function chgDisabled(id, enable){
    document.getElementById(id).disabled = (!enable);
}

function chgOnOffValue(id, enable){
    if(enable)
	document.getElementById(id).value = "on";
    else
	document.getElementById(id).value = "off";
}

// balance textbox
function onfocusBalance(){<commit_msg>bugfix: over 10 items of Accounts doesn't work<commit_after>var CHKEDIT = "chkEdit"
var HIDAID = "hidAID"
var TXTNM = "txtName"
var CHKISCD = "chkIscard"
var CHKISCDCHK = CHKISCD + "_chk"
var SELUID = "selUID"
var TXTBL = "txtBalance"
var LBLDT = "lblDate"

// edit checkbox
function chgEdit(){
    //var i = this.id.substring(this.id.length-1,this.id.length);
    var i = this.id.replace(new RegExp(CHKEDIT, "g"), "");
    chgDisabled(TXTNM+i, this.checked);
    chgDisabled(SELUID+i, this.checked);
    chgDisabled(TXTBL+i, this.checked);
    chgDisabled(HIDAID+i, this.checked);
    chgDisabled(CHKISCDCHK+i, this.checked);
    chgDisabled(CHKISCD+i, this.checked);
}

function chgIsCard(){
    var i = this.id.substring(this.id.length-1,this.id.length);
    chgOnOffValue(CHKISCD+i, this.checked);
}

function chgDisabled(id, enable){
    document.getElementById(id).disabled = (!enable);
}

function chgOnOffValue(id, enable){
    if(enable)
	document.getElementById(id).value = "on";
    else
	document.getElementById(id).value = "off";
}

// balance textbox
function onfocusBalance(){
{'fraction_non_alphanumeric': 0.14846743295019157, 'fraction_numerical': 0.0028735632183908046, 'mean_word_length': 4.630727762803234, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2784824', 'n_tokens_mistral': 799, 'n_tokens_neox': 804, 'n_words': 149}