function callChildNumList(formName) { var frm = document.forms[formName]; child1_num = frm.child1Num.value; child2_num = frm.child2Num.value; child3_num = frm.child3Num.value; child4_num = frm.child4Num.value; child5_num = frm.child5Num.value; var topUrl= "" //dynamic.jsのFunctionを呼び出す。 showChildNumList(child1_num, child2_num, child3_num, child4_num, child5_num, topUrl, formName); } function showChildNumList(chid1, chid2, chid3, chid4, chid5, topUrl, formName) { child1_num = "child1Num=" + chid1; child2_num = "&child2Num=" + chid2; child3_num = "&child3Num=" + chid3; child4_num = "&child4Num=" + chid4; child5_num = "&child5Num=" + chid5; //rootCd = "&rootCd=" + rootCd; form_name = ""; if(formName != null) { form_name = "&formName=" + formName; } //BASE_URL 修正 2007/01/18 var urlChildList = topUrl + "/child_num_list.php"; //PARAMETER // NSSOL 修正 2007/02/28 var child_param = child1_num + child2_num + child3_num + child4_num + child5_num + form_name; //RequestURL urlChildList = urlChildList + '?' + child_param; //URL_CHECK //alert(urlChildList); //遷移先子画面 var newwin = window.open(urlChildList, 'childList', 'width=280,height=250,resizable=no'); newwin.focus(); } function loadChildNum(formName) { this.CHILD_NUM_TXT_ID1 = "dyn_child_num_txt_id1"; this.CHILD_NUM_TXT_ID2 = "dyn_child_num_txt_id2"; var frm = document.forms[formName]; if (isNaN(parseInt(frm.child1Num.value)) == true) { var child1_num = 0; } else { var child1_num = parseInt(frm.child1Num.value); } if (isNaN(parseInt(frm.child2Num.value)) == true) { var child2_num = 0; } else { var child2_num = parseInt(frm.child2Num.value); } if (isNaN(parseInt(frm.child3Num.value)) == true) { var child3_num = 0; } else { var child3_num = parseInt(frm.child3Num.value); } if (isNaN(parseInt(frm.child4Num.value)) == true) { var child4_num = 0; } else { var child4_num = parseInt(frm.child4Num.value); } if (isNaN(parseInt(frm.child5Num.value)) == true) { var child5_num = 0; } else { var child5_num = parseInt(frm.child5Num.value); } if(document.getElementById(this.CHILD_NUM_TXT_ID1)) { document.getElementById(this.CHILD_NUM_TXT_ID1).innerHTML = child1_num+child2_num+child3_num+child4_num+child5_num+"名"; } var htmlStr = ""; htmlStr += (child1_num>0)?"小学生"+" "+child1_num+"名
":""; htmlStr += (child2_num>0)?"幼児(食事・布団あり)"+" "+child2_num+"名
":""; htmlStr += (child3_num>0)?"幼児(食事あり)"+" "+child3_num+"名
":""; htmlStr += (child4_num>0)?"幼児(布団あり)"+" "+child4_num+"名
":""; htmlStr += (child5_num>0)?"幼児(食事・布団なし)"+" "+child5_num+"名
":""; //if(document.getElementById(this.CHILD_NUM_TXT_ID1)) { // document.getElementById(this.CHILD_NUM_TXT_ID2).innerHTML = htmlStr; //} }