//compatibilité getElementById
	
	
	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 bmiType(element){
		
		if(element=="metric"){
			tableau="bmi_table_metric";
			tableau1="bmi_table_UK";
			tableau2="bmi_table_US";

		}
		else if(element=="uk"){
			tableau="bmi_table_UK";
			tableau1="bmi_table_metric";
			tableau2="bmi_table_US";

		}
		else if(element=="us"){
			tableau="bmi_table_US";
			tableau1="bmi_table_metric";
			tableau2="bmi_table_UK";

		}
		
		
		monGetElementById('bmi_field').value=element;
		//monGetElementById('bmi_calculateButton').style.display="block";
		
		idTable=monGetElementById(tableau);
		idTable1=monGetElementById(tableau1);
		idTable2=monGetElementById(tableau2);
		
		idTable.style.display="block";
		idTable1.style.display="none";
		idTable2.style.display="none";
		
		


	}
	
	function yourholiday_selectpartner(){
		var valeur=document.questForm.partner.selectedIndex;
		var index=document.questForm.partner[valeur].value;
		var idMenu=monGetElementById('yourholiday_partner_cache');
		if(index=='9999'){
			
			idMenu.style.display="block";
		}
		else{
			idMenu.style.display="";
			document.questForm.other_partner.value='';
		}
	}
	
	function active_menu(menu){
		var idMenu;
		idMenu=monGetElementById(menu);

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

	function change_currency(){
		var valeur=document.currency_form.currency.selectedIndex;
		var index=document.currency_form.currency[valeur].value;
		document.currency_form.currency_champs.value=index;
		
	}

	function confirm_sub_url(text,url){


		if(confirm('Confirm:'+text)){
			window.location.href = url;
		}



	}
