// JavaScript Document
function check(){
	
	if (document.add.title.value==""){
		alert("Please enter the message Subject!");
		document.add.title.focus();
		return false;
		}

	if (document.add.user.value==""){
		alert("Please enter the User Name!");
		document.add.user.focus();
		return false;
		}
		
	if (document.add.qq.value==""){
		alert("Please enter the Phone!");
		document.add.qq.focus();
		return false;
		}
		
	/*if (document.add.mail.value==""){
		alert("Please enter the E-mail！");
		document.add.mail.focus();
		return false;
		}*/
	
	if (document.add.mail.value!=""){
		if ((document.add.mail.value.indexOf("@") == -1) || (document.add.mail.value.indexOf(".") == -1)){
			alert("Email your input may be mistaken！" );
			document.add.mail.value="";
			document.add.mail.focus();
			return false;
			}
		}
		
	if (document.add.content.value==""){
		alert("Please enter the Message Content!");
		document.add.content.focus();
		return false;
		}
	
	return true;
}


function check_order(){
	
	if (document.order.product.value==""){
		alert("Please enter the Product Name!");
		document.order.product.focus();
		return false;
		}

	if (document.order.user.value==""){
		alert("Please enter your Name, and for us to contact you!");
		document.order.user.focus();
		return false;
		}
		
	if (document.order.tel.value==""){
		alert("Please enter your Phone, and for us to contact you!");
		document.order.tel.focus();
		return false;
		}
	
		
	/*if (document.order.mail.value==""){
		alert("请输入您的电子邮件！");
		document.order.mail.focus();
		return false;
		}*/
	
	if (document.order.mail.value!=""){
		if ((document.order.mail.value.indexOf("@") == -1) || (document.order.mail.value.indexOf(".") == -1)){
			alert("Email your input may be mistaken !" );
			document.order.mail.value="";
			document.order.mail.focus();
			return false;
			}
		}
		
	if (document.order.addre.value==""){
		alert("Please enter your Address, and for us to contact you!");
		document.order.addre.focus();
		return false;
		}
		
	if (document.order.post.value==""){
		alert("Please enter your Postcode, and for us to contact you!");
		document.order.post.focus();
		return false;
		}
		
	if (document.order.content.value==""){
		alert("Please enter your orders detailed description!");
		document.order.content.focus();
		return false;
		}
	
	return true;
	}
	
//字体改变大小函数
function ContentSize(size)
{
var obj=document.getElementById("size");obj.style.fontSize=size+"px";
}