//************************************ // 日付変更 //************************************ function jf_CngMonth(pPage){ document.frm.action="?mode=info&state="+pPage; document.frm.submit(); } //************************************ // ご要望送信 //************************************ function jf_SubmitMail(){ if(document.frm.name.value==""){ alert("お名前が入力されていません"); document.frm.name.focus(); return; } if(document.frm.mail.value==""){ alert("メールアドレスが入力されていません"); document.frm.mail.focus(); return; } if( !document.frm.mail.value.match(/^[0-9a-zA-Z\-\_\.]+@[0-9a-zA-Z\-\_\.]+$/) ){ alert("\""+document.frm.mail.value+"\"は適切なアドレスではありません"); document.frm.mail.focus(); return; } if(document.frm.note.value==""){ alert("お問い合わせ内容がが入力されていません"); document.frm.note.focus(); return; } if(!confirm("入力内容で送信してもよろしいですか?")) return; document.frm.action = "?mode=info&state=youbo&exec=1"; document.frm.submit(); } //************************************************************************************** //////////////////// 指定サイズでウィンドウを開き、センターに表示 ////////////////// //-------------------------------------------------------------------------------------- // gf_OpenNewWindow(URL,NAME,SIZE) // SIZEは、"width=800:height=600"のように入力してください //************************************************************************************** function gf_OpenNewWindow(pURL,pName,pSize){ var wWidth,wHeight; var wSize,wFeatures; var wLeft,wTop,PositionX,PositionY; wWidth = window.screen.availWidth/2; wHeight = window.screen.availHeight/2; wSize = pSize.split(":"); wLeft = wSize[0].split("="); wTop = wSize[1].split("="); PositionX = wWidth-wLeft[1]/2; PositionY = wHeight-wTop[1]/2; wFeatures = wSize+",left="+PositionX+",top="+PositionY; wWindow = window.open(pURL,pName,wFeatures+",scrollbars=yes,status=yes,resizable=yes"); wWindow.focus(); } //******************************** // バイト数チェック //******************************** function gf_GetLength(value){ var i,nCnt=0; for(i=0; i= 4 ) nCnt+=2; else nCnt++; } return nCnt; } //******************************************* // 『リセットボタン』 //******************************************* function jf_Reset(){ obj = eval("document.frm.elements"); wEleNo = obj.length; for(i = 0; i < wEleNo; i++){ if(obj[i].type == "checkbox"){ obj[i].checked = false; }else if(obj[i].type == "select-one"){ obj[i].options[0].selected = true; }else{ obj[i].value = ""; } } } //******************************************* // 『ライブヘルプ』 //******************************************* function jf_LiveHelpWindow(){ window.open('http://**************'+document.location,'chat27994997','width=472,height=320'); } //******************************************* // 『画像変更』 //******************************************* function jf_ChgImg(pMenu,pImgType,pMode){ pImgHost = ""; //document.images[pMenu].src = pImgHost + pMode+"/img/"+ pMenu + pImgType + ".gif"; document.images[pMenu].src = "./files/"+ pMenu + pImgType + ".jpg"; } //******************************************* // 『用語集ウィンドウ』 //******************************************* function jf_ShowYogosyu(pGyo){ wUrl = "./access_small.php"; gf_OpenNewWindow(wUrl, "ACCESS", "width=500:height=460"); } //******************************************* // 『アカウントチェック』 //******************************************* function jf_ChkAccount(){ if( document.frm_acchk.acchk_account.value == ""){ alert("ご希望アカウント名が入力されていません"); document.frm_acchk.acchk_account.focus(); return; } if( document.frm_acchk.acchk_account.value.match(/[^0-9A-Za-z\-]/) ){ alert("アカウント名に使えない文字が入力されています"); document.frm_acchk.acchk_account.focus(); return; } if( gf_GetLength(document.frm_acchk.acchk_account.value) < 3 || gf_GetLength(document.frm_acchk.acchk_account.value) > 16 ){ alert("アカウント名は3文字以上26文字以内で入力ください"); document.frm_acchk.acchk_account.focus(); return; } if( document.frm_acchk.acchk_domain_id.value == ""){ alert("ドメインが選択されていません"); document.frm_acchk.acchk_domain_id.focus(); return; } document.frm_acchk.action = "https://***************"; document.frm_acchk.submit(); } //******************************************* // 『よくある質問検索』 //******************************************* function jf_SchFaq(){ if( document.frm_faq.faq_word.value == ""){ alert("検索キーワードを入力ください"); document.frm_faq.faq_word.focus(); return; } document.frm_faq.action = "http://*********"; document.frm_faq.submit(); } //******************************************* // 『 利用規約 』 //******************************************* function jf_KiyakuWindow(){ wUrl = "?mode=order&state=order&state2=kiyaku"; gf_OpenNewWindow(wUrl,"ORDER_SUB","width=600:height=560"); } //******************************************* // 『 利用規約(2005年8月施行) 』 //******************************************* function jf_Kiyaku0508Window(){ wUrl = "?mode=order&state=order&state2=kiyaku_0508"; gf_OpenNewWindow(wUrl,"ORDER_SUB","width=600:height=560"); } //******************************************* // 『 禁止事項 』 //******************************************* function jf_KinshiWindow(){ wUrl = "?mode=order&state=order&state2=kinshi"; gf_OpenNewWindow(wUrl,"ORDER_SUB","width=600:height=560"); } //******************************************* // 『 禁止事項(2007年9月〜の案内) 』 //******************************************* function jf_Kinshi0708Window(){ wUrl = "?mode=order&state=order&state2=kinshi_0708"; gf_OpenNewWindow(wUrl,"ORDER_SUB","width=600:height=560"); } //******************************************* // 『 スパム 』 //******************************************* function jf_SpamWindow(){ wUrl = "?mode=order&state=order&state2=spam"; gf_OpenNewWindow(wUrl,"ORDER_SUB","width=600:height=560"); } //******************************************* // 『 商業利用 』 //******************************************* function jf_SyogyoWindow(){ wUrl = "?mode=order&state=order&state2=syogyo"; gf_OpenNewWindow(wUrl,"ORDER_SUB","width=600:height=560"); } //******************************************* // 『 注意事項 』 //******************************************* function jf_CyuiWindow(){ wUrl = "?mode=order&state=order&state2=cyui"; gf_OpenNewWindow(wUrl,"ORDER_SUB","width=600:height=560"); } //******************************************* // 『 ウィンドウ 』 //******************************************* function jf_ShowNinjya(){ wUrl = "?mode=support&state=oshiete_chat_4-1"; gf_OpenNewWindow(wUrl,"OSHIETE","width=600:height=450"); }