String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}

var General = {};

General.prescript = {
	init: function(){
	
	},

	validateSearch: function(field){
		if (!field) return false;
		return field.value.trim().length > 0;
	}
}
General.prescript.init();