ケース「PD」:
valueUD = obj.id;
id = objName;
varloadVUD = UserData.load(exam, id);
if (loadVUD == null || loadVUD == 未定義 || loadVUD == '') {
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]] ;
}
休憩;
ケース「DANX」:
valueUD = obj.id;
var objName = obj.name;
var objNameTop = objName.substr(0,objName.indexOf('_'));
id = objName;
varloadVUD = UserData.load(exam, id);
if (loadVUD == null || loadVUD == 未定義 || loadVUD == '') {
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]] ;
}
休憩;
ケース 'PP':
valueUD = obj.id;
var objName = obj.name;
var objNameTop = objName.substr(0,objName.indexOf('_'));
id = objName;
varloadVUD = UserData.load(exam, id);
if (loadVUD == null || loadVUD == 未定義 || loadVUD == '') {
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]] ;
}
休憩;
case 'text':
valueUD = obj.value;
id = "text_" obj.id;
varloadVUD = UserData.load(exam, id);
if (loadVUD == null) {
if (valueUD == null || valueUD == '') {
戻る;
}
else {
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]] ;
}
}
else {
if (valueUD == null || valueUD == '') {
UserData.remove(exam, id);
examAnswerKeyStr = RemoveStrWithcomma(examAnswerKeyStr, id);
UserData.save(examinfo, "examAnswerKeyStr", ExamAnswerKeyStr, 1);
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]]--;
戻る;
}
}
休憩;
ケース 'チェックボックス':
id = "checkbox_" obj.id.substr(0, obj.id.lastIndexOf('_'));
var key = obj.id.substr(0, obj.id.lastIndexOf('_'));
key = "checkbox_" key;
valueUD = UserData.load(exam, key);
var flag = obj.checked;
if (valueUD == null) {
if (フラグ) {
id = key;
valueUD = obj.id;
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]] ;
}
}
else {
if (フラグ) {
if (valueUD.indexOf(obj.id) == -1) {
valueUD = "," obj.id
}
}
else {
if (valueUD.indexOf(obj.id) != -1) {
if (valueUD.indexOf(',' obj.id) != -1) {
valueUD = valueUD.replace(',' obj.id, '');
}
その他
if (valueUD.indexOf(obj.id ',') != -1) {
valueUD = valueUD.replace(obj.id ',', '');
}
else {
UserData.remove(exam, key);
examAnswerKeyStr = RemoveStrWithcomma(examAnswerKeyStr, key);
UserData.save(examinfo, "examAnswerKeyStr", ExamAnswerKeyStr, 1);
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]]--;
戻る;
}
}
}
}
休憩;
case 'textarea':
valueUD = obj.value;
id = "textarea_" obj.id;
varloadVUD = UserData.load(exam, id);
if (loadVUD == null) {
if (valueUD == null || valueUD == '') {
戻る;
}
else {
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]] ;
}
}
else {
if (valueUD == null || valueUD == '') {
UserData.remove(exam, id);
examAnswerKeyStr = RemoveStrWithcomma(examAnswerKeyStr, id);
UserData.save(examinfo, "examAnswerKeyStr", ExamAnswerKeyStr, 1);
var tmpTGId = obj.id.substr(0, obj.id.indexOf('_'));
qNoTotalD[qIdNoStr[tmpTGId]]--;
戻る;
}
}
休憩;
デフォルト:
戻る。 }