//----------------------------------------------------------------
// Empty/Null String		Src_isEmptyNull.js
// Ver 1.0.0				02/22/2002
// Tom Wall
//----------------------------------------------------------------
// NOTES:
//	Search Web Site and Replace any "isNullEmpty" calls with "isEmptyNull"
// 	when done, delete the "isNullEmpty" function from this Include
//
//	Test for an empty, null, or zero-length string
//----------------------------------------------------------------
	function isNullEmpty(str) 
	{
		//Remove leading spaces
		while(''+str.charAt(0)==' ')
			str=str.substring(1,str.length);
		
		//Remove trailing spaces
		while(''+str.charAt(str.length-1)==' ')
			str=str.substring(0,str.length-1);
		
		//Test for Null or Empty
		return (str == null || str == "");
	}
	
	function isEmptyNull(str) 
	{
		//Remove leading spaces
		while(''+str.charAt(0)==' ')
			str=str.substring(1,str.length);
		
		//Remove trailing spaces
		while(''+str.charAt(str.length-1)==' ')
			str=str.substring(0,str.length-1);
		
		//Test for Null or Empty
		return (str == null || str == "");
	}
//----------------------------------------------------------------
