function affiche() {
if (document.forms["email"].elements["essai"].checked)
{
document.forms["email"].elements["dest_essai"].value="aro@cailloubaton.com";
document.forms["email"].elements["typ_envoi"].value="test";
}
else
{
document.forms["email"].elements["dest_essai"].value="";
document.forms["email"].elements["typ_envoi"].value="ENVOI REEL";
}
}

function apercu() {
mess=document.forms["email"].elements["text_mail"].value
document.write ('<head><link href="emstyle.css" rel="stylesheet" type="text/css"></head>')
document.write ('<a href="javascript:history.go(-1)">retour message</a><hr noshade size="1">')
document.write (mess)
}

function suivi() {
{
document.forms["suivi"].elements["aff_n"].value=document.forms["suivi"].elements["catch_n"].value
document.forms["suivi"].elements["aff_str"].value=document.forms["suivi"].elements["catch_str"].value
}
}

function cover(name) {
document.getElementById(name).style.visibility="hidden";
}

function see(name) {
document.getElementById(name).style.visibility="visible";
}

/*
function clicie() {
if ((event.button==2)||(event.button==3)) {
alert("The content of this site is wholeness protected by copyright, trademark rights and database rights.");
alert("No reproduction possible without the consent of the relevant owner.");
}
}
function clicns(e){
if(e.which==3){
alert("The content of this site is wholeness protected by copyright, trademark rights and database rights.");
alert("No reproduction possible without the consent of the relevant owner.");
return false;
}
}

if (document.all) {	document.onmousedown=clicie;}
if (document.layers) {document.captureEvents(Event.MOUSEDOWN); document.onmousedown = clicns;}
if (window.sidebar) {document.captureEvents(Event.MOUSEDOWN); document.onmousedown = clicns;}
*/

function resizepop(mpict, mtit, minfo)
{
w = window.open('','chargement','width=10,height=10,top=0,left=0');
w.document.write( "<html><head><title>"+mtit+"</title>\n" );
w.document.write( "<script language='JavaScript'>\n");
w.document.write( "IE5=NN4=NN6=false;\n");
w.document.write( "if(document.all)IE5=true;\n");
w.document.write( "else if(document.getElementById)NN6=true;\n");
w.document.write( "else if(document.layers)NN4=true;\n");
w.document.write( "function autoSize() {\n");
w.document.write( "if(IE5) self.resizeTo(document.images[0].width+10,document.images[0].height+31);\n");
w.document.write( "else if(NN6) self.sizeToContent();\n");
w.document.write( "else window.resizeTo(document.images[0].width,document.images[0].height+20);\n");
w.document.write( "self.focus();\n");
w.document.write( "}\n</scri");
w.document.write( "pt>\n");

w.document.write( "</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad='javascript:autoSize();'> \n");
w.document.write( "<a href='javascript:window.close();'><img src='"+mpict+"' border=0 alt='click here to close'></a> \n");
w.document.write( "<div style='position: absolute; width: 200px; left: 2px; top: 2px; height: 20px; z-index: 3; visibility: visible;'>" );
w.document.write( "<table><tr><td><font color='white' face='verdana' size='1'>"+minfo+"</font></td></tr></table></div>" );
w.document.write( "<div style='position: absolute; width: 200px; left: 3px; top: 3px; height: 20px; z-index: 2; visibility: visible;'>" );
w.document.write( "<table><tr><td><font face='verdana' size='1'>"+minfo+"</font></td></tr></table></div>" );
w.document.write( "</body></html>" );
w.document.close();
}
function changeCouleur(cellule,couleurFond) {
cellule.style.backgroundColor = couleurFond;
}

function coverp(name,info) {
document.getElementById(name).style.visibility="hidden";
}

function seep(name,info) {
document.getElementById(name).style.visibility="visible";
document.all.infoprod.innerHTML= info
}

var ww = null;
function popps(page,fenetre,largeur,hauteur,ratt,ratl,options)
{
var top = (screen.height-hauteur-17)/ratt;
var left = (screen.width-largeur-17)/ratl;
ww = window.open(page,fenetre,"top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
ww.focus();
}
function ferme()
{
if (ww) ww.close();
ww = null;
}

function dislay(name,info) {
document.getElementById(name).style.display=info;
}
