
function send() 
{
	var CEmail=document.form1.email.value;
	var patten=/^[a-zA-Z0-9][a-zA-Z0-9-_.]*@[a-zA-Z0-9-_]+\.[a-zA-Z0-9-_][a-zA-Z0-9-_\.]*[a-zA-Z0-9]$/

	if (!document.form1.name.value.match(/\S/)) 
	{
		alert('請輸入姓名');
		document.form1.name.focus();
		return false;
	}
	else if (!document.form1.tel.value.match(/\S/)) 
	{
		alert('請輸入電話');
		document.form1.tel.focus();
		return false;
	}
	else if (!checkZip()) 
	{
		alert('請選擇地址地區');
		document.form1.city.focus();
		return false;
	}
	else if (!document.form1.addr.value.match(/\S/)) 
	{
		alert('請輸入地址');
		document.form1.addr.focus();
		return false;
	}
	else if (!document.form1.email.value.match(/\S/)) 
	{
		alert('請輸入Email');
		document.form1.email.focus();
		return false;
	}
	else if (!document.form1.email.value.match(/^\S+@.+\D+$/)) 
	{
		alert('無法辨識的Email');
		document.form1.email.focus();
		return false;
	}
	else if(!patten.test(CEmail))
	{
		alert('請檢查您的 Email 是否正確!');
    	document.form1.email.focus();
    	return false;
	}
	else if (document.form1.blog.value=='http://' || document.form1.blog.value=='') 
	{
		alert('請輸入部落格網址');
		document.form1.blog.focus();
		return false;
	}
	else if (!document.form1.confirmPassword.value.match(/\S/)) 
	{
		alert('請輸入驗證碼');
		document.form1.confirmPassword.focus();
		return false;
	}
	else if (confirm('確定送出')) 
	{
		document.form1.submit(); 
	}
}