	
	function setFocus(id){
		monGetElementById(id).focus();
	}
	
	
	function monGetElementById(id) {	
		if (document.all && !document.getElementById) {
     		//IE 4 supports doucment.all but NOT document.getElementById
		     return document.all(id);
		} else if (document.layers) {
		     //Netscape 4 only browser that supports document.layers
		     return document.layers(id);
		} else if (document.getElementById) {
		     //Works for Netscape 6 and IE 5

			return document.getElementById(id);
		} 
	}


	function menu_action(table){

		//idDiv=monGetElementById('cacheTonDiv');
		idMenu=monGetElementById('menu_defCorps');

		if(idMenu.style.display=="block"){
			//idDiv.style.display="";
			idMenu.style.display="";
		}
		else{
			//idDiv.style.display="block";
			idMenu.style.display="block";
		}
		/*
		id.style.display="block";
		document.monGetElementById('cacheTon').style.display="";
		document.getElementById("cacheTon").style.display="";
		*/
	}

	function dev_cycles(cycle){

		idMenu=monGetElementById(cycle);
		idOpen=monGetElementById('open_'+cycle);

	if(idMenu.style.display=="block"){
			idMenu.style.display="";
			idOpen.innerHTML="<a href=\"javascript:dev_cycles('"+cycle+"')\" class=\"genLink_blanc\">Open</a>";
		}
		else{
			idMenu.style.display="block";
			idOpen.innerHTML="<a href=\"javascript:dev_cycles('"+cycle+"')\" class=\"genLink_blanc\">Close</a>";
		}
	}


	function menuSeed(){///description seed

		idMenu=monGetElementById('earth_seedDescription');

		if(idMenu.style.display=="block"){
			idMenu.style.display="";
		}
		else{
			idMenu.style.display="block";
		}
	}

	function menu_cacheSeed(){//seed principale

		idMenu=monGetElementById('seed');

		if(idMenu.style.display=="block"){
			idMenu.style.display="";
		}
		else{
			idMenu.style.display="block";
		}
	}

	function menu_general(div){//seed principale

		idDiv=monGetElementById(div);

		if(idDiv.style.display=="block"){
			idDiv.style.display="";
		}
		else{
			idDiv.style.display="block";
		}
	}

	function menu_cacheEvent(){//seed principale

		idMenu=monGetElementById('cacheEvent');

		if(idMenu.style.display=="block"){
			idMenu.style.display="";
		}
		else{
			idMenu.style.display="block";
		}
	}

	
	function menuTzolkin(table){

		idGeneral=monGetElementById('earth_tzolkinGeneral');
		idDetail=monGetElementById('earth_tzolkinDetail');
		
		idTable=monGetElementById(table);

		idGeneral.style.display='';
		idDetail.style.display='';
		
		idTable.style.display="block";
		
	}

	function getLocalTime(){
		var date=new Date();
		var jour=date.getDate();
		var mois=date.getMonth()+1;
		var annee=date.getFullYear();
		var heure=date.getHours();
		var minute=date.getMinutes();
		monGetElementById("hourShift").value=jour+":"+mois+":"+annee+":"+heure+":"+minute;
	}
	
	function mc_getLocalTime(){	//page set mc_mexico birthdate
		var date=new Date();
		var jour=date.getDate();
		var mois=date.getMonth()+1;
		var annee=date.getFullYear();
		var heure=date.getHours();
		var minute=date.getMinutes();
		
		

		monGetElementById("localTime_jour").innerHTML=jour;

		monGetElementById("localTime_mois").innerHTML=mois;
		monGetElementById("localTime_annee").innerHTML=annee;
		monGetElementById("localTime_heure").innerHTML=heure;
		monGetElementById("localTime_minute").innerHTML=minute;
		monGetElementById("localTime").value=jour+":"+mois+":"+annee+":"+heure+":"+minute;
		
	}
	
	function mc_setMexico_birthPlace_select(){
		monGetElementById("choix_birthPlace").checked='checked';
	}
	function focus_mc_setMexico(){
		monGetElementById("birthPlace_jour").focus();
	}
	function mc_setMexico_samePlace_select(){
		monGetElementById("birthPlace_jour").value='';
		monGetElementById("birthPlace_mois").value='';
		monGetElementById("birthPlace_annee").value='';
		monGetElementById("birthPlace_heure").value='';
		monGetElementById("birthPlace_minute").value='';
	}
	function mc_checkRadio(nomId){
		monGetElementById(nomId).checked='checked';
	}
