// JavaScript Document
function checkout(str){
	 if(confirm(str)){
		document.form1cc.submit();
	 }
}
function xsubmit(){
   document.form1cc.onsubmit();
}
function checkdata(){
   var flag;
   flag=true;
   with(document.form1cc){
	 if(name.value==""){
	    alert("請填寫聯絡人！！");
		name.focus();
		flag=false;
		return false;
	 }

	 if(email.value==""){
	    alert("請填寫電子郵件信箱！！");
		email.focus();
		flag=false;
		return false;
	 }
	  if(email.value.indexOf("@",1)==-1 || email.value.indexOf(".",1)==-1 ){
	     alert("請填寫正確電子郵件信箱");
	     email.focus();
         flag=false;
		 return false;
	  }
	 if(tel.value==""){
	    alert("請填寫電話！！");
		tel.focus();
		flag=false;
		return false;
	 }
	 if(bj.value==""){
	    alert("請填寫連絡事項！！");
		bj.focus();
		flag=false;
		return false;
	 }
	 if(flag==true){
	 	if(confirm ("確定要送出資料？")){
			document.form1cc.submit();
		}
	 }
   }
}