function Numeric_onBlur(obj, decimal_length) {	if (CustomValidator(obj.id, IsNumeric, "Please enter numeric value.")) {    if (obj.value != "") obj.value = (obj.value - 0).toFixed(decimal_length);	}	else {		setFocus(obj.id);	}}function Date_OnChange(obj) {	if (obj.value == "")		findObj(obj.id.substring(1)).value = "";}function TextAreaLimit(control, max_length) {	// if (control.value.length > max_length + 1)		// alert("Your input has been truncated!");	if (control.value.length > max_length)		control.value = control.value.substring(0, max_length);	if (findObj(control.id + "Span")) {		findObj(control.id + "Span").innerHTML = control.value.length + " characters";	}} function MoveListItem(controlID, to) {	var list = findObj(controlID);	var index = list.selectedIndex;	var total = list.options.length - 1;	if (index == -1) {		alert("Please select an item first.");		list.focus();		return false;	}	if (to == +1 && index == total) return false;	if (to == -1 && index == 0) return false;		var texts = new Array;	var values = new Array;	texts[0] = list.options[index].text;	texts[1] = list.options[index + to].text;	values[0] = list.options[index].value;	values[1] = list.options[index + to].value;		list.options[index + to] = new Option(texts[0],values[0], 0, 1);	list.options[index] = new Option(texts[1], values[1]);	list.focus();}