rem:  var range = name.createTextRange(); range.moveStart("character", -input.value.length); range.moveEnd("character", -input.value.length); range.select(); 
add:  if (name.createTextRange) {  var range = name.createTextRange(); range.moveStart("character", name.value.length); range.moveEnd("character", 0); range.select(); } else if (name.selectionStart || name.selectionStart == 0) {  name.selectionEnd = name.selectionStart = name.value.length; } 
context: function validate_numeric_text_field(name, allow_negative){	// if the string is not a number, or if negatives aren't allowed and the first character is a '-'.	if (name.value * 1 != 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 ((name.value.charAt(ii) * 1 == name.value.charAt(ii)) ||			(allow_negative == true && ii == 0 && name.value.charAt(ii) == "-") ){				outstr += name.value.charAt(ii);			}		}		name.value = outstr;		var range = name.createTextRange();		range.moveStart("character", -input.value.length);		range.moveEnd("character", -input.value.length);		range.select();	}}
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5635/ac33cbabd136c23bed23a9c05cea284c9358bcb3/html_form.js/buggy/core/lib/html_form/html_form.js