function setVal() {

howmanyap=document.form.howmanyap.options[document.form.howmanyap.selectedIndex].value;
dz=document.form.duration.options[document.form.duration.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;

//window.alert(poundeuro)


sstemp = new Date(arrivalyear,arrivalmonth-1,arrivalday);
ss = sstemp.getTime();


price= "0";



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();


nodis=0; 
minimum(dz,ss)

holidaydate(dz,ss)

combined = holdhigh + holdlow;
holdmid = dz - combined; 

price_high=0;
price_mid=0;
price_low=0;


//HIGH SEASON

price_high = (dz*68) * howmanyap;
ppn_high =  price_high/dz; 
price_high = holdhigh * ppn_high

//END  HIGH SEASON

//MID SEASON

if (dz > 6) 
{
price_mid = (dz*46.43) * howmanyap;
}

if (dz < 7) 
{
price_mid = (dz*58) * howmanyap;
}



ppn_mid =  price_mid/dz; 
price_mid = holdmid * ppn_mid


//END MID SEASON

//LOW SEASON

if (dz > 6) 
{
price_low = (dz*46.43) * howmanyap;
}
if (dz < 7)  
{
price_low = (dz*52) * howmanyap;
}

ppn_low =  price_low/dz; 
price_low = holdlow * ppn_low


//END  LOW SEASON

fullprices = price_high + price_mid + price_low;

numberofpeople = (howmanyap * 2); 

pricepp = fullprices/numberofpeople;

discountsup(dz,fullprices,ss)
fullprices = fullprices + holsup_zz;

fianth = fullprices/4;
if (fianth < 51 )
{fianth = 50}


dollars= fullprices*dollarconv; 
pounds= fullprices*poundeuro;  
fianza=fianth;
pricepn = fullprices/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.pesetas.value=Math.round(+pesetass);
 document.form.numberofpeople.value=numberofpeople;
document.form.holsupdays.value=holsupdays_zz;
document.form.holsup.value=Math.round(+holsup_zz);
document.form.holdhigh.value=holdhigh;
document.form.holdmid.value=holdmid;
document.form.holdlow.value=holdlow;

}
     
