PageSourceSearch

https://www.aumygod.com.tw/include/store.js

js aumygod.com.tw collected 2026-10-07 08:16:26 UTC 23,037 bytes, 777 lines download raw bytes

1/*function total_ajax(id,pro_id,key,transport_price,transport_limit_price,size){//產品總計
2	var xmlHttp;
3	var url='total_ajax.php?act=show_total&id='+id+'&pro_id='+pro_id+'&useno='+key+'&transport_price='+transport_price+'&transport_limit_price='+transport_limit_price+'&size='+size;
4	if (window.ActiveXObject) { 
5  		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
6	}else if(window.XMLHttpRequest){ 
7   		xmlHttp = new XMLHttpRequest();
8 	} 
9 	xmlHttp.onreadystatechange = function(){
10  		if(xmlHttp.readyState == 4){
11			data_array=xmlHttp.responseText;
12            var arrayStr=data_array.split(",");  
13   			document.getElementById('total_value').innerHTML = arrayStr[0];
14			document.getElementById('transport_value').innerHTML = arrayStr[1];
15			document.getElementById('total_price_'+pro_id+size).innerHTML = arrayStr[2];
16			document.getElementById('all_total_price').innerHTML = arrayStr[3];
17  		}
18 	}
19	xmlHttp.open("GET",url,true);
20	xmlHttp.send(null);
21}*/
22function sendcvsmap(){//綠界物流送出電子地圖
23	document.getElementById("ECPayForm").submit();
24}
25function ChangeLogisticStore(store_v){ //綠界物流選擇店家
26		//document.getElementById('receive_address').value='';
27		if(document.getElementById('StoreID')){
28			document.getElementById('StoreID').value='';
29		}
30		if(document.getElementById('StoreName')){
31			document.getElementById('StoreName').value='';
32		}
33		if(document.getElementById('StoreAddress')){
34			document.getElementById('StoreAddress').value='';
35		}
36		//document.getElementById('pickup_type').value='';
37		document.getElementById('store_area').style.display='none';
38		
39		if(store_v=='20'){ //711
40			document.getElementById('LogisticsSubType').value='UNIMARTC2C';
41		}else if(store_v=='21'){ //全家
42			document.getElementById('LogisticsSubType').value='FAMIC2C';
43		}else if(store_v=='22'){ //OK超商
44			document.getElementById('LogisticsSubType').value='OKMARTC2C';
45		}else if(store_v=='23'){ //萊爾富
46			document.getElementById('LogisticsSubType').value='HILIFEC2C';
47		}
48		if(store_v=='20' || store_v=='21' || store_v=='22' || store_v=='23'){
49			document.getElementById('store_area').style.display='';
50			document.getElementById('StoreBtn').style.display='';
51			if(document.getElementById('StoreAddressArea')){
52				document.getElementById('StoreAddressArea').innerHTML='';
53			}
54			if(document.getElementById('StoreNameArea')){
55				document.getElementById('StoreNameArea').innerHTML='';
56			}
57			
58		}
59		var xmlHttp;
60        var url='./order_data_ajax.php?act=ChangeStoreAjax';
61        if (window.ActiveXObject) { 
62            xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
63        }else if(window.XMLHttpRequest){ 
64            xmlHttp = new XMLHttpRequest();
65        } 
66        xmlHttp.open("GET",url,true);
67        xmlHttp.send(null);
68}
69function countBytes(inputString) {
70   let byteCount = 0;
71  for (let i = 0; i < inputString.length; i++) {
72    const char = inputString.charAt(i);
73    const charCode = inputString.charCodeAt(i);
74    if (
75        (charCode >= 0x4E00 && charCode <= 0x9FFF) || // 中文字
76        (charCode >
76= 0x3040 && charCode <= 0x309F) || // 日文平假
77        (charCode >= 0x30A0 && charCode <= 0x30FF) || // 日文片假
78        (charCode >= 0xAC00 && charCode <= 0xD7AF) || // 韓
79        (charCode >= 0x0E00 && charCode <= 0x0E7F) || // æ³°
80        (charCode >= 0x1E00 && charCode <= 0x1EFF) || // 越南
81        (charCode >= 0x3400 && charCode <= 0x4DBF)   // 简中
82      ) {
83      byteCount += 2; 
84    } else {
85      byteCount += 1; 
86    }
87  }
88  return byteCount;
89}
90
91function onloadStoreForm() {
92  var form = document.getElementsByName("store_form")[0];
93  if(form){
94      var toNameField = form.querySelector('input[name="to_name"]');
95      var same_check = form.querySelector('input[name="same"]');
96      toNameField.addEventListener("change", function() {
97
98        if (toNameField) {
99          var inputString = toNameField.value;
100          if(countBytes(inputString)>10){
101              alert("很抱歉,收件人字元過長,中文字約2-5字,半形英文約4-10字")
102              toNameField.value='';
103			  SaveOrderData('to_name','')
104              return false;
105          }
106        } 
107      });
108      same_check.addEventListener("change", function() {
109        if(this.checked){
110            if (toNameField) {
111              var inputString = toNameField.value;
112              if(countBytes(inputString)>10){
113                  alert("很抱歉,收件人字元過長,中文字約2-5字,半形英文約4-10字")
114                  toNameField.value='';
115				  SaveOrderData('to_name','')
116                  return false;
117              }
118            }
119         }else{
120            toNameField.value='';
121         }
122      });
123  }
124};
125function CalOrderTotal(){//計算訂單總金額
126	var xmlHttp;
127	var url='total_ajax.php?act=ShowOrderTotal';
128	if (window.ActiveXObject) { 
129  		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
130	}else if(window.XMLHttpRequest){ 
131   		xmlHttp = new XMLHttpRequest();
132 	} 
133 	xmlHttp.onreadystatechange = function(){
134  		if(xmlHttp.readyState == 4){
135			data_array=xmlHttp.responseText;
136            var arrayStr=data_array.split(","); 
137			document.getElementById('OrderTotal').innerHTML = 'NT$ '+arrayStr[0];
138			if(document.getElementById('ShipFee')){
139				document.getElementById('ShipFee').innerHTML = 'NT$ '+arrayStr[1];
140			}
141			
142  		}
143 	}
144	xmlHttp.open("GET",url,true);
145	xmlHttp.send(null);
146}
147function CheckCode(code){
148	var xmlHttp;
149	var url='total_ajax.php?act=ShowDiscount&code='+code;
150	if (window.ActiveXObject) { 
151  		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
152	}else if(window.XMLHttpRequest){ 
153   		xmlHttp = new XMLHttpRequest();
154 	} 
155 	xmlHttp.onreadystatechange = function(){
156		if(xmlHttp.readyState == 4){
157			data_array=xmlHttp.responseText;
158            var arrayStr=data_array.split("#"); 
159			if(code!=''){
160				document.getElementById('DiscountStr').innerHTML = '※'+arrayStr[1]+'※<span>-NT$ '+arrayStr[0]+'</span>';
161			}else{
162				document.getElementById('DiscountStr').innerHTML = '&nbsp;<span>&nbsp;</span>';
163			}
164			
165
166  		}
167 	}
168	xmlHttp.open("GET",url,true);
169	xmlHttp.send(null);
170}
171function CheckPayShip(target,value){
172	var reload_target='';
173	var reload_val='';
174	var check_payment = '';
175	var check_shipment = '';
176	
177		if(target=='payment'){ 
178			var shipmentvalue=$('input[name="shipment"]:checked').val();
179			if(value=='1'){//付款方式為貨到付款時
180				if(shipmentvalue=='1'){ //判斷若運送方式為自取則取消並disable
181					$('input[name="shipment"]').prop('checked', false);
182					reload_target='shipment';
183					reload_val='';
184				}
185				$('input[name="shipment"][value="1"]').prop('disabled', true);
186			}else{
187				$('input[name="shipment"][value="1"]').prop('disabled', false);
188			}
189		}
190		if(target=='shipment'){
191			var paymentvalue=$('input[name="payment"]:checked').val();
192			if(value=='1' ){//運送方式為自取時
193				if(paymentvalue=='1'){ //若付款方式為貨到付款 則取消並disable
194					$('input[name="payment"]').prop('checked', false);
195					reload_target='payment';
196					reload_val='';
197				}
198				$('input[name="payment"][value="1"]').prop('disabled', true);
199			}else{
200				$('input[name="payment"][value="1"]').prop('disabled', false);
201			}
202			
203		}
204		if(reload_target!=''){
205		
206			var xmlHttp;
207			var url='./order_data_ajax.php?act=save_orderdata&target='+reload_target+'&value='+reload_val;
208			if (window.ActiveXObject) { 
209				xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
210			}else if(window.XMLHttpRequest){ 
211				xmlHttp = new XMLHttpRequest();
212			} 
213			xmlHttp.open("GET",url,true);
214			xmlHttp.send(null);
215		}
216	
217		if($('input[name="payment"]:checked').data('typename')){
218			check_payment=$('input[name="payment"]:checked').data('typename');
219		}
220		if($('input[name="shipment"]:checked').data('typename')){
221			check_shipment=$('input[name="shipment"]:checked').data('typename');
222		}
223	
224		document.getElementById('PayTypeStr').innerHTML = check_payment
225		document.getElementById('ShipTypeStr').innerHTML = check_shipment
226	
227		
228}
229function SaveOrderData(target,value){ //紀錄訂單資料
230		if(target=='shipment' || target=='payment'){
231			CheckPayShip(target,value)
232		}
233		if(target=='DiscountCode' ){
234			CheckCode(value)
235		}
236		var xmlHttp;
237		var url='./order_data_ajax.php?act=save_orderdata&target='+target+'&value='+value;
238		if (window.ActiveXObject) { 
239			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
240		}else if(window.XMLHttpRequest){ 
241			xmlHttp = new XMLHttpRequest();
242		} 
243		xmlHttp.open("GET",url,false);
244		xmlHttp.send(null);
245	
246		CalOrderTotal();
247}
248function total_ajax(pro_num,pro_key,store_useno,element_id){//car 產品數量變動ajax總計
249	if(parseInt(pro_num,10)<=0 || pro_num==='' ){
250		alert("很抱歉數量不得為0");
251		pro_num=1;
252	}
253	var xmlHttp;
254	var url='total_ajax.php?act=show_total&pro_num='+parseInt(pro_num,10)+'&pro_key='+pro_key+'&useno='+store_useno;
255	if (window.ActiveXObject) { 
256  		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
257	}else if(window.XMLHttpRequest){ 
258   		xmlHttp = new XMLHttpRequest();
259 	} 
260 	xmlHttp.onreadystatechange = function(){
261  		if(xmlHttp.readyState == 4){
262			data_array=xmlHttp.responseText;
263            var arrayStr=data_array.split(","); 
264			document.getElementById('total_price_'+pro_key).innerHTML = arrayStr[0];
265   			document.getElementById('all_total_price').innerHTML = arrayStr[1];
266			document.getElementById(element_id).value = pro_num === '' ? 0 : parseInt(pro_num, 10);
267			if(arrayStr[2]=='Error01'){
268				alert("很抱歉,此商品最大數量剩餘"+arrayStr[3]+"個");
269				document.getElementById(element_id).value=arrayStr[3];
270			}
271  		}
272 	}
273	xmlHttp.open("GET",url,true);
274	xmlHttp.send(null);
275}
276function change_sku(){
277	var ckn = document.getElementById('ckn').value;
278	var pro_id= document.getElementById('pro_id').value;
279	var numElement = document.getElementById('num');
280	
281	var color_id = null;
282	var size_id = null;
283	if ($('input[name="color"]').length > 0) {
284        color_id = $('input[name="color"]:checked').val();
285    }
286	if ($('input[name="size"]').length > 0) {
287        size_id = $('input[name="size"]:checked').val();
288    }
289	/*if (numElement) {
290		if (numElement.hasAttribute('data-minc')) {
291			var buylimitcount = numElement.getAttribute('data-minc');
292			console.log("data-minc 值為:", buylimitcount);
293		}
294	} */
295	$.ajax({
296		url:"sku_ajax.php",
297		method:"POST",
298		data:{
299			PW:ckn,
300			color_id :color_id,
301			size_id :size_id,
302			pro_id :pro_id,
303		},
304		dataType:'json',
305		cache:false,
306		error:function(){
307			console.log("Error");
308		},
309		success:function(sku_val){
310			//console.log(sku_val);
311			if(sku_val['price']){
312				if(sku_val['ori_price']!='0' && sku_val['ori_price']!== null  && sku_val['ori_price']!== 'null'  ){
313					var price_str = $('#price').data('show');
314					var ori_price_str = $('#ori_price').data('show');
315					$('#ori_price').html(ori_price_str+sku_val['ori_price']);
316				}else{
317					var price_str = 'NT$ ';
318					$('#ori_price').html('');
319				}
320				
321				if(sku_val['price']==0){
322					$('#price').html('很抱歉,無此規格商品');
323					document.getElementById('add_to_cart').style.display = 'none';
324					document.getElementById('count_inp').style.display = 'none';
325					if (numElement) {
326						numElement.setAttribute('data-minc', '0');
327					}
328				}else{
329					$('#price').html(price_str+sku_val['price']);
330					document.getElementById('add_to_cart').style.display = '';
331					document.getElementById('count_inp').style.display = '';
332					if (numElement) {
333						if(sku_val['stock']<=0){
334						   $('#price').html('很抱歉,目前尚無庫存');
335						   document.getElementById('add_to_cart').style.display = 'none';
336						   document.getElementById('count_inp').style.display = 'none';
337						}else{
338							numElement.setAttribute('data-minc', sku_val['stock']);
339						}
340						
341					}
342				}
343			}
344			
345		}
346	})
347}
348function add_cart(tp){
349	var is_color_arr=document.getElementsByName("color");
350	if(is_color_arr.length>0){
351		var is_color_choice = false;
352		var get_color_value='';
353		for(var i=0;i<is_color_arr.length;i++){
354		  if(is_color_arr[i].checked){
355			 is_color_choice = true; 
356			 get_color_value=is_color_arr[i].value;
357		  } 
358		}
359		if (!is_color_choice) {
360		  const ColorspecText = document.getElementById('spec_val_1').innerText; 
361		  alert("請選擇"+ColorspecText+"!")
362		  return false;
363		}	
364	}
365	
366	var is_size_arr=document.getElementsByName("size");
367	if(is_size_arr.length>0){
368		var is_size_choice = false;
369		var get_size_value='';
370		for(var i=0;i<is_size_arr.length;i++){
371			
372		  if(is_size_arr[i].checked){
373			 is_size_choice = true; 
374			 get_size_value=is_size_arr[i].value;
375		  } 
376		}
377		if (!is_size_choice) {
378		  const SizespecText = document.getElementById('spec_val_2').innerText; 
379		  alert("請選擇"+SizespecText+"!")
380		  return false;
381		}
382	}
383	var numElement = document.getElementById('num');
384	if (numElement) {
385		if (numElement.hasAttribute('data-minc')) {
386			var buylimitcount = numElement.getAttribute('data-minc');
387			//console.log("data-minc 值為:", buylimitcount);
388		}
389	} 
390	if(tp =='car'){
391		if(!document.getElementById("num").value){
392			alert("請輸入數量");
393			return false;		
394		}
395		if (numElement) {
396			if(parseInt(document.getElementById("num").value,10)>parseInt(buylimitcount,10)){
397				alert("很抱歉,此商品數量剩餘"+buylimitcount+"個");
398				return false;
399			}
400		}
401		if(document.getElementById("num").value<=0){
402			alert("數量不得小於0");
403			return false;	
404		}
405	}else{
406		document.getElementById('inquiry_car_size_id').value=get_size_value;
407		document.getElementById('inquiry_car_color_id').value=get_color_value;
408	}
409}
410
411//線上簡訊發送
412/*function SendMsg(){
413	if(!document.send_msg.name.value){
414		alert("聯絡人未填寫");
415		return false;
416	}
417	if(!document.send_msg.tel.value){
418		alert("電話未填寫");
419		return false;
420	}
421	if(!document.send_msg.checknum_2.value){
422		alert("驗證碼未填寫");
423		return false;
424	}
425}*/
426//首頁估價單
427/*function SendAllStore(){
428	
429	if(!document.send_all_form.name.value){
430		alert("客戶名稱必填");
431		return false;
432	}
433	if(!document.send_all_form.phone.value){
434		alert("手機必填");
435		return false;
436	}
437	if(!document.send_all_form.tel.value){
438		alert("電話必填");
439		return false;
440	}
441	if(!document.send_all_form.city.value){
442		alert("招標區域必填");
443		return false;
444	}
445	if(!document.send_all_form.area.value){
446		alert("招標鄉鎮必填");
447		return false;
448	}
449	if(!document.send_all_form.address.value){
450		alert("招標地址必填");
451		return false;
452	}
453	if(!document.send_all_form.checknum.value){
454		alert("驗證碼未填寫!");
455		return false;
456	}
457	
458}*/
459//產品問與答
460/*function SendProAsk(){
461	if(!document.send_ask.name.value){
462		alert("提問者稱呼未填寫!");
463		return false;
464	}
465	if(!document.send_ask.qus.value || document.send_ask.qus.value=='提出問題,不得超過100字'){
466		alert("問題未填寫!");
467		return false;
468	}
469	if(!document.send_ask.mail.value){
470		alert("mail未填寫!");
471		return false;
472	}
473	if(!document.send_ask.checknum.value){
474		alert("驗證碼未填寫!");
475		return false;
476	}
477}*/
478function SavePayMethod(key){//購物車選取付款方式
479	var xmlHttp;
480	var url='pay_method_ajax.php?act=show_data&key='+key;
481	if (window.ActiveXObject) { 
482  		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
483	}else if(window.XMLHttpRequest){ 
484   		xmlHttp = new XMLHttpRequest();
485 	} 
486	xmlHttp.open("GET",url,true);
487	xmlHttp.send(null);
488}
489
490
491function area_ajax(id,key){//地區
492	var xmlHttp;
493	var url='area_ajax.php?act=show_city&id='+id+'&city='+key;
494	if (window.ActiveXObject) { 
495  		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
496	}else if(window.XMLHttpRequest){ 
497   		xmlHttp = new XMLHttpRequest();
498 	} 
499 	xmlHttp.onreadystatechange = function(){
500  		if(xmlHttp.readyState == 4){
501   			document.getElementById('area_value').innerHTML = xmlHttp.responseText;
502  		}
503 	}
504	xmlHttp.open("GET",url,true);
505	xmlHttp.send(null);
506}
507//產品訂購
508function StoreOrderPro(){
509	if(!document.store_form.order_name.value){
510		alert("訂購人未填寫!");
511		return false;
512	}
513	if(!document.store_form.order_tel.value){
514		alert("聯絡電話未填寫!");
515		return false;
516	}
517	if(!document.store_form.order_email.value){
518		alert("Email未填寫!");
519		return false;
520	}
521	RegExpPtn = /\w[\w.-]+@[\w-]+(\.\w{2,})+/gi;
522	if(!RegExpPtn.test(document.store_form.order_email.value)){
523		alert("Email格式不正確"); 
524		return false;
525	}
526	if(!document.store_form.to_name.value){
527		alert("收件人未填寫!");
528		return false;
529	}
530	if(!document.store_form.to_tel.value){
531		alert("聯絡電話未填寫!");
532		return false;
533	}
534	if(!document.store_form.to_address.value){
535		alert("地址未填寫!");
536		return false;
537	}
538	if(!document.store_form.checknum.value){
539		alert("驗證碼未填寫!");
540		return false;
541	}
542	if(!document.store_form.check_data.checked){
543		alert("確認訂單資訊必需勾選");
544		return false;
545	}
546}
547//產品詢價
548function StoreInquiryPro(){
549	if(!document.store_form.keynote.value){
550		alert("主旨必需填寫");
551		return false;
552	}
553	if(!document.store_form.askinfo.value){
554		alert("詢問內容必需填寫");
555		return false;
556	}
557	if(!document.store_form.name.value){
558		alert("聯絡人必需填寫");
559		return false;
560	}
561	if(!document.store_form.tel.value){
562		alert("聯絡電話必需填寫");
563		return false;
564	}
565	
566	if(!document.store_form.mail.value){
567		alert("電子信箱必需填寫");
568		return false;
569	}
570	
571	if(!document.store_form.checknum.value){
572		alert("驗證碼必需填寫");
573		return false;
574	}
575	if(!document.store_form.check_data.checked){
576		alert("確認詢價單資訊必需勾選");
577		return false;
578	}
579}
580//產品訂購如同訂購人
581function SameOrder(){
582	document.store_form.to_name.value=document.store_form.order_name.value;
583	SaveOrderData('to_name',document.store_form.order_name.value);
584	
585	document.store_form.to_tel.value=document.store_form.order_tel.value;
586	SaveOrderData('to_tel',document.store_form.order_tel.value);
587}
588
589//聯絡我們
590function SendPriceStore(){
591	if(document.sendsp_form.contact_is.value==0){
592		if(!document.sendsp_form.name.value){
593			alert("姓名未填寫!");
594			return false;
595		}
596		if(!document.sendsp_form.tel.value){
597			alert("電話未填寫!");
598			return false;
599		}
600		if(!document.sendsp_form.phone.value){
601			alert("手機未填寫!");
602			return false;
603		}
604		if(!document.sendsp_form.msg.value){
605			alert("留言內容未填寫!");
606			return false;
607		}	
608	}
609	if(!document.sendsp_form.checknum.value){
610		alert("驗證碼未填寫!");
611		return false;
612	}
613}
614//作品寄信給店家
615function SendStore(){
616	if(!document.send_form.name.value){
617		alert("姓名未填寫!");
618		return false;
619	}
620	if(!document.send_form.mail.value){
621		alert("mail未填寫!");
622		return false;
623	}
624	if(!document.send_form.address.value){
625		alert("地址未填寫!");
626		return false;
627	}
628	if(!document.send_form.tel.value){
629		alert("電話未填寫!");
630		return false;
631	}
632	if(!document.send_form.checknum.value){
633		alert("驗證碼未填寫!");
634		return false;
635	}
636	if(!document.send_form.message.value){
637		alert("訊息未填寫!");
638		return false;
639	}
640}
641//營業項目更多
642function MoreItem(a,b){
643	 if(a=='yes'){
644		 document.getElementById('show_item'+b).style.display="";
645		 document.getElementById('NoButton'+b).style.display="none";
646		 document.getElementById('YesButton'+b).style.display="";
647	 }else if(a=='no'){
648	 	document.getElementById('show_item'+b).style.display="none";
649		document.getElementById('NoButton'+b).style.display="";
650		document.getElementById('YesButton'+b).style.display="none";
651	 }
652}
653//匯款回報
654function SendPrice(){
655	if(!document.send_form.order_num.value){
656		alert("訂單編號未填寫!");
657		return false;
658	}
659	if(!document.send_form.account_id.value){
660		alert("帳號末五碼未填寫!");
661		return false;
662	}
663	if(!document.send_form.price.value){
664		alert("匯款金額未填寫!");
665		return false;
666	}
667	if(!document.send_form.pay_date.value){
668		alert("匯款日期未填寫!");
669		return false;
670	}
671	if(!document.send_form.name.value){
672		alert("匯款者姓名未填寫!");
673		return false;
674	}
675	if(!document.send_form.tel.value){
676		alert("匯款者電話未填寫!");
677		return false;
678	}
679	if(!document.send_form.checknum.value){
680		alert("驗證碼未填寫!");
681		return false;
682	}
683}
684//會員註冊
685function MemRegist(){
686	if(!document.store_form.useno.value){
687		alert("帳號未填寫!");
688		return false;
689	}
690	RegExpPtn = /\w[\w.-]+@[\w-]+(\.\w{2,})+/gi;
691	if(!RegExpPtn.test(document.store_form.useno.value)){
692		alert("帳號Email格式不正確"); 
693		return false;
694	}
695	if(!document.store_form.pwd.value){
696		alert("密碼未填寫!");
697		return false;
698	}
699	if(document.store_form.pwd2.value != document.store_form.pwd.value){
700		alert("密碼兩次未相同!");
701		return false;
702	}
703	if(!document.store_form.name.value){
704		alert("中文姓名未填寫!");
705		return false;
706	}
707	var CheckFlag;
708	CheckFlag = false
709	for(var i=0;i<store_form.sex.length;i++){
710		CheckFlag = (CheckFlag || store_form.sex[i].checked);
711	}
712	if(!CheckFlag){
713		alert("性別必需選取");
714		return false;
715	}	
716	if(!document.store_form.tel.value){
717		alert("電話未填寫!");
718		return false;
719	}
720	if(!document.store_form.phone.value){
721		alert("手機未填寫!");
722		return false;
723	}
724	if(!document.store_form.address.value){
725		alert("地址未填寫!");
726		return false;
727	}
728	if(!document.store_form.is_agree.checked){
729		alert("確認同意未勾選!");
730		return false;
731	}
732}
733//會員登入
734function MemLogin(){
735	if(!document.store_form.useno.value){
736		alert("帳號未填寫!");
737		return false;
738	}
739	if(!document.store_form.pwd.value){
740		alert("密碼未填寫!");
741		return false;
742	}
743}
744//會員資料修改
745function MemEdit(){
746	if(!document.store_form.name.value){
747		alert("中文姓名未填寫!");
748		return false;
749	}
750	if(!document.store_form.tel.value){
751		alert("電話未填寫!");
752		return false;
753	}
754	if(!document.store_form.phone.value){
755		alert("手機未填寫!");
756		return false;
757	}
758	if(!document.store_form.address.value){
759		alert("地址未填寫!");
760		return false;
761	}
762}
763//密碼修改
764function ChangePwd(){
765	if(!document.store_form.pwd.value){
766		alert("舊密碼未填寫!");
767		return false;
768	}
769	if(!document.store_form.new_pwd.value){
770		alert("新密碼未填寫!");
771		return false;
772	}
773	if(document.store_form.new_pwd.value != document.store_form.new_pwd2.value){
774		alert("密碼兩次未相同!");
775		return false;
776	}
777}

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.