function setVal() {
dz=document.form.duration.options[document.form.duration.selectedIndex].value;
mz=document.form.numberofpeople.options[document.form.numberofpeople.selectedIndex].value;
lang=document.form.lang.value;
arrivalday=document.form.arrivalday.options[document.form.arrivalday.selectedIndex].value;
arrivalmonth=document.form.arrivalmonth.options[document.form.arrivalmonth.selectedIndex].value;
arrivalyear=document.form.arrivalyear.options[document.form.arrivalyear.selectedIndex].value;

dollarconv=document.form.dollareuro.value;
poundeuro=document.form.poundeuro.value;

sstemp = new Date(arrivalyear,arrivalmonth-1,arrivalday);
ss = sstemp.getTime();

nodis=0; 
//minimum(dz,ss)




price= "0";
supp= "0";

price = (dz * 150)

if (dz > 5 )
{price = (dz * 135) }

if (dz > 10 )
{price = (dz * 125) }

if (dz > 15 )
{price = (dz * 115) }

if (mz == 3 )
{supp = (dz * 30) }

if (mz == 4 )
{supp = (dz * 60) }



fullprices = price+(supp*1);

discountsup(dz,fullprices,ss)
fullprices = fullprices + holsup_zz;



fianth = Math.round(fullprices * 0.25);
if (fianth < 51 )
{fianth = 50}

dollars= fullprices*dollarconv; 
pounds= fullprices*poundeuro; 

fianza=fianth;
pricepn = fullprices/dz;
pricepp = fullprices/mz;
//pesetass = fullprices*166.386;


 document.form.fullprice.value=Math.round(+fullprices*100)/100;
 document.form.pounds.value=Math.round(+pounds*100)/100;
 document.form.dollars.value=Math.round(+dollars*100)/100;
 document.form.deposit.value=Math.round(+fianza*100)/100;
 document.form.ppn.value=Math.round(+pricepn*100)/100;
 //document.form.pesetas.value=Math.round(+pesetass);

document.form.holsupdays.value=holsupdays_zz;
document.form.holsup.value=holsup_zz;

}
              
