
String.prototype.bothTrim = function() { return this.replace(/^\s+|\s+$/, ''); };

function validCriteria(obj_form) {
	if (obj_form.ftx_rech.value.bothTrim().length)
		return true;
	else {
		return false;
	}
};

function open_window(str_page,str_fen,w,h,str_scroll) {
	var fen=this.open(str_page,str_fen,'toolbar=no,menubar=no,scrollbars='+str_scroll+',resizable=no,status=no,width='+w.toString()+',height='+h.toString()+',left='+((screen.width - 500)/2) +',top='+((screen.height - 370)/2));
};

var boo_menu_focus = true;
var boo_textarea_focus = true;

