  function ClearText(textBoxName)
  {
  	document.all(textBoxName).value = "";	
  }
  
  function checkIfNumeric(textBoxName)
  {
	if(document.all(textBoxName).value == "" ||document.all(textBoxName).value != ""){
		if(!isNumeric(document.all(textBoxName).value)){
			alert("Field value is not numeric or not in the proper numeric format (no commmas). Value will be reset to 0")
			document.all(textBoxName).value =0
			document.all(textBoxName).focus()
		}
	}
  }
  
  function checkIfDateFormat(textBoxName)
  {
	if(document.all(textBoxName).value != ""){
		if(!isDate(document.all(textBoxName).value)){
			alert("Field value is not in the correct Date format (mm/dd/yyyy). Value will be reset.")
			document.all(textBoxName).value =""
			document.all(textBoxName).focus()
		}
	}
  }
  function checkIfLengthOfString(textBoxName,maxLength)
  {
  	maxLength2 = parseInt(maxLength)	
	

	var text=document.all(textBoxName).value
	var textLength=text.length
	
	if(textLength>maxLength2){
			alert("Length is over the maximum alloted number of characters (" +maxLength+ ") for this field. Please edit.")
			document.all(textBoxName).focus()
	}
  }
