function chkForm()
{
	var iUserName=document.aplForm.USER_NAME
	var iUserEmail=document.aplForm.USER_EMAIL

	if (iUserName.value=="")
	{
		alert("Please enter your name!");
		iUserName.focus();
		return false
	}

	if (iUserEmail.value=="")
	{
		alert("Please enter your e-mail!");
		iUserEmail.focus();
		return false
	}

	if (iUserEmail.value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)==-1)
	{
		alert("Please enter the right e-mail, for example: xxx@hotmail.com");
		iUserEmail.focus();
		return false
	}

	return true;
}

function isPasswordOK(str)
{
	var i;
	for (i=0; i<str.length; i++) {
		if (str.charCodeAt(i)>255) return false;
	}
	return true;
}