	function check2()
	{
		if (checkName2())
			if(checkPhone2())
				if (checkEmail2())
					if (address2())
						document.nextForm.submit();
	}

	function checkName2()
	{
		var name = document.nextForm.name.value;

		if (name == "")
		{
			alert("請輸入姓名。");
			document.nextForm.name.focus();
			document.nextForm.name.select();
			return false;
		}
		return true;
	}
	
	function checkPhone2()
	{
		var phone = document.nextForm.phone.value;

		if (phone == "")
		{
			alert("請輸入聯絡電話。");
			document.nextForm.phone.focus();
			document.nextForm.phone.select();
			return false;
		}
		return true;
	}

	function checkEmail2()
	{
		var email = document.nextForm.email.value;

		if (email == "")
		{
			alert("請事入電郵地址。");
			document.nextForm.email.focus();
			document.nextForm.email.select();
			return false;
		}
		if (email.search(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/))
		{
			alert("電郵無效，請重申輸入。");
			document.nextForm.email.focus();
			document.nextForm.email.select();
			return false;
		}
		return true;
	}

	function address2()
	{
		var address = document.nextForm.address.value;

		if (address == "")
		{
			alert("請輸入送貨地址。");
			document.nextForm.address.focus();
			document.nextForm.address.select();
			return false;
		}
		return true;
	}
	
