
function cover(name) {
document.getElementById(name).style.visibility="hidden";
}
function see(name) {
document.getElementById(name).style.visibility="visible";
}

if (!document.getElementById){
document.write("<FONT face=\"verdana, helvetica\" size=1 color=black >Votre navigateur ne supporte pas le langage DHTML officiel.")
document.write("<BR>Merci d'utiliser Internet Explorer 5 ou plus ou Netscape 6.<BR><\/FONT>");
}

var chemin = "images/";
var liste_images = new Array('bouton_amenager2.gif','bouton_concevoir2.gif','bouton_connaitre2.gif','bouton_contacter2.gif','bouton_creer2.gif','bouton_decorer2.gif','bouton_fabriquer2.gif','bouton_multiplier2.gif','bouton_poser2.gif','bouton_professionnels2.gif','bouton_projet2.gif','bouton_realisations2.gif','cloisons_amenager2.gif','cloisons_creer2.gif','cloisons_decorer2.gif','cloisons_multiplier2.gif','contact_email2.gif','entreprise2.gif','espace_client2.gif','gerer_espace2.gif','realiser2.gif','return2.gif');
document.image_chargee = new Array();
function preloadimg() 
{
for ( i = 0; i < liste_images.length; i++ ) 
	{
	document.image_chargee[i] = new Image;
//	document.image_chargee[i].src = chemin + liste_images[i] + ext;
	document.image_chargee[i].src = chemin + liste_images[i];
	}
}

function resizePopUp(mpict, mtit)
{
	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();'>" );
	w.document.write( "<a href='javascript:window.close();'><img src='"+mpict+"' border=0 alt='cliquer ici pour fermer'></a>" );
	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,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
ww.focus();
}
function ferme()
{
if (ww) ww.close();
ww = null;
}

function supprime(isup,page,parpage,typ_prod,sfamille,tri,filtre) 
{
if (confirm('Souhaitez vous supprimer ce produit?')) {
document.location="suppr_prod.asp?id="+ isup +"&pg="+ page +"&parpage="+ parpage +"&typ_prod="+ typ_prod +"&sfamille="+ sfamille +"&tri=" +tri +"&filtre=" +filtre
} 
}

function actualise(iact,page,parpage,typ_prod,sfamille,tri,filtre,refprod)
{
document.location="liste_prod.asp?id="+ iact +"&pg="+ page +"&parpage="+ parpage +"&typ_prod="+ typ_prod +"&sfamille="+ sfamille +"&tri=" +tri +"&filtre=" +filtre+ "&refprod=" +refprod+ "#but"
} 

pv=0
pu=0
qte=0

function Calculprix(formulaire) {
pu=parseFloat(formulaire.pu.value);	
qte=parseInt(formulaire.qte.value);
pcalcul=pu*100
formulaire.pv.value=pcalcul/100;
formulaire.resultat.value=parseFloat(pcalcul*qte/100);
resultat=formulaire.resultat.value;
}


function addcaddy(choix,fam,refsfam,sfam,num,page,delai,coeff)
{
if (qte<1) 
{
document.getElementById("msgqte").style.visibility="visible";
}
else
{
document.getElementById("msgqte").style.visibility="hidden";
document.location="addcaddy.asp?reffam="+choix+"&fam="+fam+"&refsfam="+refsfam+"&sfam="+sfam+"&num="+num+"&page="+page+"&qte="+qte+"&delai="+delai+"&coeff="+coeff;
}
}

function transcompte(choix,fam,refsfam,sfam,num,page)
{
document.location="compte.asp?reffam="+choix+"&fam="+fam+"&refsfam="+refsfam+"&sfam="+sfam+"&num="+num+"&page="+page
}
