
/**
 *
 * @access public
 * @return void
 **/
 var start;
 var end;
 var cnt=0;

function verif_reponse(val,rep,idrep,idval){

	if(rep==val) {
	window.location="p,"+idrep+",play.htm";
	}
	else {
	document.getElementById("Ecouter").innerHTML=rep;
	soundManager.play('ERR_'+rep);
	setTimeout("window.location='p,los,"+idrep+","+idval+",play.htm'",2000);

	}
}

 function func_KeyPress(event){
 TouchKeyPress = (window.Event) ? event.which : event.keyCode;
//alert(TouchKeyPress);
if (TouchKeyPress==114 && event.altKey) {
	window.location="p,resultat.htm";
}
 }

 function func_KeyDown(event){
 TouchKeyPress = (window.Event) ? event.which : event.keyCode;

if (TouchKeyPress==223) {
cnt++;

}
 }

  function func_KeyUp(event){
 TouchKeyPress = (window.Event) ? event.which : event.keyCode;

if (TouchKeyPress==223) {

if(cnt >100)
	window.location="accueil.htm";
}
 }
 /**
  *
  * @access public
  * @return void
  **/
 function show(){
 	document.getElementById('playDiv').style.visibility="visible";
 }

