// JavaScript Document
	function trim(str) {
	
		return str.replace(/(^\s*)|(\s*$)/g,"")
		
	}

	function verif_recherche() {
		if (trim(document.form_recherche.rech.value)=='') {
			alert('Veuillez renseigner le champ avant de valider, SVP.');
			return false;
		} else {
			if(document.form_recherche.rech.value.length<3){
				alert('Veuillez entrer un paramètre significatif, SVP.');
				return false;
			}else{	
				window.open('recherche.asp?p='+document.form_recherche.rech.value+'&w='+(((screen.width - 848)/2)+140),'','resizable=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no,width='+(((screen.width - 848)/2)+140)+',height=' + (screen.height - 130) +',left=0,top=0');
				return true;
			} 
		}
	}
	
	function vote(n){
		document.location.replace('includes/include_vote.asp?n='+n);
	}
	
	function change_page(page_num){
		
		document.form_page_num.PageNum.value=page_num;
		document.form_page_num.submit();
		
	}

