
function chklogin(){
	if(!/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/i.test($('#loginusername').val())){
		alert('UID does not match, please try again. \neg. user@xxx.com');
		return false;
	}
	if($('#loginpassword').val()=='' || $('#loginpassword').val().length<6){
		alert('Password must be longer than 6 characters.');
		return false;
	}
	return true;
}