function Validate()
{
	//------------------------------------------
	// Check for Empty fields
	//------------------------------------------

	if (document.REG.UserName.value == "" || document.REG.PassWord.value == "" || document.REG.PassWord_Check.value == "" || document.REG.EmailAddress.value == "")
	{
		alert ( lang_js_blanks );
		return false;
	}
}
function check_username()
{
    x = document.getElementById('user_name');
    if (document.REG.UserName.value == "" || document.REG.UserName.value.length < 3 || document.REG.UserName.value.lenth > 20)
    {
        x.innerHTML = " <font color=red><b>Username must be between 3-12 characters</b></font>";
    }
    else
    {
        x.innerHTML = "";
    }
}
function check_password()
{
    x = document.getElementById('pass_word');
    if (document.REG.PassWord.value == "" || document.REG.PassWord.value.length < 3 || document.REG.PassWord.value.lenth > 20)
    {
        x.innerHTML = " <font color=red><b>Password must be between 3-12 characters</b></font>";
    }
    else if (document.REG.PassWord.value != document.REG.PassWord_Check.value)
    {
        x.innerHTML = " <font color=red><b>Your password does not match</b></font>";
    }
    else
    {
        x.innerHTML = "";
    }
}
function check_email()
{
    x = document.getElementById('email_address');
    if (document.REG.EmailAddress.value == "" || document.REG.EmailAddress.value.length < 6)
    {
        x.innerHTML = " <font color=red><b>Invalid email address</b></font>";
    }
    else if (document.REG.EmailAddress.value != document.REG.EmailAddress_two.value)
    {
        x.innerHTML = " <font color=red><b>Your email address does not match</b></font>";
    }
    else
    {
        x.innerHTML = "";
    }
}

