function ckAdmin(theform)
{
	if(theform.username.value=="")
	{
		alert("Please fill in username!");
		theform.username.focus();
		return false;
	}
	if(theform.password.value=="")
	{
		alert("Please fill in password!");
		theform.password.focus();
		return false;
	}
}
function ckReg(theform)
{
	if(theform.username.value=="")
	{
		alert("Please fill in the username!");
		theform.username.focus();
		return false;
	}
	if(theform.password.value=="")
	{
		alert("Please fill in the password!");
		theform.password.focus();
		return false;
	}
	if(theform.password1.value=="")
	{
		alert("Please fill in the password again!");
		theform.password1.focus();
		return false;
	}
	if(theform.password.value!=theform.password1.value)
	{
		alert("Diffent password in twice!")
		theform.password.value="";
		theform.password1.value="";
		theform.password.focus();
		return false;
	}
	if(theform.Question.value=="")
	{
		alert("Please fill in the Question!");
		theform.Question.focus();
		return false;
	}
	if(theform.Answer.value=="")
	{
		alert("Please fill in the Answer!");
		theform.Answer.focus();
		return false;
	}
	if(theform.FirstName.value=="")
	{
		alert("Please fill in the FirstName");
		theform.FirstName.focus();
		return false;
	}
	if(theform.LastName.value=="")
	{
		alert("Please fill in the LastName!");
		theform.LastName.focus();
		return false;
	}
	if(theform.Company.value=="")
	{
		alert("Please fill in the Company name!");
		theform.Company.focus();
		return false;
	}
	if(theform.Email.value=="")
	{
		alert("Please fill in you're E_Mail!");
		theform.Email.focus();
		return false;
	}
	else
	{
		if(theform.Email.value.indexOf('@')=="-1"||theform.Email.value.indexOf('.')=="-1")
		{
			alert("E_MAIL is Error£”");
			theform.Email.focus();
			return false;
		}
	}
	if(theform.PhoneCountry.value=="")
	{
		alert("Please fill in phone Number!");
		theform.PhoneCountry.focus();
		return false;
	}
	else
	{
		if((!isNaN(parseInt(theform.PhoneCountry.value)))==false)
		{
			alert("Please fill in number£”");
			theform.PhoneCountry.focus();
			return false;
		}
	}
	if(theform.PhoneArea.value=="")
	{
		alert("Please fill in phone Number!");
		theform.PhoneArea.focus();
		return false;
	}
	else
	{
		if((!isNaN(parseInt(theform.PhoneArea.value)))==false)
		{
			alert("Please fill in number£”");
			theform.PhoneArea.focus();
			return false;
		}
	}
	if(theform.PhoneNumber.value=="")
	{
		alert("Please fill in phone Number!");
		theform.PhoneNumber.focus();
		return false;
	}
	else
	{
		if((!isNaN(parseInt(theform.PhoneNumber.value)))==false)
		{
			alert("Please fill in number£”");
			theform.PhoneNumber.focus();
			return false;
		}
	}
	if(theform.Address.value=="")
	{
		alert("Please fill in the Address!");
		theform.Address.focus();
		return false;
	}
	if(theform.City.value=="")
	{
		alert("Please fill in the City!");
		theform.City.focus();
		return false;
	}
	if(theform.State.value=="")
	{
		alert("Please fill in the State!");
		theform.State.focus();
		return false;
	}
}
function ckBook(theform)
{
	if(theform.title.value=="")
	{
		alert("Please fill in subject!");
		theform.title.focus();
		return false;
	}
	if(theform.name.value=="")
	{
		alert("Please fill in your name!");
		theform.name.focus();
		return false;
	}
	if(theform.mail.value!="")
	{
		if(theform.mail.value.indexOf('@')=="-1"||theform.mail.value.indexOf('.')=="-1")
		{
			alert("E_MAIL Error£”");
			theform.mail.focus();
			return false;
		}
	}
	if(theform.content.value=="")
	{
		alert("Please fill in content!");
		theform.content.focus();
		return false;
	}
	if(theform.code.value=="")
	{
		alert("Please fill in Verify Code!");
		theform.code.focus();
		return false;
	}
}
function ckSearch(theform)
{
	if(theform.keyword.value==""||theform.keyword.value=="Please fill in keyword!")
	{
		alert("Please fill in keyword!");
		theform.keyword.value="";
		theform.keyword.focus();
		return false;
	}
}
function ckPrice(theform)
{
	if(theform.code.value=="")
	{
		alert("Please fill in validate code!");
		theform.code.focus();
		return false;
	}
	if(theform.Content.value=="")
	{
		alert("Please fill in Content!")
		theform.Content.focus();
		return false;
	}
}