
var whitespace = " \t\n\r";

//Allows an empty array to be created with pre-specified dimension
function makeArray(nNumElements) {
   for (var i = 1; i <= nNumElements; i++) {
      this[i] = 0;
   } 
   return this;
}

//Checks for null value
function checkNull (s){//To check Null values
	if (isWhitespace(s.value)) 
       return false;
    else return true;
}


//Returns the error code
function warnInvalid(theField){
    return false;
}

//Returns the error
function warnInvalid1(theField){
    return false;
}


 //Shows the alert message and sets the focus to that field.
function fnMsgFocus(sMsg,objThis){
	alert(sMsg);
	objThis.focus();
	return false;
}

//Validates the length of the object passed against the length passed as the parameter and return true/false
function fnCheckLength(sString, nLength){
	if (sString.length > nLength)
		return false;
	return true;
}

