function Validate()
{
	if (document.frmLogIn.txtUID.value == '')
	{
		alert('Please enter a User Name.');
		document.frmLogIn.txtUID.focus();
		return;
	}
	if (document.frmLogIn.txtPWD.value == '')
	{
		alert('Please enter a Password.');
		document.frmLogIn.txtPWD.focus();
		return;
	}
	document.frmLogIn.submit();
}

function ValidateRet()
{
	if (document.frmLogIn.txtUID.value == '')
	{
		alert('Please enter a User Name.');
		document.frmLogIn.txtUID.focus();
		return false;
	}
	if (document.frmLogIn.txtPWD.value == '')
	{
		alert('Please enter a Password.');
		document.frmLogIn.txtPWD.focus();
		return false;
	}
	document.frmLogIn.submit();
}

function ValidateEmail()
{
    if (document.frmLogIn.txtEMAIL.value == '')
	{
		alert('Please enter an email address.');
		document.frmLogIn.txtEMAIL.focus();
        return;
	}
	document.frmLogIn.submit();
}

function ValidateChangePWD()
{
	if (document.frmLogIn.txtOPWD.value == '')
	{
		alert('Please enter your old password.');
		document.frmLogIn.txtOPWD.focus();
        return;
	}
	if (document.frmLogIn.txtNPWD.value == '')
	{
		alert('Please enter a new Password.');
		document.frmLogIn.txtNPWD.focus();
		return;
	}
	if (document.frmLogIn.txtOPWD.value ==  document.frmLogIn.txtNPWD.value)
	{
		alert('New password can not be the same as the old password.');
		document.frmLogIn.txtNPWD.focus();
		return;
	}
	if (document.frmLogIn.txtCPWD.value == '')
	{
		alert('Please enter a confirmation password.');
		document.frmLogIn.txtCPWD.focus();
		return;
	}
	if (document.frmLogIn.txtCPWD.value !=  document.frmLogIn.txtNPWD.value)
	{
		alert('Confirmation password does not match the new password.');
		document.frmLogIn.txtCPWD.focus();
		return;
	}
	document.frmLogIn.submit();
}