
var num=0;
function switchDiv(strDivName,bolVisible){
//identify the element based on browser type
 objElement = document.getElementById(strDivName);
   if(!bolVisible) {
     objElement.style.visibility = "hidden";
   } else {
     objElement.style.visibility = "visible";
   }
}
function OnOff(strDivName){
//identify the element based on browser type
 objElement = document.getElementById(strDivName);
   if(objElement.style.visibility == "hidden" || objElement.style.visibility == "" ) {
     objElement.style.visibility = "visible";
   } else {
     objElement.style.visibility = "hidden";
   }
}
function loadPageScript(arg){
   num++;
   win=window.open('info.php?page='+arg+'&type=script',
	'f'+arg,"top=100,left=100,width=340,height=400,toolbar=yes,scrollbars=yes,resizable=yes");
   win.focus();
}
function loadPageScriptSpec(arg,w,h){
   num++;
   win=window.open('info.php?page='+arg+'&type=script',
	'f'+arg,"top=100,left=100,width="+w+",height="+h+",toolbar=yes,scrollbars=yes,resizable=yes");
   win.focus();
}
function loadPageFrame(arg){
   num++;
   win=window.open('info.php?page='+arg+'&type=frame',
	'f'+arg,"top=100,left=100,width=340,height=400,toolbar=yes,scrollbars=yes,resizable=yes");
   win.focus();
}
function alerter(){
	var poids = document.calc_imc.poids.value;
	var taille = document.calc_imc.taille.value;
	var imc = eval(poids/(taille*taille)).toFixed(2);
	alert('imc = '+imc);
 }
