Rollimage = new Array()
Rollimage[0] = new Image(79,15)
Rollimage[0].src = "/wp-content/uploads/stars.png"

Rollimage[1] = new Image(79,15)
Rollimage[1].src = "/wp-content/uploads/1star.png"

Rollimage[2] = new Image(79,15)
Rollimage[2].src = "/wp-content/uploads/2stars.png"

Rollimage[3] = new Image(79,15)
Rollimage[3].src = "/wp-content/uploads/3stars.png"

Rollimage[4] = new Image(79,15)
Rollimage[4].src = "/wp-content/uploads/4stars.png"

Rollimage[5] = new Image(79,15)
Rollimage[5].src = "/wp-content/uploads/5stars.png"

function star1(a,b) {
 document.getElementById(a).src = Rollimage[1].src;
 document.form1.elements[b].value = 1;
}
function stars2(a,b) {
 document.getElementById(a).src = Rollimage[2].src;
 document.form1.elements[b].value = 2;
}
function stars3(a,b) {
 document.getElementById(a).src = Rollimage[3].src;
 document.form1.elements[b].value = 3;
}
function stars4(a,b) {
 document.getElementById(a).src = Rollimage[4].src;
 document.form1.elements[b].value = 4;
}
function stars5(a,b) {
 document.getElementById(a).src = Rollimage[5].src;
 document.form1.elements[b].value = 5;
}
function rollout(){
 document.getElementById(a).src = Rollimage[0].src; 
}
function getTotal() {
 var t = eval(document.form1.cff.value) + eval(document.form1.wws.value) + eval(document.form1.rclean.value) + eval(document.form1.foodp.value);
 if (t < 10) {
 t = '0.0' + t;
 }
 if (t >= 10) {
 t = '0.' + t;
 }
 var subtotal = document.form1.subtotal.value;
 var tipTotal = t * subtotal;
 var total = eval(tipTotal) + eval(subtotal);
 document.getElementById('total').innerHTML = '<br /><br /><strong>Tip: $' + tipTotal + '</strong><br /><strong>Total amount: $' + total + '</strong>';
}