function check_form_search(monformulaire) {
    if(monformulaire.nom.value != '' || monformulaire.id_famille.value != '' || monformulaire.categorie.value != '' ) {
         monformulaire.submit();
		} 
    else {
		     alert('Veuillez remplir au moins 1 champs');
	  }
}

function open_url(page,largeur,hauteur,options) {
  var top=(screen.height-hauteur)/2;
  var left=(screen.width-largeur)/2;
  window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}

function open_photo(img)
{
     w=open("",'Photo','top=0,left=0,width=600,height=480,toolbar=no,scrollbars=no,resizable=yes');	
     w.focus();
     w.document.write("<HTML>\n<HEAD>\n<TITLE>Tiaredex - Photo - Zoom</TITLE>\n<link type='text/css' rel='stylesheet' href=''>\n</HEAD>\n");
     w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+40,document.images[0].height+95); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>\n");
     w.document.write("<BODY onload='checksize()'>\n<center>\n<a href='javascript:window.close()'><IMG src='"+img+"' border=0></a></center>\n\n</BODY>\n</HTML>");
     w.document.close();
}
		
function show(id) 
{
   if (document.getElementById) {
  	document.getElementById(id).style.visibility="visible";
   } 
   else if (document.all) {
  	document.all[id].style.visibility="visible";
   } 
   else if (document.layers) {
  	document.layers[id].visibility="visible";
   }
	 document.location = '#top';
}
function hide(id) 
{
	 if (document.getElementById) {
		document.getElementById(id).style.visibility="hidden";
	 } 
	 else if (document.all) {
		document.all[id].style.visibility="hidden";
	 } 
	 else if (document.layers) {
		document.layers[id].visibility="hidden";
	 } 
} 

function afficheEdito(toThis) {
    if (document.getElementById) {
        document.getElementById("edito_contenu").innerHTML = toThis;
    }
    else if (document.all) {
        document.all["edito_contenu"].innerHTML = toThis;
    }
}