

<!-- 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 = 3.00 ;		// still costs the min
}
{
  if( space > 1.25 )	// less than 
			pri = 2.75 ;		// still costs the min
}
{
  if( space > 1.50 )	// less than 
			pri = 2.50 ;		// still costs the min
}
{
  if( space > 1.75 )	// less than 
			pri = 2.75 ;		// still costs the min
}
{
  if( space > 2 )	// less than 
			pri = 2.0 ;		// still costs the min
}
{
  if( space > 2.25 )	// less than 
			pri = 1.835 ;		// still costs the min
}
{
  if( space > 2.50 )	// less than 
			pri = 1.665 ;		// still costs the min
}
{
  if( space > 2.75 )	// less than 
			pri = 1.498 ;		// still costs the min
}
{
  if( space > 3 )	// less than 
			pri = 1.33 ;		// still costs the min
}
{
  if( space > 3.25 )	// less than 
			pri = 1.2475 ;		// still costs the min
}
{
  if( space > 3.50 )	// less than 
			pri = 1.165 ;		// still costs the min
}
{
  if( space > 3.75 )	// less than 
			pri = 1.0825 ;		// still costs the min
}
{
  if( space > 4 )	// less than 
			pri = 1.00 ;		// still costs the min
}
{
  if( space > 4.25 )	// less than 
			pri = .9583 ;		// still costs the min
}
{
  if( space > 4.50 )	// less than 
			pri = .9167 ;		// still costs the min
}
{
  if( space > 4.75 )	// less than 
			pri = .8750 ;		// still costs the min
}
{
  if( space > 5 )	// less than 
			pri = 1.25 ;		// still costs the min
}
{
  if( space > 5.25 )	// less than 
			pri = .7916 ;		// still costs the min
}
{
  if( space > 5.50 )	// less than 
			pri = .7500 ;		// still costs the min
}
{
  if( space > 5.75 )	// less than 
			pri = .7083 ;		// still costs the min
}
{
  if( space > 6 )	// less than 
			pri = .6666 ;		// still costs the min
}
{
  if( space > 6.25 )	// less than 
			pri = .6620 ;		// still costs the min
}
{
  if( space > 6.50 )	// less than 
			pri = .6575 ;		// still costs the min
}
{
  if( space > 6.75 )	// less than 
			pri = .6529 ;		// still costs the min
}
{
  if( space > 7 )	// less than 
			pri = .6483 ;		// still costs the min
}
{
  if( space > 7.25 )	// less than 
			pri = .6439 ;		// still costs the min
}
{
  if( space > 7.50 )	// less than 
			pri = .6394 ;		// still costs the min
}
{
  if( space > 7.75 )	// less than 
			pri = .6350 ;		// still costs the min
}
{
  if( space > 8 )	// less than 
			pri = .6305 ;		// still costs the min
}
{
  if( space > 8.25 )	// less than 
			pri = .6261 ;		// still costs the min
}
{
  if( space > 8.50 )	// less than 
			pri = .6216 ;		// still costs the min
}
{
  if( space > 8.75 )	// less than 
			pri = .6172 ;		// still costs the min
}
{
  if( space > 9 )	// less than 
			pri = .6127 ;		// still costs the min
}
{
  if( space > 9.25 )	// less than 
			pri = .6083 ;		// still costs the min
}
{
  if( space > 9.50 )	// less than 
			pri = .6038 ;		// still costs the min
}
{
  if( space > 9.75 )	// less than 
			pri = .5994 ;		// still costs the min
}
{
  if( space > 10 )	// less than 
			pri = .5949 ;		// still costs the min
}
{
  if( space > 10.25 )	// less than 
			pri = .5905 ;		// still costs the min
}
{
  if( space > 10.50 )	// less than 
			pri = .586 ;		// still costs the min
}
{
  if( space > 10.75 )	// less than 
			pri = .5816 ;		// still costs the min
}
{
  if( space > 11 )	// less than 
			pri = .5771 ;		// still costs the min
}
{
  if( space > 11.25 )	// less than 
			pri = .5727 ;		// still costs the min
}
{
  if( space > 11.50 )	// less than 
			pri = .5182 ;		// still costs the min
}
{
  if( space > 11.75 )	// less than 
			pri = .5638 ;		// still costs the min
}
{
  if( space > 12 )	// less than 
			pri = .5593 ;		// still costs the min
}
{
  if( space > 12.25 )	// less than 
			pri = .5549 ;		// still costs the min
}
{
  if( space > 12.50 )	// less than 
			pri = .5504 ;		// still costs the min
}
{
  if( space > 12.75 )	// less than 
			pri = .5460 ;		// still costs the min
}
{
  if( space > 13 )	// less than 
			pri = .5415 ;		// still costs the min
}
{
  if( space > 13.25 )	// less than 
			pri = .5371 ;		// still costs the min
}
{
  if( space > 13.50 )	// less than 
			pri = .5362 ;		// still costs the min
}
{
  if( space > 13.75 )	// less than 
			pri = .5282 ;		// still costs the min
}
{
  if( space > 14 )	// less than 
			pri = .5237 ;		// still costs the min
}
{
  if( space > 14.25 )	// less than 
			pri = .5193 ;		// still costs the min
}
{
  if( space > 14.50 )	// less than 
			pri = .5148 ;		// still costs the min
}
{
  if( space > 14.75 )	// less than 
			pri = .5104 ;		// still costs the min
}
{
  if( space > 15 )	// less than 
			pri = .5059 ;		// still costs the min
}
{
  if( space > 15.25 )	// less than 
			pri = .5015 ;		// still costs the min
}
{
  if( space > 15.50 )	// less than 
			pri = .497 ;		// still costs the min
}
{
  if( space > 15.75 )	// less than 
			pri = .4962 ;		// still costs the min
}
{
  if( space > 16 )	// less than 
			pri = .4881 ;		// still costs the min
}
{
  if( space > 16.25 )	// less than 
			pri = .4839 ;		// still costs the min
}
{
  if( space > 16.50 )	// less than 
			pri = .4797 ;		// still costs the min
}
{
  if( space > 16.75 )	// less than 
			pri = .47545 ;		// still costs the min
}
{
  if( space > 17 )	// less than 
			pri = .4712 ;		// still costs the min
}
{
  if( space > 18 )	// less than 
			pri = .4754 ;		// still costs the min
}
{
  if( space > 19 )	// less than 
			pri = .4378 ;		// still costs the min
}
{
  if( space > 20 )	// less than 
			pri = .4211;		// still costs the min
}
{
  if( space > 21 )	// less than 
			pri = .4044 ;		// still costs the min
}
{
  if( space > 22 )	// less than 
			pri = .3877 ;		// still costs the min
}
{
  if( space > 23 )	// less than 
			pri = .371 ;		// still costs the min
}
{
  if( space > 24 )	// less than 
			pri = .3543 ;		// still costs the min
}
{
  if( space > 25 )	// less than 
			pri = .3376 ;		// still costs the min
}
{
  if( space > 26 )	// less than 
			pri = .3291 ;		// still costs the min
}
{
  if( space > 27 )	// less than 
			pri = .3203 ;		// still costs the min
}
{
  if( space > 28 )	// less than 
			pri = .3115 ;		// still costs the min
}
{
  if( space > 29 )	// less than 
			pri = .3027 ;		// still costs the min
}
{
  if( space > 30 )	// less than 
			pri = .2939 ;		// still costs the min
}
{
  if( space > 31 )	// less than 
			pri = .2851 ;		// still costs the min
}
{
  if( space > 32 )	// less than 
			pri = .2763 ;		// still costs the min
}
{
  if( space > 33 )	// less than 
			pri = .2675 ;		// still costs the min
}
{
  if( space > 34 )	// less than 
			pri = .2587 ;		// still costs the min
}
{
  if( space > 35 )	// less than 
			pri = .25 ;		// still costs the min
}
{
  if( space > 36 )	// less than 
			pri = .2613 ;		// still costs the min
}
{
  if( space > 37 )	// less than 
			pri = .2611 ;		// still costs the min
}
{
  if( space > 38 )	// less than 
			pri = .2510 ;		// still costs the min
}
{
  if( space > 39 )	// less than 
			pri = .2409 ;		// still costs the min
}
{
  if( space > 40 )	// less than 
			pri = .2308 ;		// still costs the min
}
{
  if( space > 45 )	// less than 
			pri = .2207 ;		// still costs the min
}
{
  if( space > 50 )	// less than 
			pri = .2106 ;		// still costs the min
}
{
  if( space > 55 )	// less than 
			pri = .1927 ;		// still costs the min
}
{
  if( space > 60 )	// less than 
			pri = .1837 ;		// still costs the min
}
{
  if( space > 64 )	// less than 
			pri = .1755 ;		// still costs the min
}
{
  if( space > 70 )	// less than 
			pri = .1733 ;		// still costs the min
}
{
  if( space > 75 )	// less than 
			pri = .1713 ;		// still costs the min
}
{
  if( space > 79 )	// less than 
			pri = .1693 ;		// still costs the min
}
{
  if( space > 89 )	// less than 
			pri = .1670 ;		// still costs the min
}
{
  if( space > 99 )	// less than 
			pri = .1648 ;		// still costs the min
}
{
  if( space > 107 )	// less than 
			pri = .1458;		// still costs the min
}
{
  if( space > 119 )	// less than 
			pri = .1398 ;		// still costs the min
}
{
  if( space > 129 )	// less than 
			pri = .1339 ;		// still costs the min
}
{
  if( space > 143 )	// less than 
			pri = .1280;		// still costs the min
}
{
  if( space > 153 )	// less than 
			pri = .1209 ;		// still costs the min
}
{
  if( space > 163 )	// less than 
			pri = .12024 ;		// still costs the min
}
{
  if( space > 173 )	// less than 
			pri = .11958 ;		// still costs the min
}
{
  if( space > 183 )	// less than 
			pri = .11892 ;		// still costs the min
}
{
  if( space > 191 )	// less than 
			pri = .11826;		// still costs the min
}
{
  if( space > 199 )	// less than 
			pri = .1176 ;		// still costs the min
}
{
  if( space > 229 )	// less than 
			pri = .1113 ;		// still costs the min
}
{
  if( space > 239 )	// less than 
			pri = .1082 ;		// still costs the min
}
{
  if( space > 251 )	// less than 
			pri = .1051;		// still costs the min
}
{
  if( space > 255 )	// less than 
			pri = .1169 ;		// still costs the min
}
{
  if( space > 265 )	// less than 
			pri = .1123 ;		// still costs the min
}
{
  if( space > 275 )	// less than 
			pri = .1077 ;		// still costs the min
}
{
  if( space > 287 )	// less than 
			pri = .1032;		// still costs the min
}
{
  if( space > 297 )	// less than 
			pri = .101 ;		// still costs the min
}
{
  if( space > 309 )	// less than 
			pri = .099 ;		// still costs the min
}
{
  if( space > 319 )	// less than 
			pri = .0970 ;		// still costs the min
}
{
  if( space > 323 )	// less than 
			pri = .1040;		// still costs the min
}
{
  if( space > 399 )	// less than 
			pri = .0960;		// still costs the min
}
{
  if( space > 431 )	// less than 
			pri = .094 ;		// still costs the min
}
{
  if( space > 499 )	// less than 
			pri = .091;		// still costs the min
}
{
  if( space > 599 )	// less than 
			pri = .09;		// still costs the min
}
{
  if( space > 699 )	// less than 
			pri = .09;		// still costs the min
}
{
  if( space > 799 )	// less than 
			pri = .09;		// still costs the min
}
{
  if( space > 1799 )	// less than 
			pri = .0875 ;		// still costs the min
}
{
  if( space > 2400 )	// less than 
			pri = .0855 ;		// still costs the min
}
{
  if( space > 3200 )	// less than 
			pri = .0825 ;		// still costs the min
}
{
  if( space > 3839 )	// less than 
			pri = .0800 ;		// still costs the min
}
{
  if( space > 4323 )	// less than 
			pri = .0775 ;		// 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 -->


