
	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() {		
		/*var windowWidth = 0;
		if (typeof(window.innerWidth) == 'number') {
			windowWidth = window.innerWidth;
		}
		else {
			if (document.documentElement && document.documentElement.clientWidth) {
				windowWidth = document.documentElement.clientWidth;
			}
			else {
				if (document.body && document.body.clientWidth) {
					windowWidth = document.body.clientWidth;
				}
			}
		}
		leftBorder1 = getLayer('leftBorder');
		rightBorder1 = getLayer('rightBorder');
		
		
		
		
		
		leftWidth = (windowWidth-1000)/2;
		leftBorder1.style.width=leftWidth+"px";
		rightBorder1.style.width=leftWidth+"px";	
		
		leftBorder1.style.visibility="visible";
		
		rightBorder1.style.visibility="visible";*/
		
		main1 = getLayer('main');
		main1.style.visibility="visible";
		
		div1 = getLayer('contenu');
		div2 = getLayer('centre');
		
		
		
			div2.style.height=(div1.offsetHeight)+"px";				
		

		
	}
	

	
	



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


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

