var cent=0 
var sec=0 
var min=0 

function lance_chrono()
{
cent++; 
if (cent>9){cent=0;sec++} 
if (sec>59){sec=0;min++} 

if (min<10 && sec<10) {document.getElementById('cadran').innerHTML="0"+min+":0"+sec;}
if (min<10 && sec>=10) {document.getElementById('cadran').innerHTML="0"+min+":"+sec;}
if (min>=10 && sec>=10) {document.getElementById('cadran').innerHTML=""+min+":"+sec;}
compte=setTimeout('lance_chrono()',100) //la fonction est relancée tous les 10° de secondes
}

function stoppe_chrono()
{ 
clearTimeout(compte) 
cent=0;
sec=0;
min=0;
if (min<10 && sec<10) {document.getElementById('cadran').innerHTML="0"+min+":0"+sec;}
if (min<10 && sec>=10) {document.getElementById('cadran').innerHTML="0"+min+":"+sec;}
if (min>=10 && sec>=10) {document.getElementById('cadran').innerHTML=""+min+":"+sec;}
}
 
     
var position=-1;
var donne=new String();
var donne2=new String();
for (i=0; i<81; i++) {if (donne.charAt(i)!='.') {donne2+=donne.charAt(i);}
	else {donne2+=' ';}}


function curseur(a)
{position=a;
return(position)
}




function aide()
{if (position!=-1){window.document.sudoku[position].value=sol.charAt(position); position=-1;}
}

function donne_sol()
{for(i=0; i<81; i++) {if (donne.charAt(i)=='.' && window.document.sudoku[i].value!=sol.charAt(i)) {window.document.sudoku[i].style.color='#CC0000';}
						window.document.sudoku[i].value=sol.charAt(i);}
for (i=81; i<90; i++) {window.document.sudoku[i].value=mot_sol.charAt(i-81);}
for (i=0; i<9; i++) {window.document.sudoku[(position_mot[0]-1)*9+i].style.color='#006600'; window.document.sudoku[(position_mot[1]-1)+i*9].style.color='#006600';}
}

function purge()
{
for(i=0; i<81; i++) {if (donne.charAt(i)=='.' && window.document.sudoku[i].value.toUpperCase()!=sol.charAt(i)) {window.document.sudoku[i].value='';}}
for (i=81; i<90; i++) {for (j=81; j<i; j++){if (window.document.sudoku[j].value==window.document.sudoku[i].value){window.document.sudoku[i].value=''; break;}}}
for (i=81; i<90; i++) {if (window.document.sudoku[i].value!=''){var temp=0; for (j=0; j<9; j++){if (window.document.sudoku[i].value==mot_sol.charAt(j)){temp+=1; break;}}if (temp==0) {window.document.sudoku[i].value='';}}
}
}

function regroupe(a)
{	var groupe;
	if (a==0 || a==1 || a==2 || a==9 || a==10 || a==11 || a==18 || a==19 || a==20) {groupe=1;}
	if (a==3 || a==4 || a==5 || a==12 || a==13 || a==14 || a==21 || a==22 || a==23) {groupe=2;}
	if (a==6 || a==7 || a==8 || a==15 || a==16 || a==17 || a==24 || a==25 || a==26) {groupe=3;}
	if (a==27 || a==28 || a==29 || a==36 || a==37 || a==38 || a==45 || a==46 || a==47) {groupe=4;}
	if (a==30 || a==31 || a==32 || a==39 || a==40 || a==41 || a==48 || a==49 || a==50) {groupe=5;}
	if (a==33 || a==34 || a==35 || a==42 || a==43 || a==44 || a==51 || a==52 || a==53) {groupe=6;}
	if (a==54 || a==55 || a==56 || a==63 || a==64 || a==65 || a==72 || a==73 || a==74) {groupe=7;}
	if (a==57 || a==58 || a==59 || a==66 || a==67 || a==68 || a==75 || a==76 || a==77) {groupe=8;}
	if (a==60 || a==61 || a==62 || a==69 || a==70 || a==71 || a==78 || a==79 || a==80) {groupe=9;}
	return(groupe)
}

