/*
'=================================================================================================
'PAGE: isTOOLong.js
'
'DESCRIPTION: Checks if the value passed in is of the correct length
'
'DATE CREATED: ??  
'
'WRITTEN BY: rmoore
'=================================================================================================
'CHANGE LOG:
' rmoore 2001.04.24 addapted to make alert message optional
*/
function isTOOLong(curField, minlength, maxlength, message){
	theString = curField.value
	var strLen
	var valid
	
	valid = true
	strLen = theString.length
	
	if (strLen < minlength) {
		valid = false
		message = "Please fill in the required information";
	}
	if (strLen > maxlength) {
		valid = false
	}
	if (valid) {
		return true
	} else {
		if (message != "") {
			alert (message)
			curField.focus();
		}
		return false
	}
}
