function trim(s) {
return s.replace(/^\s+/, '').replace(/\s+$/, '');
}
function goToSearch() {
document.forms['form_recherche'].elements['text_recherche'].value = document.getElementById('search').value + " " + trim("")
document.forms['form_recherche'].submit()
}

function handleFrmInfosGleClick(o) {
		var aw = screen.availWidth;
		//var ah = parseInt(screen.availHeight/2);
		var ah = screen.availHeight;
		var w = 450;
		var h = 640;
		var hh = Math.min(h,ah);
		var vscroll = (h>hh);
		w += (vscroll?15:0)+(window.innerHeight?2:0);
		if(vscroll) h = ah;
		h -= (window.innerHeight?40:0)
		var l = parseInt(((aw-w)/2));
		var t = parseInt(((ah-h)/2));
		if( null==PopupFrmInfosGle || PopupFrmInfosGle.closed ) {
			PopupFrmInfosGle = window.open(o.href,o.target,'left='+l+',top='+t+',width='+w+',height='+h+',menubar=no,location=no,toolbar=no,resizable=no,scrollbars=yes,status=yes');
		} else {
			PopupFrmInfosGle.location = 'about:blank';
			setTimeout("PopupFrmInfosGle.location = '"+o.href+"';",1000);
		}
		PopupFrmInfosGle.focus();
}
var PopupFrmInfosGle = null;



