

<!-- Calculation script.  -->
<!-- Add VAT if applicable and round to 2 decimal places -->

<!-- Begin
function  doMath() {
var wdth = eval(document.myform.width.value)
var wdthf = eval(document.myform.widthf.value)
var lngth = eval(document.myform.length.value)
var lngthf = eval(document.myform.lengthf.value) 
var space = (wdth + wdthf) * (lngth + lngthf)
var pr = .1893
var pri= 0
{
  if( space == 0 )	// ==0 
			space = 1;		// still costs the min
}
{
  if( space >= 1 )	// less than 
			pri =7.50 ;		// still costs the min
}
{
  if( space >= 1.25 )	// less than 
			pri =7.50 ;		// still costs the min
}
{
  if( space >= 1.50 )	// less than 
			pri =7.50 ;		// still costs the min
}
{
  if( space >= 1.75 )	// less than 
			pri =7.50 ;		// still costs the min
}
{
  if( space > 2 )	// less than 
			pri =3.0 ;		// still costs the min
}
{
  if( space > 3 )	// less than 
			pri =3.75 ;		// still costs the min
}
{
  if( space > 4 )	// less than 
			pri =3.10 ;		// still costs the min
}
{
  if( space > 5 )	// less than 
			pri =2.50 ;		// still costs the min
}
{
  if( space >= 5.25 )	// less than 
			pri =2.41 ;		// still costs the min
}
{
  if( space >= 5.50 )	// less than 
			pri =2.32 ;		// still costs the min
}
{
  if( space >= 5.75 )	// less than 
			pri =2.23 ;		// still costs the min
}
{
  if( space > 6 )	// less than 
			pri =2.14 ;		// still costs the min
}
{
  if( space >= 6.25 )	// less than 
			pri =2.07 ;		// still costs the min
}
{
  if( space >= 6.50 )	// less than 
			pri =2.01 ;		// still costs the min
}
{
  if( space >= 6.75 )	// less than 
			pri =1.94 ;		// still costs the min
}
{
  if( space > 7 )	// less than 
			pri =1.88 ;		// still costs the min
}
{
  if( space >= 7.25 )	// less than 
			pri =1.827 ;		// still costs the min
}
{
  if( space >= 7.50 )	// less than 
			pri =1.775 ;		// still costs the min
}
{
  if( space >= 7.75 )	// less than 
			pri =1.722 ;		// still costs the min
}
{
  if( space > 8 )	// less than 
			pri =1.67 ;		// still costs the min
}
{
  if( space > 9 )	// less than 
			pri =1.5 ;		// still costs the min
}
{
  if( space > 10 )	// less than 
			pri =1.36 ;		// still costs the min
}
{
  if( space > 11 )	// less than 
			pri =1.25 ;		// still costs the min
}
{
  if( space > 12 )	// less than 
			pri =1.15 ;		// still costs the min
}
{
  if( space > 13 )	// less than 
			pri =1.14 ;		// still costs the min
}
{
  if( space > 14 )	// less than 
			pri =1.06 ;		// still costs the min
}
{
  if( space > 15 )	// less than 
			pri =1.03 ;		// still costs the min
}
{
  if( space > 16 )	// less than 
			pri =.97 ;		// still costs the min
}
{
  if( space > 17 )	// less than 
			pri =.94 ;		// still costs the min
}
{
  if( space > 18 )	// less than 
			pri =.89 ;		// still costs the min
}
{
  if( space > 19 )	// less than 
			pri =.87 ;		// still costs the min
}
{
  if( space > 20 )	// less than 
			pri =.83;		// still costs the min
}
{
  if( space > 21 )	// less than 
			pri =.8068 ;		// still costs the min
}
{
  if( space > 22 )	// less than 
			pri =.7717 ;		// still costs the min
}
{
  if( space > 23 )	// less than 
			pri =.75 ;		// still costs the min
}
{
  if( space > 24 )	// less than 
			pri =.72 ;		// still costs the min
}
{
  if( space > 25 )	// less than 
			pri =.7037 ;		// still costs the min
}
{
  if( space > 26 )	// less than 
			pri =.6851 ;		// still costs the min
}
{
  if( space > 27 )	// less than 
			pri =.6696 ;		// still costs the min
}
{
  if( space > 28 )	// less than 
			pri =.6465 ;		// still costs the min
}
{
  if( space > 29 )	// less than 
			pri =.6336 ;		// still costs the min
}
{
  if( space > 30 )	// less than 
			pri =.6129 ;		// still costs the min
}
{
  if( space > 31 )	// less than 
			pri =.6015 ;		// still costs the min
}
{
  if( space > 32 )	// less than 
			pri =.5909 ;		// still costs the min
}
{
  if( space > 33 )	// less than 
			pri =.5735 ;		// still costs the min
}
{
  if( space > 34 )	// less than 
			pri =.5571 ;		// still costs the min
}
{
  if( space > 35 )	// less than 
			pri =.5555 ;		// still costs the min
}
{
  if( space > 36 )	// less than 
			pri =.5472 ;		// still costs the min
}
{
  if( space > 37 )	// less than 
			pri =.5394 ;		// still costs the min
}
{
  if( space > 38 )	// less than 
			pri =.5338 ;		// still costs the min
}
{
  if( space > 39 )	// less than 
			pri =.5687 ;		// still costs the min
}
{
  if( space > 40 )	// less than 
			pri =.5609 ;		// still costs the min
}
{
  if( space > 45 )	// less than 
			pri =.50 ;		// still costs the min
}
{
  if( space > 50 )	// less than 
			pri =.44 ;		// still costs the min
}
{
  if( space > 55 )	// less than 
			pri =.41 ;		// still costs the min
}
{
  if( space > 60 )	// less than 
			pri =.38 ;		// still costs the min
}
{
  if( space > 64 )	// less than 
			pri =.35 ;		// still costs the min
}
{
  if( space > 70 )	// less than 
			pri =.3100 ;		// still costs the min
}
{
  if( space > 75 )	// less than 
			pri =.2845 ;		// still costs the min
}
{
  if( space > 79 )	// less than 
			pri =.2518 ;		// still costs the min
}
{
  if( space > 89 )	// less than 
			pri =.2476 ;		// still costs the min
}
{
  if( space > 99 )	// less than 
			pri =.2433 ;		// still costs the min
}
{
  if( space > 107 )	// less than 
			pri = .2162;		// still costs the min
}
{
  if( space > 119 )	// less than 
			pri =.2064 ;		// still costs the min
}
{
  if( space > 129 )	// less than 
			pri =.1984 ;		// still costs the min
}
{
  if( space > 143 )	// less than 
			pri = .1871;		// still costs the min
}
{
  if( space > 153 )	// less than 
			pri =.1762 ;		// still costs the min
}
{
  if( space > 163 )	// less than 
			pri =.1743 ;		// still costs the min
}
{
  if( space > 173 )	// less than 
			pri =.1719 ;		// still costs the min
}
{
  if( space > 183 )	// less than 
			pri =.1695 ;		// still costs the min
}
{
  if( space > 191 )	// less than 
			pri = .1677;		// still costs the min
}
{
  if( space > 199 )	// less than 
			pri =.1676 ;		// still costs the min
}
{
  if( space > 229 )	// less than 
			pri =.1561 ;		// still costs the min
}
{
  if( space > 239 )	// less than 
			pri =.1555 ;		// still costs the min
}
{
  if( space > 251 )	// less than 
			pri = .1489;		// still costs the min
}
{
  if( space > 255 )	// less than 
			pri =.1495 ;		// still costs the min
}
{
  if( space > 265 )	// less than 
			pri =.1468 ;		// still costs the min
}
{
  if( space > 275 )	// less than 
			pri =.1455 ;		// still costs the min
}
{
  if( space > 287 )	// less than 
			pri = .1454;		// still costs the min
}
{
  if( space > 297 )	// less than 
			pri =.1365 ;		// still costs the min
}
{
  if( space > 309 )	// less than 
			pri =.1363 ;		// still costs the min
}
{
  if( space > 319 )	// less than 
			pri =.1361 ;		// still costs the min
}
{
  if( space > 323 )	// less than 
			pri = .1359;		// still costs the min
}
{
  if( space > 399 )	// less than 
			pri = .1316;		// still costs the min
}
{
  if( space > 431 )	// less than 
			pri =.1200 ;		// still costs the min
}
{
  if( space > 499 )	// less than 
			pri = .1150;		// still costs the min
}
{
  if( space > 599 )	// less than 
			pri = .1100;		// still costs the min
}
{
  if( space > 699 )	// less than 
			pri = .1100;		// still costs the min
}
{
  if( space > 799 )	// less than 
			pri = .1100;		// still costs the min
}
{
  if( space > 1799 )	// less than 
			pri =.1075 ;		// still costs the min
}
{
  if( space > 2400 )	// less than 
			pri =.1055 ;		// still costs the min
}
{
  if( space > 3200 )	// less than 
			pri =.1025 ;		// still costs the min
}
{
  if( space > 3839 )	// less than 
			pri =.1000 ;		// still costs the min
}
{
  if( space > 4323 )	// less than 
			pri =.0950 ;		// still costs the min
}

var prod = space  *  pri  
document.myform.amount.value=custRound(prod,2);
}

function custRound(x,places) {
return (Math.round(x*Math.pow(10,places)))/Math.pow(10,places)
}

// End -->


