//************************************************************************************************************************
//		Modules Name		:	Validation Functions
//		Website Name		:	
//		Developed  By		:	Core Informatics, Ahmedabad, Gujarat, India	
//************************************************************************************************************************
//		File Name			:	VALIDATION_JAVASCRIPT.JS
//		Description			:	Validation Functions
//		Creation Date		:	11/11/2006
//		Developer 			:	Raj Dilip Shah
//		Copyright Notice	:	Copyright 2003-2006. Core Informatics. All Rights Reserved.
//
//								All copyright notices must remain in tacked in the scripts and the outputted
//								HTML. This program is redistributable	under the terms of the License that 
//								accompanies this program and use it both privately and commercially.							
//
//								You may not pass the whole or any part of this application off as your own work. 
//								All links to Core Informatics and powered by logo's must remain unchanged and in 
//								place and must remain visible when the pages are viewed unless permission is first 
//								granted by the copyright holder.
//
//								For correspondence or non support questions contact:-
//
//								Core Informatics
//								Suite No. 21, B - Block, Sonal Complex, Opp. Sanjivani Hospital,
//								Nr. Vastrapur Lake, Vastrapur-Bodakdev, Ahmedabad - 380015. Gujarat. India.
//								Phone: 0091 79 2676 5439. 
//								Email: contact@coreinformatics.net.
//***********************************************************************************************************************

//***********************************************************************************************************************
//	Validation for LOGIN PROCESS
//***********************************************************************************************************************

function doLOGIN(){
	var theForm = document.frmLOGIN;
	if(Trim(theForm.txtLOGIN_ID.value).length == 0) {
		alert("Please enter your user name.");
		theForm.txtLOGIN_ID.focus();
		return false;
	}
	if(Trim(theForm.txtLOGIN_PASSWORD.value).length == 0) {
		alert("Please enter your password.");
		theForm.txtLOGIN_PASSWORD.focus();
		return false;
	}
	theForm.hidPROCESS.value = "Login";
	theForm.action = websiteURL + "/formaction.asp";	
	theForm.submit();	
	return true;	
}

function setEnter()
{
 
	var key = window.event.keyCode;
	//alert(key);
	if ((key == 13) ) //check if a number is entered
	{
		doLOGIN();
		return; // if so, do nothing
	}
	
}
//***********************************************************************************************************************