
/*
function newpage(newurl,mainurl){
var bla = newurl;
var blabla = mainurl;

temp = bla.replace(/fr/,"en");
temp2 = blabla.replace(/fr/,"en");

//newWindow = window.open(temp);

window.parent.location.href = temp2;

setTimeout("parent.MainWindow.location.href = temp",10000);
alert(temp2 +"  ----   " + temp );
//parent.MainWindow.location.href = temp;
}
*/	  


function showVideo(isOn) {
   if(IE4) {
      parent.MainWindow.document.all("video").style.visibility = isOn ? "visible" : "hidden";
   }
   else {
     parent.MainWindow.document.video.visibility = isOn ? "show" : "hide";
   }
}


/***************************** pour le bouton impression*******************************/ 

function openBigWindow(windowURL) {
	window.name = 'parentWnd';
	newWindow = window.open(windowURL,null,"width=780,height=355,scrollbars=1,resizable=1,left=120,top=150");
	newWindow.focus();
}

function printIt() {
	var currentContent = parent.MainWindow.location.href;
	openBigWindow(currentContent);
}
/***************************** fin pour le bouton impression*******************************/ 


function TJSExtraireParam() {
		url = window.location.href;
		var exp=new RegExp("[&?]+","g");
		var exp2=new RegExp("[=]+","g");
		var tabNom=url.split(exp);
		var tabParam=new Array();
		if (tabNom!=null) {
			for (var i=1;i<tabNom.length;i++){
				var tabTemp=tabNom[i].split(exp2);
				tabParam[tabTemp[0]]=tabTemp[1];
			}
		}
		return tabParam;
	}
	

function entete(){
	if (parent.frames.length != 0) {
		document.write('<body marginwidth=0 marginheight=0 leftmargin=0 topmargin=0 bgcolor=white>');
	
}
	else
{
document.write('<body bgcolor=#ffffff>')
		
	}
}


function Pied_de_page(){
	if (parent.frames.length != 0) {
	}
	else{
	}
}

/*<!-- Ancre pour remonter en haut de la page -->*/ 
function Haut(langue){
	if (parent.frames.length != 0) {
	document.write('<a href=\"#top\"><img src="..\\images\\Haut.gif" align=right border=0 ');
if (langue == 'fr')
{document.write('alt=Haut ><\/a>');}
if (langue == 'es')
{document.write('alt=Arriba ><\/a>');}
if (langue == 'en')
{document.write('alt=Top ><\/a>');}
if (langue == 'de')
{document.write('alt=Hoch ><\/a>');}

	}	
}
/*<!-- 31.10.2003 Amos Dishon 
Fonction permettant d'ouvrir un lien dans une autre fenetre d'une taille et d'une forme donnée -->*/

function ouvre(adr){
var width1=screen.width ;

if (width1>="1280") window.open(adr,null,"width=1250,height=700,scrollbars=1,resizable=1,left=3,top=230");
if (width1>="1152") window.open(adr,null,"width=1130,height=700,scrollbars=1,resizable=1,left=3,top=230");
if (width1>="1024") window.open(adr,null,"width=1005,height=460,toolbar=0,menubar=0,directories=0,location=0,scrollbars=1,resizable=1,left=3,top=210");
if (width1>="800") window.open(adr,null,"width=780,height=355,scrollbars=1,resizable=1,left=3,top=150");
if (width1>="720") window.open(adr,null,"width=700,height=300,scrollbars=1,resizable=1,left=3,top=150");
if (width1>="640") window.open(adr,null,"width=620,height=250,scrollbars=1,resizable=1,left=3,top=150");

}	

/**********************Fonctions pour le quiz********************************/

// fonction qui calcul le nombre de points obtenus et affiche le resultat  
      function calculer (langue) {
      juste = q1 + q2 + q3 + q5+ q6 + q7 + q8 + q9 + q41 + q42 + q44 + q45 + q46 + q51 + q52 + q53 + q54 ;
      faux = q43 + q11 + q21 + q31 + q61 + q71 + q81 + q91;
	  if (langue == 'fr')
	  	 		 if(confirm("Vous avez: \n"+ "     - "+ juste +" réponses justes sur 16 \n" +"     - "+ faux + " erreurs \n\n Voulez-vous une explication des réponses?"))
				 				  parent.MainWindow.location.href = "0801.html"	
	  	 
	  if (langue == 'es')
	  	 		 if(confirm("Usted tiene: \n"+ "     - "+ juste +" respuestas correctas sobre 16 \n" +"     - "+ faux + " fallos \n\n ¿Quiere una explicación de las respuestas?"))
				 				  parent.MainWindow.location.href = "0801.html"	
	  	  if (langue == 'en')
	  	 if (confirm("You got: \n"+ "     - "+ juste +" answers correct out of 16 \n" +"     - "+ faux + " mistakes \n\n Would you like an explanation of the answers?"))
				 				  parent.MainWindow.location.href = "0801.html"		 
	  if (langue == 'de')
	  	 if (confirm("Sie haben: \n"+ "     - "+ juste +" richtige Antworten von 16 \n" +"     - "+ faux + " falsche Antworten \n\n Möchten Sie die richtigen Antworten sowie \n Erklärungen dazu anschauen?"))
				 				  parent.MainWindow.location.href = "0801.html"		 
      }

	  
//mise à zero du bouton reset...
      function zero () {
      juste = 0;
      faux = 0;
      q1 = 0;
      q11 = 0;
      q2 = 0;
      q21 = 0;
      q3 = 0;
      q31 = 0;
      q41 = 0;
      q42 = 0;
      q43 = 0;
      q44 = 0;
      q45 = 0;
      q46 = 0;
      q5 = 0;
      q51 = 0;
      q52 = 0;
      q53 = 0;
      q54 = 0;
      q6 = 0;
      q61 = 0;
      q7 = 0;
      q71 = 0;
      q8 = 0;
      q81 = 0;
      q9 = 0;
      q91 = 0;
      }

/**********************************fin fonctions quiz**********************/	  
