var i,gtotal,total,fval

function CalcTotal(){
gtotal = 0;
fval = 9.99;

if (document.mailForm.addplate.checked == false & document.mailForm.frame.checked == false){
total = 19.99;
}
if (document.mailForm.addplate.checked == true & document.mailForm.frame.checked == false){
total = 28.99;
}
if (document.mailForm.addplate.checked == true & document.mailForm.frame.checked == true){
total = 37.98;
}
if (document.mailForm.addplate.checked == false & document.mailForm.frame.checked == true){
total = 28.98;
}
gtotal += (1*total)+2.95;


populateTotal()
}
function populateTotal(){
document.all.mytotal.value = curr(gtotal);
}
function curr(temp_amount){//Convert to a currency format
if (temp_amount > 0){
	temp_amount2 = String(Math.round(temp_amount * 100));
	temp_length = parseInt(temp_amount2.length);
	temp_price = temp_amount2.substring(0,(temp_length-2));
	temp_price2 = temp_amount2.substring((temp_length-2),temp_length);
	return "£"+temp_price +"." + temp_price2;
	}
else
	return("£0.00")
}