/*
	Name				: Himanshu Shah
	Created On			: 27/11/2002
	Modified By			:
	Last Modified date	:
	Called By			: Almost All pages of the site
	Reason				: Contents Common functions of the site
	Calling				: 
*/


/* Start ... Function for Trimming The Content Of TextBox Controls */	
	function Trim(objTxtValue)
	{
		txtValue = new String();
		txtValue1 = new String();
		var i=0;
		
		txtValue=objTxtValue;
		if(txtValue.length == 0)
		{
			return txtValue;
		}
		else
		{
			while(((txtValue.lastIndexOf(' ') + 1) == txtValue.length) && (txtValue.lastIndexOf(' ')!= 0))
			{
				txtValue1 = (txtValue.slice(0,txtValue.lastIndexOf(' ')));
				txtValue = txtValue1;
			}
			while (txtValue.indexOf(' ')==0)
		
			{
				txtValue1 = (txtValue.slice(1,txtValue.length));
				txtValue = txtValue1;
			}
			return txtValue;
		}	
	}
	
/* End ... Function for Trimming The Content Of TextBox Controls */

/* Start ... Function for Trimming Prefix Of Various Control Name */

	function TrimPrefix(objName)
	{
		TrimmedObjName = new String();
		TrimmedObjName = objName.slice(3,objName.length);
		return TrimmedObjName;
	}	

/* End ... Function for Trimming Prefix Of Various Control Name */





