/************************************
COPYRIGHT 2005 EMARK SOLUTIONS PTY. LTD. 
ALL RIGHTS RESERVED.
*************************************/

function validateform( objform )
{
	var retVal = ( !document.getElementById( 'PageActionLogin' ).checked || (ValidateControl( objform.Username, true, 'email', 'Email Address' )
			&& ValidateControl( objform.Password, true, 'text', 'Password' ) ) );

	if ( retVal )
		objform.btnSubmit.disabled = true;
		
	return retVal;
}

function body_onload()
{
	document.getElementById('loginform').Username.focus();
}