<!-- 
var debut='<html><head><title>R&eacute;sultat Test AUDIT</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="/forum/templates/abandon/abandon.css" type="text/css" /></head><body><center><table width="450" border="0"><tr><td><center><br />'
var titre='<table border="0" cellspacing="0" cellpadding="0"><tr><td class="a4"></td></tr><tr><td class="titre"><h2>Votre consommation d\'alcool</h2></td></tr><tr><td class="a4"></td></tr></table><br /></center>'
var fin='<form name="fermer"><center><input type=button alt="Fermer" name="Fermer" value="Fermer la fen&ecirc;tre" style="font-family:Verdana;font-size:11px;color:#660066;background-color:#ebe7f1" onclick="self.close()" onmouseover="this.style.color=\'#ff0000\'"  onmouseout="this.style.color=\'#660066\'" onmousedown="this.style.color=\'#ff9900\'" /></center></form></td></tr></table></center></body></html>'
var complet="Veuillez répondre à toutes les questions"
var rangd=0
var panswerd = new Array;
var nquestd = new Array;
var nvald = new Array;
nb_eltsd= 4;
for (var j=1;j<5;j++){
nquestd[j]=0}

var scored = 0;
var repd = 0;

function Engined(questiond, answerd) {
val_repd=parseInt(answerd)
repd++;
rangd=questiond.substring(1,4)
if(nquestd[rangd]==0){

nquestd[rangd]=1
nvald[rangd]=val_repd
scored = scored +val_repd
}
else{
val_repd=nvald[rangd]
scored = scored -val_repd
val_repd=parseInt(answerd)
nvald[rangd]=parseInt(answerd)
scored = scored +val_repd
}}

function deta(theURL,winName,features,largeur,hauteur) 
{if (repd>= nb_eltsd ) {
features="resizable=1";
largeur=470;
hauteur=260;
posx=(screen.width-largeur)/2;
posy=(screen.height-hauteur)/5;
correc=open("","correction",features+", width="+largeur+", height="+hauteur+", top="+posy+", left="+posx);
correc.document.write(debut);
correc.document.write(titre);
correc.document.write('<p><span class="vert"></span>  <span class="vert"> '+scored+' </span></p>');
correc.document.write("<p>Deux r&eacute;ponses positives (ou plus) &agrave; ces questions sont &eacute;vocatrices d'une consommation nocive.</p>");
correc.document.write(fin);}
else {
   alert(complet);
  }
}

var rang=0
var panswer = new Array;
var nquest = new Array;
var nval = new Array;
nb_elts= 10;
for (var i=1;i<12;i++) {
nquest[i]=0}

var score = 0;
var rep = 0;

function Engine(question, answer) {
val_rep=parseInt(answer)
rep++;
rang=question.substring(1,4)
if(nquest[rang]==0){

nquest[rang]=1
nval[rang]=val_rep
score = score +val_rep
}
else{
val_rep=nval[rang]
score = score -val_rep
val_rep=parseInt(answer)
nval[rang]=parseInt(answer)
score = score +val_rep
}}

function correction(theURL,winName,features,largeur,hauteur) 
{if (rep>= nb_elts ) {
features="resizable=1";
largeur=490;
hauteur=380;
posx=(screen.width-largeur)/2;
posy=(screen.height-hauteur)/5;
correc=open("","correction",features+", width="+largeur+", height="+hauteur+", top="+posy+", left="+posx);
correc.document.write(debut);
correc.document.write(titre);
correc.document.write('<p><span class="vert">Votre résultat AUDIT :</span>   <span class="vert"> '+score+' </span></p>');
correc.document.write('<p>Si vous obtenez un score compris entre 6 et 12 si vous &ecirc;tes une femme ou entre 7 et 12 si vous &ecirc;tes un homme, cela signifie que votre consommation de boissons alcoolis&eacute;e pr&eacute;sente vraisemblablement des risques pour votre sant&eacute;.</p><p>A partir de 13, nous vous conseillons de consulter votre m&eacute;decin.</p>');
correc.document.write(fin);}
else {
   alert(complet);
  }
}
//  -->