function setVal() {
dz=document.form.duration.options[document.form.duration.selectedIndex].value;
mz=document.form.numberofpeople.options[document.form.numberofpeople.selectedIndex].value;

dollarconv=document.form.dollareuro.value;
poundeuro=document.form.poundeuro.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;


sstemp = new Date(arrivalyear,arrivalmonth-1,arrivalday);
ss = sstemp.getTime();

minimum(dz,ss)

price= "0";
if (dz ==3)
{price = (mz >3 ) ? 255 : 245 }
if (dz ==4)
{price = (mz >3 ) ? 295 : 275 }
if (dz ==5)
{price = (mz >3 ) ? 340 : 305 }
if (dz ==6)
{price = (mz >3 ) ? 380 : 335 }
if (dz ==7)
{price = (mz >3 ) ? 435 : 356 }
if (dz >7 && mz < 4)
{price = dz*53}
if (dz >7 && mz > 3)
{price = dz*61}

supp = (price * 0.10) 
price = price + supp

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;
//pesetass = fullprices*166.386;

document.form.fullprice.value=Math.round(fullprices);
 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.ppp.value=Math.round(+pricepp*100)/100;
document.form.pppn.value=Math.round(+priceppn*100)/100;
document.form.holsupdays.value=holsupdays_zz;
document.form.holsup.value=holsup_zz;

//document.form.pesetas.value=Math.round(+pesetass);

}

