function fenetre(url, name,width,height) {
popupWin = window.open(url, name,width,height);
}

function Navigue1()  {
oualler1= document.leform1.selectmenu.options[document.leform1.selectmenu.selectedIndex].value;
window.location.href = oualler1;
}

var xDHTML=0;
var xLayers=0;
var xAll=0;
var xID=0;
if (document.getElementById) {
	xID=1;
	xDHTML=1;
}
else {
	if (document.all) {
		xAll=1;
		xDHTML=1;
	}
	else {
	alert("ici");
		browserVersion=parseInt(navigator.appVersion);
		if ((navigator.appName.indexOf('Netscape')!=-1)&&(browserVersion==4)) {
			xLayers=1;
			xDHTML=1;
		}
	}
}
	
function quelDOM(objectID,sonStyle) {
if (sonStyle==1) {
	if (xID) {
  		return (document.getElementById(objectID).style);
	}
	else {
		if (xAll) {
	 		return (document.all[objectID].style);
		}
 		else {
 			if (xLayers) {
				return (document.layers[objectID]);
			}
 		}
  	}
}
else {
	if (xID) {
		return (document.getElementById(objectID));
	}
	else {
		if (xAll) {
			return (document.all[objectID]);
		}
		else {
			if (xLayers) {
				return (document.layers[objectID]);
			}
		}
	}
}
}


function sonStyle() {
if (window.innerWidth != null) {
	return window.innerWidth;
}
if (document.body.clientWidth != null) {
	return document.body.clientWidth;
}
return(null);
}

function popUp(evt,objectID){
if (xDHTML) {
	var largPage = sonStyle();
	domStyle=quelDOM(objectID,1);
	dom=quelDOM(objectID,0);
	etat=domStyle.visibility;
	if (dom.offsetWidth) {
		largElem=dom.offsetWidth;
	}
	else {
		if (dom.clip.width)
			largElem=dom.clip.width;
		}
		if (etat=="visible"||etat=="show") {
			domStyle.visibility="hidden";
		}
		else {
			if (evt.pageY) {
				topVal=evt.pageY+20;
				valGche=evt.pageX-(largElem/2);
			}
			else {
				if (evt.y) {
					topVal=evt.y+20+document.body.scrollTop;
					valGche=evt.x-(largElem/2)+document.body.scrollLeft;
				}
			}
			if (valGche<2) {
				valGche=2;
			}
			else {
				if ((valGche+largElem)>largPage) {
					valGche=valGche-(largElem/2);
				}
			}
			domStyle.top=topVal;
			domStyle.left=valGche;
			domStyle.visibility="visible";
		}
	}
}

