function checkall()
{
	try
	{
		var telreg = /^\d{2,3}-\d{7,8}$/;
		var mobreg = /^09\d{7,8}$/;
		var tel = document.myform.telday.value;
		var mobile = document.myform.mobile.value;
		var telnight = document.myform.telnight.value;
		if(tel!="" && !telreg.test(tel))
		{
			alert("連絡電話(日)輸入錯誤.");
			return false;
		}
		if(mobile!="" && !mobreg.test(mobile))
		{
			alert("行動電話輸入錯誤.");
			return false;
		}
		if(telnight!="" && !telreg.test(telnight))
		{
			alert("連絡電話(夜)輸入錯誤.");
			return false;	
		}
		return check();
	}
	catch(e)
	{
		alert(e.description);
		return check();
	}	
}
