// Sources libres.
//
// Vous pouvez réutiliser ce code sous les termes de la licence GPL (Général Public Licence).
// En d'autres termes, vous pouvez l'utiliser personnellement et/ou commercialement 
// à la condition de transmettre aussi les droits d'accès et de modification aux sources,
// et de ne rien enlever ou modifier à l'entête (le présent texte).

function price(myform,entrynum,pricelist) {
opindex=myform.elements[entrynum].selectedIndex;
property=myform.elements[entrynum].options[opindex].text;
myform.elements[entrynum].name=pricelist[property];
}


function ValPrix(bouton){
type=bouton.name
prix=bouton.value

if (type=="VVA"){
	switch(prix) {
		case "100" :
			quant=vva.duree.value
			privv=68.50
			valoprix=privv*quant
			break;
		case "99" :
			privv=68.50
			valoprix=privv*quant
			break;
		default :
			valoprix=0
			break;
	}
}else if (type=="BGA"){
	switch(prix) {
		case "1" :
			valoprix=38
			break;
		case "12" :
			valoprix=183
			break;
		default :
			valoprix=0
			break;
	}
}else if (type=="SDA"){
	switch(prix) {
		case "100" :
			quant=sda.duree.value
			prisd=54.00
			valoprix=prisd*quant
			break;
		case "99" :
			prisd=54.00
			valoprix=prisd*quant
			break;
		default :
			valoprix=0
			break;
	}
}else if (type=="TNE"){
	switch(prix) {
		case "100" :
			quant=tne.duree.value
			pritn=95.00
			valoprix=pritn*quant
			break;
		case "99" :
			quant=tne.duree.value
			pritn=95.00
			valoprix=pritn*quant
			break;
		default :
			valoprix=0
			break;
	}
//ce code v95 est celui de vv2007	
}else if (type=="V95"){
		if (prix == "1"){
			quant=v95.duree.value
			privv=59.50
			valoprix=privv*quant
		}else{
			valoprix=0
		}
//ce code v96 est celui de VV2009	
}else if (type=="V96"){
		if (prix == "1"){
			quant=v96.duree.value
			privv=59.50
			valoprix=privv*quant
		}else{
			valoprix=0
		}
//code de VV97 épuisé		
}else if (type=="V97"){
		if (prix == "1"){
			quant=v97.duree.value
			privv=50.00
			valoprix=privv*quant
		}else{
			valoprix=0
		}
//ce code v98 est celui de vv2008			
}else if (type=="V98"){
		if (prix == "1"){
			quant=v98.duree.value
			privv=59.50
			valoprix=privv*quant
		}else{
			valoprix=0
		}
}else if (type=="V99"){
		if (prix == "1"){
			quant=v99.duree.value
			privv=50.00
			valoprix=privv*quant
		}else{
			valoprix=0
		}	
}else if (type=="V00"){
		if (prix == "1"){
			quant=v00.duree.value
			privv=50.00
			valoprix=privv*quant
		}else{
			valoprix=0
		}
}else if (type=="V01"){
		if (prix == "1"){
			quant=v01.duree.value
			privv=50.00
			valoprix=privv*quant
		}else{
			valoprix=0
		}	
}else if (type=="V02"){
		if (prix == "1"){
			quant=v02.duree.value
			privv=50.00
			valoprix=privv*quant
		}else{
			valoprix=0
		}
}else if (type=="V03"){
		if (prix == "1"){
			quant=v03.duree.value
			privv=50.00
			valoprix=privv*quant
		}else{
			valoprix=0
		}	
}else if (type=="V04"){
		if (prix == "1"){
			quant=v04.duree.value
			privv=50.00
			valoprix=privv*quant
		}else{
			valoprix=0
		}
}else if (type=="V05"){
		if (prix == "1"){
			quant=v05.duree.value
			privv=50.00
			valoprix=privv*quant
		}else{
			valoprix=0
		}	
}else if (type=="V06"){
		if (prix == "1"){
			quant=v06.duree.value
			privv=59.50
			valoprix=privv*quant
		}else{
			valoprix=0
		}			
}else if (type=="VVI"){
	switch(prix) {
		case "24" :
			valoprix=5.50
			break;
		case "12" :
			valoprix=70.00
			break;
		default :
			valoprix=0
			break;
	}
}
return valoprix
}