Current Path : /home/tools/fm/tml_admin/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/tools/fm/tml_admin/user_formmail.js |
<!-- function popup(script, str, width, height) { window.open(script+str, "", "menubar=yes,toolbar=yes,location=yes,directries=no,status=yes,scrollbars=yes,resizable=yes,width="+width+",height="+height); } function popup0(script) { window.open(script, ""); } function checkempty(target) { array = target.split(","); empty = 0; empty_check = 0; for (h = 0; h < array.length; h++) { for (i = 0; i < document.forms[0].elements.length; i++) { if (document.forms[0].elements[i].name == array[h]) { // input type => radio, checkbox if (document.forms[0].elements[i].type == "radio" || document.forms[0].elements[i].type == "checkbox") { if (document.forms[0].elements[i].checked == true) { empty_check = 0; break; } else { empty_check = 1; } // input type text, select } else { if (document.forms[0].elements[i].value == "") { empty = 1; } } } } if (empty_check == 1) { empty = 1; empty_check = 0; } } msg = '必須入力項目に空欄があります。'; if (empty == 1) { alert(msg); return false; } } function zip2addr0(zip00, zip01, pref0, addr0, mode) { var width = 450; var height = 500; var zip0 = ''; var zip1 = ''; for (i = 0; i < document.forms[0].length; i++) { if (document.forms[0].elements[i].name == zip00) { zip0 = document.forms[0].elements[i].value; } if (document.forms[0].elements[i].name == zip01) { zip1 = document.forms[0].elements[i].value; } } popup('fmzip.cgi', '?action=1&zip=' + zip0 + zip1 + '&zip0=' + zip00 + '&zip1=' + zip01 + '&pref0=' + pref0 + '&addr0=' + addr0 + '&type=0&mode=' + mode, width, height); } function zip2addr1(zip0, pref0, addr0, mode) { var width = 450; var height = 500; var zip = ''; for (i = 0; i < document.forms[0].length; i++) { if (document.forms[0].elements[i].name == zip0) { zip = document.forms[0].elements[i].value; } } popup('fmzip.cgi', '?action=1&zip=' + zip + '&zip0=' + zip0 + '&pref0=' + pref0 + '&addr0=' + addr0 + '&type=1&mode=' + mode, width, height); } -->