function verif(w)
{face = document.form.face.value;
shadow = document.form.shadow.value;
highlight = document.form.highlight.value;
dlight = document.form.dlight.value;
darkshadow = document.form.darkshadow.value;
track = document.form.track.value;
arrow = document.form.arrow.value;
if (face == "#")
{alert('Vous n\'avez pas entré la couleur du dessus des boutons de la barre de défilement !');}
else {if (track == "#")
{alert('Vous n\'avez pas entré la couleur du fond de la barre !');}
else {if (arrow == "#")
{alert('Vous n\'avez pas entré la couleur des flèches !');}
else {if (w == "1")
{voir = "";
wr(1);}
else {voir = '<STYLE TYPE="text/css">\n';
voir += "BODY \{";
wr(2);}}}}}

function wr(tr)
{voir += "scrollbar-face-color: "+face+"\;\n";
voir += "scrollbar-shadow-color: "+shadow+"\;\n";
voir += "scrollbar-highlight-color: "+highlight+"\;\n";
voir += "scrollbar-3dlight-color: "+dlight+"\;\n";
voir += "scrollbar-darkshadow-color: "+darkshadow+"\;\n";
voir += "scrollbar-track-color: "+track+"\;\n";
voir += "scrollbar-arrow-color: "+arrow+"\;";
if (tr == "1")
{voirn();}
else {voir += "\}\n";
voir += "</STYLE>";
document.f2.resultat.value = voir;}}

function voirn()
{document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\n');
document.write('<html>\n');
document.write('<head>\n');
document.write('<title>Pr&eacute;visualisation de l\'ascenceur</title>\n');
document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n');
document.write('</head>\n');
document.write('<body>\n');
document.write('<p align="center">L\'ascenceur sera color&eacute; ainsi si vous gardez ces codes couleurs :<br>\n');
document.write("<textarea name='testr' rows='15' cols='1' style='"+voir+"'>..............................................</textarea>\n");
document.write('<br><a href="javascript:history.go(-1)">\n');
document.write('<img src="/images/back.png" width="19" height="16" border="0" alt="Revenir à la page précédente">\n');
document.write('Revenir &agrave\; la page pr&eacute\;c&eacute\;dente pour modifier ou editer le code correspondant\n');
document.write('<img src="/images/back.png" width="19" height="16" border="0" alt="Revenir à la page précédente"></a></p>\n');
document.write('</body>\n');
document.write('</html>\n');}
