function checklogin()
{
		if($('#username').value=="")
		{
				alert("Vui Lòng Nhập Tài Khoản Để Đăng Nhập");
				$('#username').focus();
				return false;
		}
		if(isNaN($('#username').value)==false)
		{
				alert("Vui Lòng Nhập  Tài Khoản Là Chữ Để Đăng Nhập");
				$('#username').focus();
				return false;
		}
		if($('#password').value=="")
		{
				alert("Vui Lòng Nhập Tài Khoản Để Đăng Nhập");
				$('#password').focus();
				return false;
		}
		return true;
}
function checkregister()
{
	if($('#username').value=="")
	{
		alert("Vui Lòng Nhập Tài Khoản Để Đăng Ký");
		$('#username').focus();
		return false;
	}
	if(isNaN($('#username').value)==false)
	{
		alert("Vui Lòng Nhập  Tài Khoản Là Chữ Để Đăng Ký");
		$('#username').focus();
		return false;
	}
	if($('#password').value=="")
	{
		alert("Vui Lòng Nhập Mật Khẩu Để Đăng Ký");
		$('#password').focus();
		return false;
	}
	if($('#repassword').value=="")
	{
		alert("Vui Lòng Nhập Mật Khẩu Để Đăng Ký");
		$('#repassword').focus();
		return false;
	}
	if($('#repassword').value != $('#password').value)
	{
		alert("Mật khẩu và xác nhận mật khẩu phải giống nhau");
		return false;
	}
	if($('#email').value=="")
	{
		alert("Vui Lòng Nhập Email Để Đăng Ký");
		$('#email').focus();
		return false;
	}
	if(isNaN($('#email').value)==false)
	{
		alert("Vui Lòng Nhập Email Là Chữ Để Đăng Ký");
		$('#email').focus();
		return false;
	}
	if($('#reemail').value=="")
	{
		alert("Vui Lòng Nhập Xác Nhận Email Để Đăng Ký");
		$('#reemail').focus();
		return false;
	}
	if(isNaN($('#reemail').value)==false)
	{
		alert("Vui Lòng Nhập Xác Nhận Email Là Chữ Để Đăng Ký");
		$('#reemail').focus();
		return false;
	}
	if($('#email').value != $('#reemail').value)
	{
		alert("Email và xác nhận Email phải giống nhau");
		return false;
	}
	if($('#hoten').value=="")
	{
		alert("Vui Lòng Nhập Họ Tên Để Đăng Ký");
		$('#hoten').focus();
		return false;
	}
	if(isNaN($('#hoten').value)==false)
	{
		alert("Vui Lòng Nhập Họ Tên Là Chữ  Để Đăng Ký");
		$('#hoten').focus();
		return false;
	}
	if($('#phone').value=="")
	{
		alert("Vui Lòng Nhập Số Điện Thoại Tên Để Đăng Ký");
		$('#phone').focus();
		return false;
	}
	if(isNaN($('#phone').value)==true)
	{
		alert("Vui Lòng Nhập Số Điện thoại Là Số");
		$('#phone').focus();
		return false;
	}
	if($('#hoten').value=="")
	{
		alert("Vui Lòng Nhập Họ Tên Tên Để Đăng Ký");
		$('#hoten').focus();
		return false;
	}
	if(isNaN($('#hoten').value)==false)
	{
		alert("Vui Lòng Nhập Họ Tên Là Chữ Để Đăng Ký");
		$('#hoten').focus();
		return false;
	}
	return true;
}
