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

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

function actucaddie() {
affiche('skilocation/caddie.php',' ','caddie');
}

function actucalendrier() {
affiche('skilocation/utile.php','dmd=5&selct=','calendrie');
}

function caddie(formulaire)   {
	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;

}


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);
	jQuery("#chaussure"+element).animate({
	     opacity: "1.0",
	    }, 400 );
	} else {
	jQuery("#chaussure"+element).animate({
	     opacity: "0.3",
	    }, 400 );
	}
}
if(element3 != '0') {
if(document.forms[formulaire].cbxa.checked==true)
	{
		t1 = (1*t1) + (1*prixca);
	jQuery("#casque"+element).animate({
	     opacity: "1.0",
	    }, 400 );
	} else {
	jQuery("#casque"+element).animate({
	     opacity: "0.3",
	    }, 400 );
	}
}
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 = "<div id=\"remiseb\"> -"+promo+"%</div></b><div style=\"float:left;width:70px;margin-top:5px;\"><i><DEL>"+t1+"</DEL></i>&euro;</div><div float:right;width:1200px;text-align:right;><font style=\"font-size:15px; color:#e20025; font-weight: bold;\">"+t2+"&euro;</font></div>";

} 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) + ' ');
}

