1// JavaScript Document 2 3function chg_kitei(obj){ 4 if($(obj).prop('checked')){ 5 $('.btn_send').addClass('active'); 6 }else{ 7 $('.btn_send').removeClass('active'); 8 } 9} 10 11function InputCheck1mail(obj){ 12 if($(obj).hasClass('active') == false){ 13 alert('ã»ã³ã¹ãããç»é²ã»å©ç¨è¦å®ã«åæããã«ãã§ãã¯ãã¦ä¸ããã'); 14 return false; 15 } 16 17 var frm = document.frmMain; 18 19 20 if(frm.p_kana.value.replace(/ |ã/g,"") == ""){ 21 alert("ããååï¼ããªã¬ãï¼ããå ¥åãã¦ä¸ããã"); 22 frm.p_kana.focus(); 23 return false; 24 } 25 26 if(frm.p_name.value.replace(/ |ã/g,"") == ""){ 27 alert("ããååããå ¥åãã¦ä¸ããã"); 28 frm.p_name.focus(); 29 return false; 30 } 31 32 if(frm.p_mail.value.replace(/ |ã/g,"") == ""){ 33 alert("ãã¡ã¼ã«ã¢ãã¬ã¹ããå ¥åãã¦ä¸ããã"); 34 frm.p_mail.focus(); 35 return false; 36 } 37 if(frm.p_mail_check.value.replace(/ |ã/g,"") == ""){ 38 alert("確èªã®çºãããä¸åº¦ãã¡ã¼ã«ã¢ãã¬ã¹ããå ¥åãã¦ä¸ããã"); 39 frm.p_mail_check.focus(); 40 return false; 41 } 42 if(frm.p_mail.value != frm.p_mail_check.value){ 43 alert("ã¡ã¼ã«ã¢ãã¬ã¹ãä¸è´ãã¦ããã¾ãããå度ã確èªä¸ããã"); 44 frm.p_mail_check.focus(); 45 return false; 46 } 47 if(isMailAddress(frm.p_mail.value) == false){ 48 alert("ãã¡ã¼ã«ã¢ãã¬ã¹ãã䏿£ã§ãã"); 49 frm.p_mail.focus(); 50 return false; 51 } 52 53 if(window.confirm('ä»®ç»é²æ å ±ã®ã¡ã¼ã«èªè¨¼ãéä¿¡ãã¾ããå®ããã§ããï¼')){ 54 frm.p_key1.value = 'k30ahSkA3LoaB8s'; 55 frm.submit(); 56 return true; 57 } 58 return false; 59} 60 61function InputCheck1(obj){ 62 if($(obj).hasClass('active') == false){ 63 alert('ã»ã³ã¹ãããç»é²ã»å©ç¨è¦å®ã«åæããã«ãã§ãã¯ãã¦ä¸ããã'); 64 return false; 65 } 66 67 var frm = document.frmMain; 68 69 var ok_p_syozoku_kubun = 0; 70 for(i = 0; i < frm.p_syozoku_kubun.length;i++){ 71 if(frm.p_syozoku_kubun[i].checked){ 72 ok_p_syozoku_kubun = 1; 73 break; 74 } 75 } 76 if(ok_p_syozoku_kubun == 0){ 77 alert("ãæå±åºåãã鏿ãã¦ä¸ããã"); 78 frm.ok_p_syozoku_kubun.focus(); 79 return false; 80 } 81 82 if(frm.p_syozoku.value.replace(/ |ã/g,"") == ""){ 83 alert("ãæå±ããå ¥åãã¦ä¸ããã"); 84 frm.p_syozoku.focus(); 85 return false; 86 } 87 88 if(frm.p_yakusyoku1.value.replace(/ |ã/g,"") == ""){ 89 alert("ãå½¹è·ï¼ããå ¥åãã¦ä¸ããã"); 90 frm.p_yakusyoku1.focus(); 91 return false; 92 } 93 94 var ok_p_sex = 0; 95 for(i = 0; i < frm.p_sex.length;i++){ 96 if(frm.p_sex[i].checked){ 97 ok_p_sex = 1; 98 break; 99 } 100 } 101 if(ok_p_sex == 0){ 102 alert("ãæ§å¥ãã鏿ãã¦ä¸ããã"); 103 frm.p_sex.focus(); 104 return false; 105 } 106 107 if(frm.p_kana.value.replace(/ |ã/g,"") == ""){ 108 alert("ããååï¼ããªã¬ãï¼ããå ¥åãã¦ä¸ããã"); 109 frm.p_kana.focus(); 110 return false; 111 } 112 113 if(frm.p_name.value.replace(/ |ã/g,"") == ""){ 114 alert("ããååããå ¥åãã¦ä¸ããã"); 115 frm.p_name.focus(); 116 return false; 117 } 118 119 if(frm.p_mail.value.replace(/ |ã/g,"") == ""){ 120 alert("ãã¡ã¼ã«ã¢ãã¬ã¹ããå ¥åãã¦ä¸ããã"); 121 frm.p_mail.focus(); 122 return false; 123 } 124 if(frm.p_mail_check.value.replace(/ |ã/g,"") == ""){ 125 alert("確èªã®çºãããä¸åº¦ãã¡ã¼ã«ã¢ãã¬ã¹ããå ¥åãã¦ä¸ããã"); 126 frm.p_mail_check.focus(); 127 return false; 128 } 129 if(frm.p_mail.value != frm.p_mail_check.value){ 130 alert("ã¡ã¼ã«ã¢ãã¬ã¹ãä¸è´ãã¦ããã¾ãããå度ã確èªä¸ããã"); 131 frm.p_mail_check.focus(); 132 return false; 133 } 134 if(isMailAddress(frm.p_mail.value) == false){ 135 alert("ãã¡ã¼ã«ã¢ãã¬ã¹ãã䏿£ã§ãã"); 136 frm.p_mail.focus(); 137 return false; 138 } 139 140 if(frm.p_pswd.value.replace(/ |ã/g,"") == ""){ 141 alert("ããã¹ã¯ã¼ãããå ¥åãã¦ä¸ããã"); 142 frm.p_pswd.focus(); 143 return false; 144 } 145 if(frm.p_pswd_check.value.replace(/ |ã/g,"") == ""){ 146 alert("確èªã®çºãããä¸åº¦ããã¹ã¯ã¼ãããå ¥åãã¦ä¸ããã"); 147 frm.p_pswd_check.focus(); 148 return false; 149 } 150 if(frm.p_pswd.value != frm.p_pswd_check.value){ 151 alert("ãã¹ã¯ã¼ããä¸è´ãã¦ããã¾ãããå度ã確èªä¸ããã"); 152 frm.p_pswd_check.focus(); 153 return false;
154 } 155 if(isPassWord(frm.p_pswd.value) == false){ 156 alert("ããã¹ã¯ã¼ããã¯åè§è±æ°åããããã1種é¡ä»¥ä¸å«ã8æå以ä¸30æå以ä¸ã§å ¥åãã¦ä¸ããã"); 157 frm.p_pswd.focus(); 158 return false; 159 } 160 161 if(frm.p_zip.value.replace(/ |ã/g,"") == ""){ 162 alert("ãé£çµ¡å éµä¾¿çªå·ããå ¥åãã¦ä¸ããã"); 163 frm.p_zip.focus(); 164 return false; 165 } 166 if(frm.addr1.value.replace(/ |ã/g,"") == ""){ 167 alert("ãé½éåºçããå ¥åãã¦ä¸ããã"); 168 frm.addr1.focus(); 169 return false; 170 } 171 if(frm.addr2.value.replace(/ |ã/g,"") == ""){ 172 alert("ãå¸åºçºæããå ¥åãã¦ä¸ããã"); 173 frm.addr2.focus(); 174 return false; 175 } 176 if(frm.p_tel.value.replace(/ |ã/g,"") == ""){ 177 alert("ãé£çµ¡å é»è©±çªå·ããå ¥åãã¦ä¸ããã"); 178 frm.p_tel.focus(); 179 return false; 180 } 181 182 if(frm.p_senmon_bunya.value.replace(/ |ã/g,"") == ""){ 183 alert("ãå°éåéããå ¥åãã¦ä¸ããã"); 184 frm.p_senmon_bunya.focus(); 185 return false; 186 } 187 188 var ok_kao_icon = 0; 189 for(i = 0; i < frm.kao_icon.length;i++){ 190 if(frm.kao_icon[i].checked){ 191 ok_kao_icon = 1; 192 break; 193 } 194 } 195 if(ok_kao_icon == 0){ 196 alert("ãé¡ã¢ã¤ã³ã³ãã鏿ãã¦ä¸ããã"); 197 frm.kao_icon.focus(); 198 return false; 199 } 200 201 if(window.confirm('ä»®ç»é²æ å ±ãéä¿¡ãã¾ããå®ããã§ããï¼')){ 202 frm.p_key1.value = 'k30ahSkA3LoaB8s'; 203 frm.submit(); 204 return true; 205 } 206 return false; 207} 208 209function InputCheck2(){ 210 var frm = document.frmMain; 211 212 213 if(frm.p_subject.value.replace(/ |ã/g,"") == ""){ 214 alert("ãä»¶åããå ¥åãã¦ä¸ããã"); 215 frm.p_subject.focus(); 216 return false; 217 } 218 219 if(frm.p_msg.value.replace(/ |ã/g,"") == ""){ 220 alert("ãã¡ãã»ã¼ã¸ããå ¥åãã¦ä¸ããã"); 221 frm.p_msg.focus(); 222 return false; 223 } 224 225 if(window.confirm('ã³ã³ã¿ã¯ããéä¿¡ãã¾ããå®ããã§ããï¼')){ 226 frm.p_key1.value = 'ja7JSiBLqjksaJ8e'; 227 frm.submit(); 228 return true; 229 } 230 return false; 231} 232 233 234function InputCheckLogin(){ 235 var frm = document.frmMain; 236 237 if(frm.p_id.value.replace(/ |ã/g,"") == ""){ 238 alert("ãIDããå ¥åãã¦ä¸ããã"); 239 frm.p_id.focus(); 240 return false; 241 } 242 if(frm.p_pswd.value.replace(/ |ã/g,"") == ""){ 243 alert("ããã¹ã¯ã¼ãããå ¥åãã¦ä¸ããã"); 244 frm.p_pswd.focus(); 245 return false; 246 } 247 248 frm.p_key1.value = '93jSimbUSkmb5H2k'; 249 frm.submit(); 250 return true; 251} 252 253function InputRepswd(){ 254 var frm = document.frmMain; 255 256 if(frm.p_mail.value.replace(/ |ã/g,"") == ""){ 257 alert("ãã¡ã¼ã«ã¢ãã¬ã¹ããå ¥åãã¦ä¸ããã"); 258 frm.p_mail.focus(); 259 return false; 260 } 261 262 frm.p_key1.value = 'aryS9oB9wnU2w09Ka'; 263 frm.submit(); 264 return true; 265} 266function InputRepswd2(){ 267 var frm = document.frmMain; 268 269 if(frm.p_pswd.value.replace(/ |ã/g,"") == ""){ 270 alert("ããã¹ã¯ã¼ãããå ¥åãã¦ä¸ããã"); 271 frm.p_pswd.focus(); 272 return false; 273 } 274 if(isPassWord(frm.p_pswd.value) == false){ 275 alert("ããã¹ã¯ã¼ããã¯åè§è±æ°åããããã1種é¡ä»¥ä¸å«ã8æå以ä¸30æå以ä¸ã§å ¥åãã¦ä¸ããã"); 276 frm.p_pswd.focus(); 277 return false; 278 } 279 280 frm.p_key1.value = 'o9qyaEiw48SOow8yq'; 281 frm.submit(); 282 return true; 283} 284 285function getAddr(){ 286 var zipcode = $('#zip').val(); 287 $.ajax({ 288 type : 'GET', 289 url : 'https://zip-cloud.appspot.com/api/search', 290 data : { 291 zipcode : zipcode 292 }, 293 dataType: 'jsonp', 294 success : function(json) 295 { 296 //console.log(json); 297 if ( json.status == '200' ) { 298 // success 299 if(json.results){ 300 $('input[name="addr1"]').val(json.results[0]["address1"]); 301 $('input[name="addr2"]').val(json.results[0]["address2"]); 302 $('input[name="addr3"]').val(json.results[0]["address3"]); 303 }else{ 304 alert("éµä¾¿çªå·ãã¼ã¿ãè¦ã¤ããã¾ããã§ããã"); 305 } 306 } else { 307 // fail 308 alert(json.message); 309 } 310 } 311 }); 312} 313 314 315 316 317function isMailAddress(mailAddr) { 318 if (mailAddr.match("^[0-9A-Za-z._=\*\+\-]+@[0-9A-Za-z._=\*\+\-]+$")) { 319 return true; 320 } else { 321 return false; 322 } 323} 324function isPassWord(pswd) { 325 //åè§è±æ°åããããã1種é¡ä»¥ä¸å«ã8æå以ä¸30æåä»¥ä¸ 326 if ( pswd.match( /^(?=.*?[a-z])(?=.*?\d)[a-z\d]{8,30}$/i ) ) { 327 return true; 328 }else{ 329 return false;
330 } 331}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.