




var appui2 = "0";
var dernier2 = "";

var browser = navigator.appName;
    
var nbmontr = '0';

function montreg(c) {


	document.getElementById('lnga0').style.visibility = "hidden";
	document.getElementById('lnga0').style.display = "none";

	document.getElementById('lnga1').style.visibility = "hidden";
	document.getElementById('lnga1').style.display = "none";

	document.getElementById('lnga2').style.visibility = "hidden";
	document.getElementById('lnga2').style.display = "none";

	document.getElementById('lnga3').style.visibility = "hidden";
	document.getElementById('lnga3').style.display = "none";

	document.getElementById('lnga4').style.visibility = "hidden";
	document.getElementById('lnga4').style.display = "none";

	document.getElementById('lnga'+c).style.visibility = "visible";
	document.getElementById('lnga'+c).style.display = "block";

}


function caddie(formulaire)   {
var coo=document.cookie;
if (coo != '') {

var matos = document.forms[formulaire].matos.value;
var chauss = "0";
var casqu = "0";
var cadie = "ajouter";
if(document.forms[formulaire].cbxh) {
if(document.forms[formulaire].cbxh.checked==true)
	{
chauss = 1;
	}
}
if(document.forms[formulaire].cbxa) {
if(document.forms[formulaire].cbxa.checked==true)
	{
casqu = 1;
	}
}
affiche('skilocation/caddie.php','matos='+matos+'&cbxh='+chauss+'&cbxa='+casqu+'&cadie='+cadie+'&selct=0','caddie');


return false;

} else {
alert('Veuillez commencer par choisir une date de location!');
return false;
}

}


function testdate(date) {
if(date != '0') { parent.document.submit() } else { alert("Vous devez indiquer une date de location!");
}
}


function calc(prix,prixch,prixca,promo,formulaire,element,element2,element3)   {
var t1 = prix;
var pchaussure = 0;
if(element2 != '0') {
if(document.forms[formulaire].cbxh.checked==true)
	{
	pchaussure = 1;	
	t1 = (1*t1) + (1*prixch);
	}
}
if(element3 != '0') {
if(document.forms[formulaire].cbxa.checked==true)
	{
		t1 = (1*t1) + (1*prixca);
	}
}
if (promo != 0)
{
if (pchaussure == 0) { promo = (1*promo); }
var t2 = (t1*1) - ((t1*promo)/100)
}
t2 = Math.round(t2*10)/10;
t2 =t2.toFixed(2); 
t1 = Math.round(t1*10)/10;
t1 =t1.toFixed(2); 
t2 = t2.replace(".",",");
t1 = t1.replace(".",",");
if (promo != 0)
{
var sortie = '<b><span class="remise"> -'+promo+'% &nbsp;</span></b><br><br><i><DEL>' +t1+ '</DEL></i>&euro; <br><font style="font-size:13px; color:#1E3296; font-weight: bold;">'+t2+ '&euro;</font>';
} else {
var sortie = '<font style="font-size:13px; color:#1E3296; font-weight: bold;">'+t1+ '&euro;</font>';
}


document.getElementById(element).innerHTML = sortie;
 }

function popup(page)
{
window.open(page,'','resizable=no,location=yes,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no,width=525,height=350,left=' + ((screen.width - 460)/2) + ',top=' + ((screen.height - 460)/2) + ' ');
}
