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;

var d = new Date()
secs=d.getTime()
secss=("" + secs)
stamp=secss.substr(0,10)

price= "0"
if (dz < 7 && mz < 3)
{price = dz*72}
if (dz > 6 && dz < 14 && mz < 3)
{price = dz*64}
if (dz > 13 && dz < 21 && mz < 3)
{price = dz*60}
if (dz > 20 && dz < 28 && mz < 3)
{price = dz*60}
if (dz > 27 && mz < 3)
{price = dz*58}

if (dz < 7 && mz > 2 && mz < 5)
{price = dz*102}
if (dz > 6 && dz < 14 && mz > 2 && mz < 5)
{price = dz*87}
if (dz > 13 && dz < 21 && mz > 2 && mz < 5)
{price = dz*75}
if (dz > 20 && dz < 28 && mz > 2 && mz < 5)
{price = dz*71}
if (dz > 27 && mz > 2 && mz < 5)
{price = dz*61}

if (dz < 7 && mz == 5)
{price = dz*120}
if (dz > 6 && dz < 14 && mz == 5)
{price = dz*103}
if (dz > 13 && dz < 21 && mz == 5)
{price = dz*82}
if (dz > 20 && dz < 28 && mz == 5)
{price = dz*76}
if (dz > 27 && mz == 5)
{price = dz*63}

fullprices = price;

parking = 0;

if (document.form.parking.checked)
{parking = dz*10;}






fullprices = (fullprices + parking) 

fianth = fullprices/4;
if (fianth < 51 )
{fianth = 50}

dollars= fullprices*dollarconv; 
pounds= fullprices*poundeuro; 

fianza=fianth;
pricepn = fullprices/dz;
pricepp = fullprices/mz;
priceperpersonpernight = pricepp/dz; 

document.form.id.value=+stamp;
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.ppp.value=Math.round(+pricepp*100)/100;
document.form.parkingtxt.value=Math.round(+parking);
document.form.pppn.value=Math.round(+priceperpersonpernight);
}
          