addEvent(window, "load", makeMenu);
var divlayer ="";
//window.onload;
//makeMenu();
function makeMenu(){
	var menu = getElementsByClassName(document, "a", "menuitem");
	for (var i = 0; i < menu.length; i++) {
			menu[i].onclick = function () {
			var agree = document.getElementById("agree");
			if(agree.checked){
				location.replace("?agree=true&impot="+this.id);
			}else{
				alert("Vous devez accepter les conditions d'utilisation.");
			}
		};
	}
}