|\'%=]")){window.alert("名前に使用できない文字が含まれています。");b.focus();return}' . 'f.nam.value=c;' . 'a="txt_rem_"+m;var b=document.getElementById(a).value;f.rem.value=b;' . 'f.mac.value=m;f.mode.value="_edit";f.exc.value="1";f.submit()' . '}' . 'function onRemove(f,m,i){' . 'var a="txt_name_"+m;var b=document.getElementById(a).value;' . 'b=b.replace(/(^[\s ]+)|([\s ]+$)/g,"");if(b.length==0){b="このライセンス"}' . 'if(!window.confirm(b+" を抹消しますか?\n\n使用中のライセンスを抹消すると、\n当該のライセンスで登録している商品が\nご利用いただけなくなります。")){return}' . 'if(i){' . 'var c=document.getElementById("frm_dialog");c.serial.value=f.serial.value;c.mac.value=m;' . 'var d=document.getElementsByName("rad_inheritance");for(var x=0;x|\'%=]")){window.alert("The character that cannot be used for the name is included.");b.focus();return}' . 'f.nam.value=c;' . 'a="txt_rem_"+m;var b=document.getElementById(a).value;f.rem.value=b;' . 'f.mac.value=m;f.mode.value="_edit";f.exc.value="1";f.submit()' . '}' . 'function onRemove(f,m,i){' . 'var a="txt_name_"+m;var b=document.getElementById(a).value;' . 'b=b.replace(/(^[\s ]+)|([\s ]+$)/g,"");if(b.length==0){b="this license"}' . 'if(!window.confirm("Do you delete "+b+"?\n\nWhen you delete the license in use,\nyou cannot use the products that you have registered with that license.")){return}' . 'if(i){' . 'var c=document.getElementById("frm_dialog");c.serial.value=f.serial.value;c.mac.value=m;' . 'var d=document.getElementsByName("rad_inheritance");for(var x=0;x\');$("#frm_main input[name=\'mode\']").val("_list");$("#frm_main").submit()});' . '$("#btn_prev").click(function(){$("#frm_main input[name=\'mode\']").val("_p02");$("#frm_main").submit()});' . '$("#btn_next").click(function(){if(!window.confirm("この内容でお申し込みを確定します。\nよろしいですか?")){return}$("#frm_main input[name=\'exc\']").val("1");$("#frm_main").submit()});'; } else{ //英語 $jq = '$("#btn_cancel").click(function(){$("#frm_main>div").append(\'\');$("#frm_main input[name=\'mode\']").val("_list");$("#frm_main").submit()});' . '$("#btn_prev").click(function(){$("#frm_main input[name=\'mode\']").val("_p02");$("#frm_main").submit()});' . '$("#btn_next").click(function(){if(!window.confirm("Will accept this application.")){return}$("#frm_main input[name=\'exc\']").val("1");$("#frm_main").submit()});'; } break; case '_p02': if($domestic){ //日本語 $jq = '$("#btn_cancel").click(function(){$("#frm_main>div").append(\'\');$("#frm_main input[name=\'mode\']").val("_list");$("#frm_main").submit()});' . '$("#btn_prev").click(function(){$("#frm_main input[name=\'mode\']").val("_p01");$("#frm_main").submit()});' . '$("#btn_next").click(' . 'function(){' . 'var a=$("input[name=\'rad_method\']:checked").val();if(!a){window.alert("お支払い方法を選択してください。");return}' . '$("#frm_main input[name=\'exc\']").val("1");$("#frm_main").submit()' . '}' . ')'; } else{ //英語 $jq = '$("#btn_cancel").click(function(){$("#frm_main>div").append(\'\');$("#frm_main input[name=\'mode\']").val("_list");$("#frm_main").submit()});' . '$("#btn_prev").click(function(){$("#frm_main input[name=\'mode\']").val("_p01");$("#frm_main").submit()});' . '$("#btn_next").click(' . 'function(){' . 'var a=$("input[name=\'rad_method\']:checked").val();if(!a){window.alert("Please select your method of payment.");return}' . '$("#frm_main input[name=\'exc\']").val("1");$("#frm_main").submit()' . '}' . ')'; } break; case '_p01': default: if($domestic){ //日本語 $jq = '$("#btn_cancel").click(function(){$("#frm_main>div").append(\'\');$("#frm_main input[name=\'mode\']").val("_list");$("#frm_main").submit()});' . '$("#btn_next").click(' . 'function(){' . 'var a=$("input[name=\'rad_years\']:checked").val();if(!a){window.alert("延長期間を選択してください。");return}' . '$("#frm_main input[name=\'exc\']").val("1");$("#frm_main").submit()' . '}' . ');'; } else{ //英語 $jq = '$("#btn_cancel").click(function(){$("#frm_main>div").append(\'\');$("#frm_main input[name=\'mode\']").val("_list");$("#frm_main").submit()});' . '$("#btn_next").click(' . 'function(){' . 'var a=$("input[name=\'rad_years\']:checked").val();if(!a){window.alert("Please select the extension period.");return}' . '$("#frm_main input[name=\'exc\']").val("1");$("#frm_main").submit()' . '}' . ');'; } break; } break; case 'transfer': switch($_REQUEST['m']){ case '_complete': break; case '_list': default: if($domestic){ //日本語 $jq = '$("#txt_date").datepicker({dateFormat:"yy/mm/dd",maxDate:'.sprintf("new Date(%d,%d-1,%d)", date('Y'), date('m'), date('d')).',showOn:"button",showButtonPanel:true,inline:true});' . '$("#btn_select_all").click(function(){$("input[name=\'chk_bill[]\']").prop("checked",true)});' . '$("#btn_release_all").click(function(){$("input[name=\'chk_bill[]\']").prop("checked",false)});' . '$("#frm_main").submit(' . 'function(){' . 'var a=$.trim($("#txt_date").val());if(a.length==0){window.alert("振込日を正しく入力してください。");$("#txt_date").focus();return false}' //ありえん . 'if($("input[name=\'chk_bill[]\']:checked").length==0){window.alert("お振込みが完了したお申し込みにチェックを入れてください。");return false}' . '$("#exc").val("1");return true' . '}' . ');'; } else{ //英語 $jq = '$("#txt_date").datepicker({dateFormat:"yy/mm/dd",maxDate:'.sprintf("new Date(%d,%d-1,%d)", date('Y'), date('m'), date('d')).',showOn:"button",showButtonPanel:true,inline:true});' . '$("#btn_select_all").click(function(){$("input[name=\'chk_bill[]\']").prop("checked",true)});' . '$("#btn_release_all").click(function(){$("input[name=\'chk_bill[]\']").prop("checked",false)});' . '$("#frm_main").submit(' . 'function(){' . 'var a=$.trim($("#txt_date").val());if(a.length==0){window.alert("Please set correct transfer day.");$("#txt_date").focus();return false}' //ありえん . 'if($("input[name=\'chk_bill[]\']:checked").length==0){window.alert("Please check on application that is completed Registration payment.");return false}' . '$("#exc").val("1");return true' . '}' . ');'; } $js = 'function onMenu(p){var f=document.getElementById("frm_menu");f.proc.value=p;f.submit()}' . 'function onReceipt(o){w=window.open("https://itf.bz/myitf/receipt.php?oid="+o,null,"scrollbars=yes,width=750,height=750");if(w){w.focus()}}'; break; } break; case 'account': if($domestic){ //日本語 $jq = '$(document).ready(function(){$("div.info").fadeIn().queue(function(){setTimeout(function(){$("div.info").dequeue()},3000)});$("div.info").fadeOut(2000,function(){$(this).remove()})});' . '$(".jquery-ui-sortable").sortable({connectWith:".jquery-ui-sortable"});' . '$(".jquery-ui-sortable").disableSelection();' . '$("#dlg_inheritance").dialog({' . 'width:480,' . 'height:"auto",' . 'autoOpen:false,' . 'modal:true,' . 'title:"アカウントの統合",' . 'open:' . 'function(e,u){var a=$("div").find(".warning");if(a){a.remove()}}' . '});' . '$("#btn_submit").click(' . 'function(){' . 'var a=$("div").find(".warning");if(a){a.remove()}' /* エラー表示があれば消す */ . 'if(!$("input:radio[name=\'rad_inheritance\']:checked").val()){' . '$("#dlg_inheritance hr").before("' . '
' . '\'\' ' . '統合先アカウントを指定してください。' . '
' . '");' . 'return' . '}' . '$("#frm_main input[name=\'mode\']").val("_inheritance");$("#frm_main input[name=\'exc\']").val("1");$("#frm_main").submit()' . '}' . ');' . '$("#btn_cancel").click(function(){$("#dlg_inheritance").dialog("close")});'; $js = 'function onDelete(m){' . 'if(window.confirm("このNETセキュリティアカウントを本当に削除しますか?\n\nアカウントを削除すると、それに紐付いたITFファイルが\n閲覧できなくなります。")){' . 'var f=document.getElementById("frm_main");f.mac.value=m;f.mode.value="_delete";f.exc.value="1";f.submit()' . '}' . '}' . 'function onInheritance(m){' . 'var f=document.getElementById("frm_main");f.mac.value=m;' . '$("#dlg_inheritance").dialog("open");return' . '}' . 'function onMenu(p){var f=document.getElementById("frm_menu");f.proc.value=p;f.submit()}'; } else{ //英語 $jq = '$(document).ready(function(){$("div.info").fadeIn().queue(function(){setTimeout(function(){$("div.info").dequeue()},3000)});$("div.info").fadeOut(2000,function(){$(this).remove()})});' . '$(".jquery-ui-sortable").sortable({connectWith:".jquery-ui-sortable"});' . '$(".jquery-ui-sortable").disableSelection();' . '$("#dlg_inheritance").dialog({' . 'width:480,' . 'height:"auto",' . 'autoOpen:false,' . 'modal:true,' . 'title:"Account integration",' . 'open:' . 'function(e,u){var a=$("div").find(".warning");if(a){a.remove()}}' . '});' . '$("#btn_submit").click(' . 'function(){' . 'var a=$("div").find(".warning");if(a){a.remove()}' /* エラー表示があれば消す */ . 'if(!$("input:radio[name=\'rad_inheritance\']:checked").val()){' . '$("#dlg_inheritance hr").before("' . '
' . '\'\' ' . 'Chose destination account.' . '
' . '");' . 'return' . '}' . '$("#frm_main input[name=\'mode\']").val("_inheritance");$("#frm_main input[name=\'exc\']").val("1");$("#frm_main").submit()' . '}' . ');' . '$("#btn_cancel").click(function(){$("#dlg_inheritance").dialog("close")});'; $js = 'function onDelete(m){' . 'if(window.confirm("Do you really want to delete this account?")){' . 'var f=document.getElementById("frm_main");f.mac.value=m;f.mode.value="_delete";f.exc.value="1";f.submit()' . '}' . '}' . 'function onInheritance(m){' . 'var f=document.getElementById("frm_main");f.mac.value=m;' . '$("#dlg_inheritance").dialog("open");return' . '}' . 'function onMenu(p){var f=document.getElementById("frm_menu");f.proc.value=p;f.submit()}'; } break; case 'user': switch($_REQUEST['m']){ case '_complete': break; case '_edit': default: if($domestic){ //日本語 $jq = '$("input[name=\'rad_attr\']").click(function(){if($(this).val()!="0"){$("#txt_charge").attr("disabled","disabled");$("#txt_section").attr("disabled","disabled")}else{$("#txt_charge").removeAttr("disabled");$("#txt_section").removeAttr("disabled")}});' . '$("#btn_search").zip({zip3:"#txt_zip3",zip4:"#txt_zip4",pref:"#sel_pref",addr:"#txt_addr1"});' . '$("#frm_main").submit(' . 'function(){' . 'var a=$("input[name=\'rad_attr\']:checked").val();b=$.trim($("#txt_name").val());' . 'if(b.length==0){' . 'if(a!="0"){window.alert("お名前を入力してください。")}else{window.alert("貴社名を入力してください。")}' . '$("#txt_name").focus();return false' . '}' . 'if($("#sel_pref").val()=="0"){' . 'window.alert("都道府県を選択してください。");' . '$("#sel_pref").focus();return false' . '}' . 'b=$.trim($("#txt_addr1").val());' . 'if(b.length==0){' . 'window.alert("市区町村以下の住所を入力してください。");' . '$("#txt_addr1").focus();return false' . '}' . 'b=$.trim($("#txt_email").val());' . 'if(b.length>0){' . 'if(!b.match(/^[a-zA-Z0-9!$&*.=^`|~#%\'+\/?_{}-]+@([a-zA-Z0-9_-]+\.)+[a-zA-Z]{2,4}$/)){' . 'window.alert("E-Mailを正しく入力してください。");' . '$("#txt_email").focus();return false' . '}' . '}' . 'else{' . 'window.alert("E-Mailを入力してください。");' . '$("#txt_addr1").focus();return false' . '}' . 'if(!window.confirm("ユーザー情報を更新します。よろしいですか?")){return false}' . '$("#exc").val("1");return true' . '}' . ');'; } else{ //英語 $jq = '$("input[name=\'rad_attr\']").click(function(){if($(this).val()!="0"){$("#txt_charge").attr("disabled","disabled");$("#txt_section").attr("disabled","disabled")}else{$("#txt_charge").removeAttr("disabled");$("#txt_section").removeAttr("disabled")}});' . '$("#frm_main").submit(' . 'function(){' . 'var a=$("input[name=\'rad_attr\']:checked").val();b=$.trim($("#txt_name").val());' . 'if(b.length==0){' . 'if(a!="0"){window.alert("Please enter your name.")}else{window.alert("Please enter the name of your company.")}' . '$("#txt_name").focus();return false' . '}' . 'b=$.trim($("#txt_addr1").val());' . 'if(b.length==0){' . 'window.alert("Please enter your address.");' . '$("#txt_addr1").focus();return false' . '}' . 'b=$.trim($("#txt_email").val());' . 'if(b.length>0){' . 'if(!b.match(/^[a-zA-Z0-9!$&*.=^`|~#%\'+\/?_{}-]+@([a-zA-Z0-9_-]+\.)+[a-zA-Z]{2,4}$/)){' . 'window.alert("The email address is not correct.");' . '$("#txt_email").focus();return false' . '}' . '}' . 'else{' . 'window.alert("Please enter the email address.");' . '$("#txt_addr1").focus();return false' . '}' . 'if(!window.confirm("Do you want to update your user information?")){return false}' . '$("#exc").val("1");return true' . '}' . ');'; } break; } $js = 'function onMenu(p){var f=document.getElementById("frm_menu");f.proc.value=p;f.submit()}'; break; case 'login': switch($_REQUEST['m']){ case '_complete': break; case '_edit': default: if($domestic){ //日本語 $jq = '$("#chk_id").click(function(){if($(this).prop("checked")){$("#txt_id").removeAttr("disabled")}else{$("#txt_id").attr("disabled","disabled")}});' . '$("#chk_password").click(' . 'function(){' . 'if($(this).prop("checked")){' . '$("#txt_current").removeAttr("disabled");' . '$("#txt_password").removeAttr("disabled");' . '$("#txt_verify").removeAttr("disabled")' . '}' . 'else{' . '$("#txt_current").attr("disabled","disabled");' . '$("#txt_password").attr("disabled","disabled");' . '$("#txt_verify").attr("disabled","disabled")' . '}' . '}' . ');' . '$("#frm_main").submit(' . 'function(){' . 'var a=false;var b=$.trim($("txt_id").val());$("txt_id").val(b);' . 'b=$.trim($("txt_current").val());$("txt_current").val(b);' . 'b=$.trim($("txt_password").val());$("txt_password").val(b);' . 'b=$.trim($("txt_verify").val());$("txt_verify").val(b);' . 'if($("#chk_id").prop("checked")){' . 'a=true;b=$("#txt_id").val();' . 'if(b.length>=8&&b.length<=32){if(b.match(/[^0-9A-Za-z]+/)){window.alert("ログインIDには、半角英数字以外は使用できません。");$("#txt_id").focus();return false}}else{window.alert("ログインIDは、8~32文字の範囲で入力してください。");$("#txt_id").focus();return false}' . '}' . 'if($("#chk_password").prop("checked")){' . 'a=true;b=$("#txt_current").val();' . 'if(b.length==0){window.alert("現在のパスワードを入力してください。");$("#txt_current").focus();return false}' . 'b=$("#txt_password").val();' . 'if(b.length>=8&&b.length<=32){' . 'if(b.match(/[^0-9A-Za-z]+/)){window.alert("パスワードには、半角英数字以外は使用できません。");$("#txt_password").focus();return false}' . '}' . 'else{' . 'window.alert("パスワードは、8~32文字の範囲で入力してください。");$("#txt_password").focus();return false' . '}' . 'b=$("#txt_verify").val();' . 'if(b.length>0){' . 'if(b!=$("#txt_password").val()){window.alert("パスワードが一致しません。");$("#txt_verify").focus();return false}' . '}' . 'else{' .'window.alert("確認のため、もう一度パスワードを入力してください。");$("#txt_verify").focus();return false' . '}' . '}' . 'if(!a){window.alert("変更する項目にチェックを入れてください。");return false}' . '$("#exc").val("1");return true' . '}' . ');'; } else{ //英語 $jq = '$("#chk_id").click(function(){if($(this).prop("checked")){$("#txt_id").removeAttr("disabled")}else{$("#txt_id").attr("disabled","disabled")}});' . '$("#chk_password").click(' . 'function(){' . 'if($(this).prop("checked")){' . '$("#txt_current").removeAttr("disabled");' . '$("#txt_password").removeAttr("disabled");' . '$("#txt_verify").removeAttr("disabled")' . '}' . 'else{' . '$("#txt_current").attr("disabled","disabled");' . '$("#txt_password").attr("disabled","disabled");' . '$("#txt_verify").attr("disabled","disabled")' . '}' . '}' . ');' . '$("#frm_main").submit(' . 'function(){' . 'var a=false;var b=$.trim($("txt_id").val());$("txt_id").val(b);' . 'b=$.trim($("txt_current").val());$("txt_current").val(b);' . 'b=$.trim($("txt_password").val());$("txt_password").val(b);' . 'b=$.trim($("txt_verify").val());$("txt_verify").val(b);' . 'if($("#chk_id").prop("checked")){' . 'a=true;b=$("#txt_id").val();' . 'if(b.length>=8&&b.length<=32){if(b.match(/[^0-9A-Za-z]+/)){window.alert("The character that cannot be used for the login ID is included.");$("#txt_id").focus();return false}}else{window.alert("Please enter the login ID, using 8 to 32 letters.");$("#txt_id").focus();return false}' . '}' . 'if($("#chk_password").prop("checked")){' . 'a=true;b=$("#txt_current").val();' . 'if(b.length==0){window.alert("Please enter the current password.");$("#txt_current").focus();return false}' . 'b=$("#txt_password").val();' . 'if(b.length>=8&&b.length<=32){' . 'if(b.match(/[^0-9A-Za-z]+/)){window.alert("The character that cannot be used for the password is included.");$("#txt_password").focus();return false}' . '}' . 'else{' . 'window.alert("Please enter the password, using 8 to 32 letters.");$("#txt_password").focus();return false' . '}' . 'b=$("#txt_verify").val();' . 'if(b.length>0){' . 'if(b!=$("#txt_password").val()){window.alert("Please check the new password.");$("#txt_verify").focus();return false}' . '}' . 'else{' .'window.alert("Please enter the password.");$("#txt_verify").focus();return false' . '}' . '}' . 'if(!a){window.alert("Please make a check for the item to be chaned.");return false}' . '$("#exc").val("1");return true' . '}' . ');'; } $js = 'function onMenu(p){var f=document.getElementById("frm_menu");f.proc.value=p;f.submit()}'; break; } break; case 'home': switch($_REQUEST['m']){ case '_detail': $js = 'function onMenu(p){var f=document.getElementById("frm_menu");f.proc.value=p;f.submit()}'; break; case '_list': default: $jq = '$("#page").change(function(){$("#frm_main").submit()});'; $js = 'function onMenu(p){var f=document.getElementById("frm_menu");f.proc.value=p;f.submit()}' . 'function onPager(p){var f=document.getElementById("frm_main");f.page.value=p;f.submit()}' . 'function onTopic(e){var f=document.getElementById("frm_main");f.topic.value=e;f.mode.value="_detail";f.submit()}'; break; } break; } //$jsが空の場合、メニュー制御用関数を記述 if(strlen($js) == 0) $js = 'function onMenu(p){var f=document.getElementById("frm_menu");f.proc.value=p;f.submit()}'; } else{ //認証ページ if($domestic){ //日本語 $jq = '$(window).load(function(){$("#txt_id").focus()});' . '$("#txt_id").blur(function(){$("#txt_password").focus()});' . '$("#frm_attest").submit(' . 'function(){' . 'var a=$.trim($("#txt_id").val());var b=$.trim($("#txt_password").val());' . 'if(a.length==0){window.alert("ログインIDを入力してください。");$("#txt_id").focus();return false}' . 'if(b.length==0){window.alert("パスワードを入力してください。");$("#txt_password").focus();return false}' . '$("#exc").val("1");return true' . '}' . ');'; } else{ //英語 $jq = '$(window).load(function(){$("#txt_id").focus()});' . '$("#txt_id").blur(function(){$("#txt_password").focus()});' . '$("#frm_attest").submit(' . 'function(){' . 'var a=$.trim($("#txt_id").val());var b=$.trim($("#txt_password").val());' . 'if(a.length==0){window.alert("Please enter the login ID.");$("#txt_id").focus();return false}' . 'if(b.length==0){window.alert("Please enter the password.");$("#txt_password").focus();return false}' . '$("#exc").val("1");return true' . '}' . ');'; } } $script = '$(function(){' . '$(this).tfvieween({' . 'image_path:"https://itf.bz/img/pagetop.png",' . 'image_width:40,' . 'image_height:40,' . 'image_opacity:.7,' . 'hover_image:"https://itf.bz/img/pagetop.png"' . '});' /* imgタグにtitleを追加する */ . '$("img[alt]").each(' . 'function(){' . 'var a=$(this).attr("alt");' . 'if(a.length>0&&!$(this).attr("title")){$(this).attr("title",a)}' . '}' . ');' /* ページ内アンカーへの移動をアニメ化する */ . '$("a[href^=#]").click(function(){var s=500;var h=$(this).attr("href");var t=$(h=="#"||h==""?"html":h);var p=t.offset().top;$("html,body").animate({scrollTop:p},s,"swing");return false});' . $jq . '});' . $js; ob_start('ob_gzhandler'); header('Content-type:text/javascript; charset:UTF-8'); echo $script; ob_end_flush(); exit(); ?>