
	var ns = (navigator.appName=="Netscape" && parseInt(navigator.appVersion)>=4)?true:false
	var ie = (navigator.appName=="Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4)?true:false
	var ns6 = (document.getElementById&&!document.all)

	var safari = new String(navigator.appVersion);
	var expr=/safari/gi;
	Saf = safari.search(expr);

	var navigsaf = (Saf!=-1)?true:false;

	


function getLayer(name) {
	
  if (ie) {  
    return eval('document.all.' + name);
  }
	if (ns6) {
		return document.getElementById(name);
	}
  return null;
  
}



function setBorder() {		
				
		main1 = getLayer('main');
		main1.style.visibility="visible";
		
		div1 = getLayer('gauche');
		div2 = getLayer('centre');
		div3 = getLayer('droite');
		
		if(div1.offsetHeight>=div2.offsetHeight && div1.offsetHeight>=div3.offsetHeight){
			/** contentLeft is longer **/
			div1.style.height=div1.offsetHeight-20+"px";
			div2.style.height=div1.offsetHeight-20+"px";
			div3.style.height=div1.offsetHeight+"px";
		}
		else	if(div2.offsetHeight>=div1.offsetHeight && div2.offsetHeight>=div3.offsetHeight){
			/** contentCenter is longer **/
			div2.style.height=div2.offsetHeight-20+"px";
			div1.style.height=div2.offsetHeight -20+"px";
			div3.style.height=div2.offsetHeight +"px";
		}
		else{
			/** contentRight is longer **/
			div3.style.height=div3.offsetHeight+"px";
			div1.style.height=div3.offsetHeight -20+"px";
			div2.style.height=div3.offsetHeight-20 +"px";
		}
		
			
		//return windowWidth;
		
}

	
	



function emptyField() {
	document.rechercheForm.query.value="";
}


function submitform()
{
  document.rechercheForm.submit();
}

