
function setVal() {
  dz=document.form.duration.options[document.form.duration.selectedIndex].value;
  mz=document.form.numberofpeople.options[document.form.numberofpeople.selectedIndex].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;
lang=document.form.lang.value;


dollarconv=document.form.dollareuro.value;
poundeuro=document.form.poundeuro.value;

var d = new Date()
secs=d.getTime()
secss=("" + secs)
stamp=secss.substr(0,10)

sstemp = new Date(arrivalyear,arrivalmonth-1,arrivalday);
ss = sstemp.getTime();

minimum(dz,ss)

price= "0";
if (dz == 3)
{price = 245}
if (dz == 4)
{price = 270} 
if (dz == 5)
{price = 300} 
if (dz == 6)
{price = 340} 
if (dz == 7)
{price = 360}
if (dz > 7)
{price = dz*48}

fullprices = price;

discountsup(dz,fullprices,ss)
fullprices = fullprices + holsup_zz;

dollars= fullprices*dollarconv; 
pounds= fullprices*poundeuro; 
fianza=fullprices/4;
pricepn = fullprices/dz;
pricepp = fullprices/mz;
priceppn = fullprices/mz/dz;


 document.form.id.value=+stamp;
 document.form.fullprice.value=Math.round(+fullprices);
 document.form.pounds.value=Math.round(+pounds);
 document.form.dollars.value=Math.round(+dollars);
 document.form.deposit.value=Math.round(+fianza);
 document.form.ppn.value=Math.round(+pricepn);
 document.form.ppp.value=Math.round(+pricepp);
 document.form.pppn.value=Math.round(+priceppn);
document.form.holsupdays.value=holsupdays_zz;
document.form.holsup.value=holsup_zz;

return valid;
}
            
              