function controle(a,b,c)
{	
	for(i=0; i<81; i++) {var temp=new String(); temp+="a"+i; document.getElementById(temp).style.background='white'; window.document.sudoku[i].style.background='white';}
	if (window.document.sudoku[a*9+b].value==" ") {window.document.sudoku[a*9+b].value="";} 
	if (window.document.sudoku[a*9+b].value!="") {
	for(i=0; i<9; i++) {if ((a*9+i!=a*9+b) && (window.document.sudoku[a*9+i].value==window.document.sudoku[a*9+b].value.toUpperCase())) {for (j=0; j<9; j++) {var temp=new String(); temp+="a"+(a*9+j); document.getElementById(temp).style.background='#F8CEFE'; window.document.sudoku[a*9+j].style.background='#F8CEFE'; encours=a*9+b;}; }}
	for(i=0; i<9; i++) {if ((9*i+b!=a*9+b) && (window.document.sudoku[9*i+b].value==window.document.sudoku[a*9+b].value.toUpperCase())) {for (j=0; j<9; j++) {var temp=new String(); temp+="a"+(j*9+b); document.getElementById(temp).style.background='#F8CEFE'; window.document.sudoku[j*9+b].style.background='#F8CEFE'; encours=a*9+b;}; }}
	for (i=0; i<81;i++) {if (i!=a*9+b && regroupe(i)==c && window.document.sudoku[i].value==window.document.sudoku[a*9+b].value.toUpperCase()) {{for (j=0; j<81; j++) {if(regroupe(j)==c) {var temp=new String(); temp+="a"+j; document.getElementById(temp).style.background='#F8CEFE'; window.document.sudoku[j].style.background='#F8CEFE'; encours=a*9+b;}}; }}}
													}
	for(i=0; i<81;i++) {if (window.document.sudoku[i].value.toUpperCase()!=sol.charAt(i)){return;}}
	donne_calque('felicitation');

}						  
	
function lance()
{
for(i=0; i<81; i++) {window.document.sudoku[i].style.color='#006600'; window.document.sudoku[i].value=dep[i];}
for(i=0; i<81; i++) {if (window.document.sudoku[i].value!="") {window.document.sudoku[i].style.color='#000066'; window.document.sudoku[i].readOnly=true;}}
for(i=81; i<90; i++)  {window.document.sudoku[i].value='';}
}

var encours=100;
 function restaure()
  {
 for(i=0; i<81; i++) {var temp=new String(); temp+="a"+i; document.getElementById(temp).style.background='white'; window.document.sudoku[i].style.background='white';  }
 if(encours!=100) {window.document.sudoku[encours].value=""; encours=100;}
 }

function donne_calque(a)
	{ var tampon=new String();
		 tampon+=a;
	if (document.getElementById) 
						{ document.getElementById(tampon).style.visibility="visible";}
						
	else {alert("D&eacute;sol&eacute;, ce scritpt n&eacute;cessite un navigateur plus r&eacute;cent"); return;}
	}


function enleve_calque(a)
	{ var tampon=new String();
		 tampon+=a;
	if (document.getElementById) 
						{document.getElementById(tampon).style.visibility="hidden";}
						
	else {alert("D&eacute;sol&eacute;, ce scritpt n&eacute;cessite un navigateur plus r&eacute;cent"); return;}
}
	
	
	
	
	
