// JavaScript Document



function EvalSound(soundobj) {
  var thissound=document.getElementById(soundobj);
  thissound.Play();
}



function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function montre(id) {
          if (document.getElementById) {
                  document.getElementById(id).style.visibility="visible";
                } else if (document.all) {
                  document.all[id].style.visibility="visible";
                } else if (document.layers) {
                  document.layers[id].visibility="visible";
                } } 
                
                
  function cache(id) {
          if (document.getElementById) {
                  document.getElementById(id).style.visibility="hidden";
                } else if (document.all) {
                  document.all[id].style.visibility="hidden";
                } else if (document.layers) {
                  document.layers[id].visibility="hidden";
                } } 

function ChangePrix() { //v3.0
	var check = prompt('Saisissez le nouveau prix :');
	if (check)
	{
  var i, args=ChangePrix.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+check+"'");
  }
}


function MM_jumpMenu(targ,targ2,selObj,restore){ //v3.0
  eval(targ+".location='"+targ2+"?nb="+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function confirmation(lien,msg){
	if(confirm(msg)){
	window.location=lien;
	}
}