
function Login() {

	var f = document.frm;
	
	f.hidFormCmd.value = "LOGIN";
	
	if (!valTextStr(true, f.txtUserName, "User Name", 20))
		return(false);
	if (!valTextStr(true, f.txtPassword, "Password", 127))
		return(false);
		
	return(true);
}

function Start_Registration(sDestUrl)
{
	var f = document.frmAICPAReg;
	f.hidJEnabled.value = "1";
	f.hidDestURL.value = sDestUrl;
	f.onSubmit = "javascript:PopUpWindow('', 700, 800, 'pop_up_reg')";
	f.target = 'pop_up_reg';
	f.submit();	
}

function Registration_Return(sEncPersGuid, sDestURL, sSeamlessLoginURL)
{
	var f = document.frmORGSeamlessLogin;
	f.hidEncPersGUID.value = sEncPersGuid;
	f.hidURL.value = sDestURL;
	f.action = sSeamlessLoginURL;
	f.submit();
}