function imprime(a)
{
impr=open("","imprimer","scrollbars=yes,toolbar=yes,menubar=yes,status=yes,resizable=yes,top=50,left=50,width=400,height=450");

impr.document.writeln("<html><head><title>Moji Doku</title>");
impr.document.writeln("<script>");

impr.document.writeln("function Imprime() {");
impr.document.writeln("if (navigator.appVersion.indexOf(\"Mac\",0)>0) {");
impr.document.writeln("alert(\"Sur Macintosh, utilisez la combinaison de touches Pomme-P pour imprimer cette page\"); }");
impr.document.writeln("else {window.print();}}");
impr.document.writeln("<\/script>");
impr.document.writeln("<script language=\"\javascript\">");
impr.document.writeln("var donne=new String()");
impr.document.write("donne+=\'");
impr.document.write(donne);
impr.document.writeln("\';");

impr.document.writeln("</script></head>");


impr.document.writeln("</head><body onload=\"\javascript:Imprime();\">");
impr.document.write("<div align=\"center\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse; float:center;\"bordercolor=\"#111111\"><tr><td align=\"center\" ><font size=\"6\" face=\"Arial\"><font color=\"#000066\">Moji Doku<br><font size=\"5\">");
impr.document.write(a);
impr.document.writeln("<br><br></td></tr>");
impr.document.writeln("<table border=\"2\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-style:solid; border-width:1; border-collapse: collapse;color:#000066; font-family:Arial; font-size:14pt;\" bordercolor=\"#000066\">");
impr.document.writeln("<tr>");
impr.document.write("<td align=\"center\"  width=\"35\" height=\"35\" style=\"border-style: solid; border-width:1; padding-top: 0; padding-bottom: 0; background-color:#FFFFFF\">");
if (donne.charAt(0)!='.') {impr.document.writeln(donne.charAt(0));}
else {impr.document.writeln(" ");}
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\">");
if (donne.charAt(1)!='.') {impr.document.writeln(donne.charAt(1));}
else {impr.document.writeln(" ");}
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"style=\"border-right-style: solid; border-right-width:2\">");
if (donne.charAt(2)!='.') {impr.document.writeln(donne.charAt(2));}
else {impr.document.writeln(" ");}
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\">");
if (donne.charAt(3)!='.') {impr.document.writeln(donne.charAt(3));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\">");
if (donne.charAt(4)!='.') {impr.document.writeln(donne.charAt(4));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\" style=\"border-left-width:1; border-right-style: solid; border-right-width:2; border-top-width:1; border-bottom-width:1\">");
if (donne.charAt(5)!='.') {impr.document.writeln(donne.charAt(5));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a6\"> ");
if (donne.charAt(6)!='.') {impr.document.writeln(donne.charAt(6));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a7\"> ");
if (donne.charAt(7)!='.') {impr.document.writeln(donne.charAt(7));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a8\"> ");
if (donne.charAt(8)!='.') {impr.document.writeln(donne.charAt(8));}
else {impr.document.writeln(" ");} 
impr.document.writeln("</tr>");
impr.document.writeln("<tr>");
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a9\"> ");
if (donne.charAt(9)!='.') {impr.document.writeln(donne.charAt(9));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a10\">");
if (donne.charAt(10)!='.') {impr.document.writeln(donne.charAt(10));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a11\" style=\"border-right-style: solid; border-right-width:2\">");
if (donne.charAt(11)!='.') {impr.document.writeln(donne.charAt(11));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a12\">");
if (donne.charAt(12)!='.') {impr.document.writeln(donne.charAt(12));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a13\">");
if (donne.charAt(13)!='.') {impr.document.writeln(donne.charAt(13));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a14\" style=\"border-left-width:1; border-right-style: solid; border-right-width:2; border-top-width:1; border-bottom-width:1\">");
if (donne.charAt(14)!='.') {impr.document.writeln(donne.charAt(14));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a15\">");
if (donne.charAt(15)!='.') {impr.document.writeln(donne.charAt(15));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a16\">");
if (donne.charAt(16)!='.') {impr.document.writeln(donne.charAt(16));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a17\">");
if (donne.charAt(17)!='.') {impr.document.writeln(donne.charAt(17));}
else {impr.document.writeln(" ");} 
impr.document.writeln("</tr>");
impr.document.writeln("<tr>");
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a18\" style=\"border-bottom-style: solid; border-bottom-width:2\">");
if (donne.charAt(18)!='.') {impr.document.writeln(donne.charAt(18));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a19\" style=\"border-bottom-style: solid; border-bottom-width:2\">");
if (donne.charAt(19)!='.') {impr.document.writeln(donne.charAt(19));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a20\" style=\"border-right-style: solid; border-right-width:2; border-bottom-style:solid; border-bottom-width:2\">");
if (donne.charAt(20)!='.') {impr.document.writeln(donne.charAt(20));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a21\" style=\"border-bottom-style: solid; border-bottom-width:2\">");
if (donne.charAt(21)!='.') {impr.document.writeln(donne.charAt(21));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a22\" style=\"border-bottom-style: solid; border-bottom-width:2\">");
if (donne.charAt(22)!='.') {impr.document.writeln(donne.charAt(22));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a23\" style=\"border-left-width:1; border-right-style: solid; border-right-width:2; border-top-width:1; border-bottom-width:2; border-bottom-style:solid\">  ");
if (donne.charAt(23)!='.') {impr.document.writeln(donne.charAt(23));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a24\" style=\"border-bottom-style: solid; border-bottom-width:2\">");
if (donne.charAt(24)!='.') {impr.document.writeln(donne.charAt(24));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a25\" style=\"border-bottom-style: solid; border-bottom-width:2\">");
if (donne.charAt(25)!='.') {impr.document.writeln(donne.charAt(25));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a26\" style=\"border-bottom-style: solid; border-bottom-width:2\">");
if (donne.charAt(26)!='.') {impr.document.writeln(donne.charAt(26));}
else {impr.document.writeln(" ");} 
impr.document.writeln("</tr>");
impr.document.writeln("<tr>");
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a27\">");
if (donne.charAt(27)!='.') {impr.document.writeln(donne.charAt(27));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a28\">");
if (donne.charAt(28)!='.') {impr.document.writeln(donne.charAt(28));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a29\" style=\"border-right-style: solid; border-right-width:2\">");
if (donne.charAt(29)!='.') {impr.document.writeln(donne.charAt(29));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a30\">");
if (donne.charAt(30)!='.') {impr.document.writeln(donne.charAt(30));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a31\">");
if (donne.charAt(31)!='.') {impr.document.writeln(donne.charAt(31));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a32\" style=\"border-left-width:1; border-right-style: solid; border-right-width:2; border-top-width:1; border-bottom-width:1\">");
if (donne.charAt(32)!='.') {impr.document.writeln(donne.charAt(32));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a33\">");
if (donne.charAt(33)!='.') {impr.document.writeln(donne.charAt(33));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a34\">");
if (donne.charAt(34)!='.') {impr.document.writeln(donne.charAt(34));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a35\">");
if (donne.charAt(35)!='.') {impr.document.writeln(donne.charAt(35));}
else {impr.document.writeln(" ");} 
impr.document.writeln("</tr>");
impr.document.writeln("<tr>");
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a36\">");
if (donne.charAt(36)!='.') {impr.document.writeln(donne.charAt(36));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a37\">");
if (donne.charAt(37)!='.') {impr.document.writeln(donne.charAt(37));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a38\" style=\"border-right-style: solid; border-right-width:2\">");
if (donne.charAt(38)!='.') {impr.document.writeln(donne.charAt(38));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a39\">");
if (donne.charAt(39)!='.') {impr.document.writeln(donne.charAt(39));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a40\">");
if (donne.charAt(40)!='.') {impr.document.writeln(donne.charAt(40));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a41\" style=\"border-left-width:1; border-right-style: solid; border-right-width:2; border-top-width:1; border-bottom-width:1\">");
if (donne.charAt(41)!='.') {impr.document.writeln(donne.charAt(41));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a42\">");
if (donne.charAt(42)!='.') {impr.document.writeln(donne.charAt(42));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a43\">");
if (donne.charAt(43)!='.') {impr.document.writeln(donne.charAt(43));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a44\">");
if (donne.charAt(44)!='.') {impr.document.writeln(donne.charAt(44));}
else {impr.document.writeln(" ");} 
impr.document.writeln("</tr>");
impr.document.writeln("<tr>");
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a45\" style=\"border-bottom-style: solid; border-bottom-width:2\">");
if (donne.charAt(45)!='.') {impr.document.writeln(donne.charAt(45));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a46\" style=\"border-bottom-style: solid; border-bottom-width:2\">");
if (donne.charAt(46)!='.') {impr.document.writeln(donne.charAt(46));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a47\" style=\"border-right-style: solid; border-right-width:2; border-bottom-style:solid; border-bottom-width:2\">");
if (donne.charAt(47)!='.') {impr.document.writeln(donne.charAt(47));}
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a48\" style=\"border-bottom-style: solid; border-bottom-width:2\">");
if (donne.charAt(48)!='.') {impr.document.writeln(donne.charAt(48));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a49\" style=\"border-bottom-style: solid; border-bottom-width:2\">");
if (donne.charAt(49)!='.') {impr.document.writeln(donne.charAt(49));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a50\" style=\"border-left-width:1; border-right-style: solid; border-right-width:2; border-top-width:1; border-bottom-width:2; border-bottom-style:solid\">  ");
if (donne.charAt(50)!='.') {impr.document.writeln(donne.charAt(50));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a51\" style=\"border-bottom-style: solid; border-bottom-width:2\">");
if (donne.charAt(51)!='.') {impr.document.writeln(donne.charAt(51));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a52\" style=\"border-bottom-style: solid; border-bottom-width:2\">");
if (donne.charAt(52)!='.') {impr.document.writeln(donne.charAt(52));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a53\" style=\"border-bottom-style: solid; border-bottom-width:2\">");
if (donne.charAt(53)!='.') {impr.document.writeln(donne.charAt(53));}
else {impr.document.writeln(" ");} 
impr.document.writeln("</tr>");
impr.document.writeln("<tr>");
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a54\">");
if (donne.charAt(54)!='.') {impr.document.writeln(donne.charAt(54));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a55\">");
if (donne.charAt(55)!='.') {impr.document.writeln(donne.charAt(55));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a56\" style=\"border-right-style: solid; border-right-width:2\">");
if (donne.charAt(56)!='.') {impr.document.writeln(donne.charAt(56));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a57\">");
if (donne.charAt(57)!='.') {impr.document.writeln(donne.charAt(57));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a58\">");
if (donne.charAt(58)!='.') {impr.document.writeln(donne.charAt(58));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a59\" style=\"border-left-width:1; border-right-style: solid; border-right-width:2; border-top-width:1; border-bottom-width:1\">");
if (donne.charAt(59)!='.') {impr.document.writeln(donne.charAt(59));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a60\">");
if (donne.charAt(60)!='.') {impr.document.writeln(donne.charAt(60));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a61\">");
if (donne.charAt(61)!='.') {impr.document.writeln(donne.charAt(61));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a62\">");
if (donne.charAt(62)!='.') {impr.document.writeln(donne.charAt(62));}
else {impr.document.writeln(" ");} 
impr.document.writeln("</tr>");
impr.document.writeln("<tr>");
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a63\">");
if (donne.charAt(63)!='.') {impr.document.writeln(donne.charAt(63));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a64\">");
if (donne.charAt(64)!='.') {impr.document.writeln(donne.charAt(64));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a65\" style=\"border-right-style: solid; border-right-width:2\">");
if (donne.charAt(65)!='.') {impr.document.writeln(donne.charAt(65));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a66\">");
if (donne.charAt(66)!='.') {impr.document.writeln(donne.charAt(66));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a67\">");
if (donne.charAt(67)!='.') {impr.document.writeln(donne.charAt(67));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a68\" style=\"border-left-width:1; border-right-style: solid; border-right-width:2; border-top-width:1; border-bottom-width:1\">");
if (donne.charAt(68)!='.') {impr.document.writeln(donne.charAt(68));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a69\">");
if (donne.charAt(69)!='.') {impr.document.writeln(donne.charAt(69));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a70\">");
if (donne.charAt(70)!='.') {impr.document.writeln(donne.charAt(70));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a71\">");
if (donne.charAt(71)!='.') {impr.document.writeln(donne.charAt(71));}
else {impr.document.writeln(" ");} 
impr.document.writeln("</tr>");
impr.document.writeln("<tr>");
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a72\">");
if (donne.charAt(72)!='.') {impr.document.writeln(donne.charAt(72));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a73\">");
if (donne.charAt(73)!='.') {impr.document.writeln(donne.charAt(73));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a74\" style=\"border-right-style: solid; border-right-width:2\">");
if (donne.charAt(74)!='.') {impr.document.writeln(donne.charAt(74));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a75\">");
if (donne.charAt(75)!='.') {impr.document.writeln(donne.charAt(75));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a76\">");
if (donne.charAt(76)!='.') {impr.document.writeln(donne.charAt(76));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a77\" style=\"border-left-width:1; border-right-style: solid; border-right-width:2; border-top-width:1; border-bottom-width:1\">");
if (donne.charAt(77)!='.') {impr.document.writeln(donne.charAt(77));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a78\">");
if (donne.charAt(78)!='.') {impr.document.writeln(donne.charAt(78));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a79\">");
if (donne.charAt(79)!='.') {impr.document.writeln(donne.charAt(79));}
else {impr.document.writeln(" ");} 
impr.document.writeln("<td align=\"center\"  width=\"35\" height=\"35\"id=\"a80\">");
if (donne.charAt(80)!='.') {impr.document.writeln(donne.charAt(80));}
else {impr.document.writeln(" ");} 
impr.document.writeln("</tr>");
impr.document.writeln("</table></td></tr></table></div><br>");
impr.document.writeln("<p style=\"margin-left: 50px; font-family:Arial; font-size:12pt; color:#000066; \">Sur deux de ses rang&eacute;es (lignes ou colonnes), la grille contient les mots correspondant aux d&eacute;finitions :<br/>-&nbsp;&laquo; ");
impr.document.writeln(def1);
impr.document.writeln(" &raquo; et<br/>- &laquo; ");
impr.document.writeln(def2);
impr.document.writeln(" &raquo;.</body></html>");
impr.document.close();
}






















































































































































































