	//	Error message used in client side validation
	var INVALID_TEXT_ENTRY;
	INVALID_TEXT_ENTRY = 'Validation Error:\n\nPlease make sure the field have proper format:\n\nField				AlphaNumeric\n\nNote:The field value contain any of the following characters:\n ` ! $ % ^ & * _ + : ; < > ? \ { } [ ]';	
	
	var INVALID_NUMBER_ENTRY;
	INVALID_NUMBER_ENTRY = 'Validation Error.\n\n Please make sure the field has the following format:\n\nField				Numbers only';	

			
	/*-------------------------------------------------------------------------------------------------------------
	///
	///	Validate Text field. 
	///
	-------------------------------------------------------------------------------------------------------------*/
	function ValidateText(uControl)
	{	
		if (uControl.value.length == 0)
		{
			return;
		}

		//	Validate entry with reg expression		
		var  regularExpression =  /^[a-zA-Z0-9 ]+$/;				
		if (!uControl.value.match(regularExpression))
		{
			alert(INVALID_TEXT_ENTRY);										
			uControl.focus();		
			uControl.select();	
		}				
	}

	/*-------------------------------------------------------------------------------------------------------------
	///
	///	Validate Number field. 
	///
	-------------------------------------------------------------------------------------------------------------*/
	function ValidateNumber(uControl)
	{	
		if (uControl.value.length == 0)
		{
			return;
		}

		//	Validate entry with reg expression		
		var  regularExpression = /^[0-9 ]+$/;						
		if (!uControl.value.match(regularExpression))
		{
			alert(INVALID_NUMBER_ENTRY);										
			uControl.focus();		
			uControl.select();	
		}			
	}
	




