context: function validate_numeric_text_field(name, allow_negative){	if (arguments.length < 2) return false;	// if the string is not a number, or if negatives aren't allowed and the first character is a '-'.	if (parseInt(name.value) != name.value || (name.value.length > 0 && allow_negative == false && name.value.charAt(0) == "-" ) ) {		var outstr = "";		for (ii = 0; ii < name.value.length ; ii++) {			// if a number, or if negatives are allowed, a '-' at the beginning of the string			if ((parseInt(name.value.charAt(ii)) == name.value.charAt(ii)) ||			(allow_negative == true && ii == 0 && name.value.charAt(ii) == "-") ){				outstr += name.value.charAt(ii);			}		}		name.value = outstr;				if (name.createTextRange) {			// ie support			var range = name.createTextRange();			range.moveStart("character", name.value.length);			range.moveEnd("character", 0);			range.select();		} else if (name.selectionStart || name.selectionStart == 0) {			// mozilla support			name.selectionEnd = name.selectionStart = name.value.length;		}	}	if (arguments.length > 3) {		validate_numeric_range(name, arguments[2], arguments[3], false);	}}
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5635/5212b905208fcf90337cffb518a58b6ba38b5234/html_form.js/clean/core/lib/html_form/html_form.js