//電郵驗證表單
function checkemail(obj){
    if(!obj.name.value)
	{
		alert("Please enter the Customer Name.");
		obj.name.focus();
		return false;
	}

    if(!obj.tel.value)
	{
		alert("Please enter a contact telephone number.");
		obj.tel.focus();
		return false;
	}

    if(!obj.email.value)
	{
		alert("Please enter the e-mail.");
		obj.email.focus();
		return false;
	}
	
	if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(obj.email.value))){
		alert("Enter the e-mail error!");
		obj.email.focus();
		return false;
	}
	
    if(!obj.content.value)
	{
		alert("Please enter the inquiry content.");
		obj.content.focus();
		return false;
	}
        return true; 
}

