
<!--

<!-- Begin

function getquote(){

  var price
  var noemploy
//weekly rates
  noemploy = document.FORM1.number1.value;
  price=noemploy*5.67;
    { 
	if (noemploy<6)
	  {price=noemploy*6.45;}
	  if (noemploy>5)
	  {price=noemploy*2.31;}
	  if (noemploy>25)
	  {price=noemploy*2.07;}
	  if (noemploy>50)
	  {price=noemploy*1.81;}
	  if (noemploy>100)
	  {price=noemploy*1.54;}
	  if (noemploy>500)
	  {price=noemploy*1.30;}
	  if (noemploy=='Weekly')
	  {price=0.00;}
	if (noemploy==0)
	  {price=0.00;}

	price = price*52
//              if (price > 0 && price<300) {price=300;}
	}
  var s;
  var decimal;
  
 price = price * 100;
   price = Math.round(price);
  price = price / 100;
  u1=price
  
  
  // format the output
  s = new String(price);
  decimal = s.indexOf(".");
  if (decimal == -1)
    {
	    // whole number
		s = s + ".00";
	}
	 else
	 {
	     if(decimal == (s.length -2))
		 {
		        // needs a trailing zero
				s = s + "0";
		 }
	 }

document.FORM1.answerw.value = "£"+s

  noemploy = document.FORM1.number2.value;
// monthly rates   		
	price=noemploy*5.67;
    { 
	if (noemploy<6)
	  {price=noemploy*6.45;}
	if (noemploy>5)
	  {price=noemploy*3.35;}
	  if (noemploy>25)
	  {price=noemploy*3.10;}
	  if (noemploy>50)
	  {price=noemploy*2.84;}
	  if (noemploy>100)
	  {price=noemploy*2.31;}
	  if (noemploy>500)
	  {price=noemploy*2.07;}
	  if (noemploy=='Monthly')
	  {price=0.00;}
	if (noemploy==0)
	  {price=0.00;}
	}
	
  price = price*12
//  if (price > 0 && price<300) {price=300;}
  var s;
  var decimal;
  s=0
 price = price * 100;
   price = Math.round(price);
  price = price / 100;
  u2=price
  
  // format the output
  s = new String(price);

  decimal = s.indexOf(".");
  if (decimal == -1)
    {
	    // whole number
		s = s + ".00";
	}
	 else
	 {
	     if(decimal == (s.length -2))
		 {
		        // needs a trailing zero
				s = s + "0";
		 }
	 }

document.FORM1.answerm.value = "£"+s

  noemploy = document.FORM1.number3.value;
// 2 weekly rates   		
	price=noemploy*5.67;
    { 
	if (noemploy<6)
	  {price=noemploy*6.45;}
	if (noemploy>5)
	  {price=noemploy*2.84;}
	  if (noemploy>25)
	  {price=noemploy*2.58;}
	  if (noemploy>50)
	  {price=noemploy*2.30;}
	  if (noemploy>100)
	  {price=noemploy*1.92;}
	  if (noemploy>500)
	  {price=noemploy*1.68;}
	  if (noemploy=='2Monthly')
	  {price=0.00;}
	if (noemploy==0)
	  {price=0.00;}
	}
	
  price = price*26
//  if (price > 0 && price<300) {price=300;}
  var s;
  var decimal;
  s=0
 price = price * 100;
   price = Math.round(price);
  price = price / 100;
  u3=price
  
  // format the output
  s = new String(price);

  decimal = s.indexOf(".");
  if (decimal == -1)
    {
	    // whole number
		s = s + ".00";
	}
	 else
	 {
	     if(decimal == (s.length -2))
		 {
		        // needs a trailing zero
				s = s + "0";
		 }
	 }

document.FORM1.answerm.value = "£"+s

// totalise


t=(u1+u2+u3).toFixed(2)
if (t > 0 && t<300) {t=300;}

// format the output
  x = new String(t);
  decimal = x.indexOf(".");
  if (decimal == -1)
    {
	    // whole number
		x = x + ".00";
	}
	 else
	 {
	     if(decimal == (x.length -2))
		 {
		        // needs a trailing zero
				x = x + "0";
		 }
	 }

document.FORM1.answert.value = "£"+x

}

function resetval(){
document.FORM1.number1.value = 'Weekly';
document.FORM1.number2.value = 'Monthly';
document.FORM1.number3.value = '2Weekly';
document.FORM1.answerw.value = '';
document.FORM1.answer2w.value = '';
document.FORM1.answerm.value = '';

}

//  End -->
//-->


