function set_focus()
{
 document.forms[0].url1_name.focus();
}

function form_policy(){
 if (document.forms[0].policy.checked == true){
  document.forms[0].submit.disabled=false;
 }
 if (document.forms[0].policy.checked == false){
  document.forms[0].submit.disabled=true;
 }
}

function bill_info (){
var price=new Array()
price[0]=0.0;
price[1]=45.00;
price[2]=110.00;
price[3]=250.00;
price[4]=550.00;
price[5]=59.95;
total=price[parseInt(document.forms[0].service1.value)]+price[parseInt(document.forms[0].service2.value)]+price[parseInt(document.forms[0].service3.value)]+price[parseInt(document.forms[0].service4.value)];

var content=new Array()
content[1]='<b>Total amount to be charged: £'+cent(total)+'</b>';

if (document.all) {
 bill.innerHTML = content[1];
}

else if (document.getElementById){
 bill=document.getElementById("bill");
 bill.innerHTML = content[1];
}

else if (document.layers){
document.d1.document.d2.document.write(1)
document.d1.document.d2.document.close()
}
}

function cent(amount) {
// returns the amount in the .99 format
 amount -= 0;
 amount = (Math.round(amount*100))/100;
 return (amount == Math.floor(amount)) ? amount + '.00' : (  (amount*10 == Math.floor(amount*10)) ? amount + '0' : amount);
}