
/* common js function */
function showDiv(divId){
		if (divId =='1code'){
			document.getElementById('1code').style.display = 'inline';
			document.getElementById('2code').style.display = 'none';
		}
		if (divId =='2code'){
			document.getElementById('1code').style.display = 'none';
			document.getElementById('2code').style.display = 'inline';
		}
}
function divText(divID,text){document.getElementById(divID).innerHTML="<p style='font-weight:bold;'>Période : "+text+"</p>";}
function shows(w){ window.status=w;return true;}
function clear(){window.status='';}//Clear windows status
// Open a new Help Window
function help(url_aide){var dest='/nav.php/aide_saisie/top/'+url_aide;   window.open (dest, 'Aide', 'scrollbars=yes,status=no,width=560,left=100,height=440,resizable=no,location=no');}
// Open a new Window
function recommend(){  var dest='/nav.php/recommendation/SID/130e523297dd7ba41d5914cbb41b1b2f';   window.open (dest, 'Aide', 'scrollbars=yes,status=no,width=560,left=100,height=440,resizable=no,location=no');}
// Change the cursor for this object
function pointer( current ) {current.style.cursor = 'pointer';}
// Visit the URL provided in Parameter
function loadUrl( url ) {    window.location = url; }
function showHide(id){   if (document.getElementById){      obj = document.getElementById(id);if (obj.style.display == "none"){ obj.style.display = "";   } else { obj.style.display = "none";    }   }}
function ShowHide(id){   if (document.getElementById){      obj = document.getElementById(id);if (obj.style.display == "none"){ obj.style.display = "";   } else { obj.style.display = "none";    }   }}
function toggle( targetId ){  if (document.getElementById){target = document.getElementById( targetId );if (target.style.display == "none"){target.style.display = "";} else {target.style.display = "none";}}}

function startWait() {document.getElementById("waitIndicator").style.display = "inline";	}
function clearWait() {	document.getElementById("waitIndicator").style.display = "none";}
// autoload=1


// Visit a URL
function VisitMenu(url) {idx = document.ParentMenuForm.ChildOption.selectedIndex;location.href = document.ParentMenuForm.ChildOption.options [idx].value;}
