function SearchDisabler(
	oForm,
	oInput,
	oSubmit
	) {
	
	this.oForm = oForm;
	this.oInput = oInput;
	this.oSubmit = oSubmit;
	
	this.check();
	
	var oThis = this;

	Common.Event.add(
		oInput,
		'keyup',
		function() { oThis.check() }
		);
		
	Common.Event.add(
		oInput,
		'focus',
		function() { oThis.check() }
		);
		
	Common.Event.add(
		oInput,
		'blur',
		function() { oThis.check() }
		);

	this.check();

}

SearchDisabler.prototype.check = function() {

	var bActive = this.oInput.value.length >= 3? true : false;

	this.oSubmit.disabled = !bActive;
	
	this.oForm.onsubmit = function() {
	
		return bActive;
	
	};

};