﻿function initTextBoxTrimmer() {
    if( typeof(ValidatorGetValue)=='function' ) {
		ValidatorGetValue = function(id) {
				var control;
				control = document.getElementById(id);
				if (typeof(control.value) == "string") {
					control.value = $.trim( control.value );
					return control.value;
				}
				return ValidatorGetValueRecursive(control);
			}
	}
	$('input[type=text]').change( function() { this.value = $.trim( this.value ); } );
}
