//************************************************************************************* 
//*                               fnIsEmptyString.js
//*                               -------------------              
//*                                                                  
//*  Desc: Function - Is string empty or null 
//*                                                                  
//*  Return true if empty or null                                                                 
//*                                                                  
//*  Example of Call:                                                 
//*  ----------------                                                
//*  <SCRIPT LANGUAGE="Javascript" SRC="/csjs/fnIsEmptyString.js"></SCRIPT> 
//*  var myRc = fnIsEmptyString("XXXXXX");             
//*                                                                   
//* Maintenance                                                       
//*		12/08/99 - bak - Updated space check to support version 3 browsers
//* -----------   
//*************************************************************************************
function fnIsEmptyString(inStr) 
 {
   // Regular Expressions only work in Nescape and IE versions 4 and up.
   //return (inStr == null || /^ *$/.test(inStr));
   
	var allSpaces = true;
	var inStrLength = inStr.length;
	for (i=0; i<inStrLength; i++) {
		if (inStr.substring(i,i+1) != " ") {
   			allSpaces = false;
   			break;
		}  
	}
   
   return (inStr == null || allSpaces);
 } 