//====================================================================================================
//	File Name		:	login.js
//	# File Version: v 1.0
//	# Created By: Maulik Chandarana
//	# Created On: 22 March 2007
//	# Last Modified By:
//	# Last modified On:
//  # Purpose : This is file carries validation and other related function for Login page.
//----------------------------------------------------------------------------------------------------

//====================================================================================================
//	Function Name	:	Form_Submit()
//	Created By: Maulik Chandarana
//	Created On: 22 March 2007
//	Last Modified By:
//	Last modified On:
//  Purpose : Validates form variables 
//  Parameters: frm : Form name for which variables need to validate.
//----------------------------------------------------------------------------------------------------
function Form_Submit(frm)
{
	with(frm)
    {
		
    	if(!IsEmpty(txtUserName, 'Please Enter Username.'))
        {
			return false;
        }
    	if(!IsEmpty(txtPassword, 'Please Enter Password.'))
        {
			return false;
        }
    }
}
//====================================================================================================
//	Function Name	:	Show_Focus()
//	Created By: Maulik Chandarana
//	Created On: 22 March 2007
//	Last Modified By:
//	Last modified On:
//  Purpose : Take the focus on Username field when page loads
//  Parameters: frm : Form Object.
//----------------------------------------------------------------------------------------------------
function Show_Focus(frm)
{
	frm.txtUserName.focus();
}