function setPointer(theRow, thePointerColor)
{
    if (typeof(theRow.style) == 'undefined' || typeof(theRow.cells) == 'undefined') {
        return false;
    }

    var row_cells_cnt           = theRow.cells.length;
    for (var c = 0; c < row_cells_cnt; c++) {
        theRow.cells[c].bgColor = thePointerColor;
    }

    return true;
} // end of the 'setPointer()' function
<!-- Total Box Office Script -->
function s(num, val) {
amount = num * 1; // amount is the num or NaN
sum = (!num ? 0 : num) * val;  // the sum 
if (isNaN(amount)) { // if the entire is not a number

alert(
"' " + num + " ' is not a valid entry and that field will "
+ "not be added properly "
+ "valid example: 3.42"
);

return 0;
}
else
return sum; // if it is OK, send sum back
}

function money(form) {
Fri = s(form.Fri.value, 1);
Sat = s(form.Sat.value, 1);
Sun = s(form.Sun.value, 1);

// add up all the amounts
var ttl = Fri + Sat + Sun;

// rounds total to two decimal places

ttl = "" + ((Math.round(ttl * 100)) / 100);

dec1 = ttl.substring(ttl.length-3, ttl.length-2);
dec2 = ttl.substring(ttl.length-2, ttl.length-1);

if (dec1 != '.') { // adds trailing zeroes if necessary
if (dec2 == '.') ttl += "0";
else ttl += ".00";
}
form.total.value = ttl; // display total amount

change1 = Math.round(((Sat - Fri) / Fri) * 100);
change2 = Math.round(((Sun - Sat) / Sat) * 100);
form.changefs.value = change1;
form.changess.value = change2;
}
function launchHelp(newURL, newFeatures) {
  if ((navigator.appName=='Microsoft Internet Explorer') && (window.HelpWindow)) HelpWindow.close();
  HelpWindow = open(newURL, "HelpWindow", newFeatures + ",screenX=0,left=0,screenY=0,top=0,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=1,status=0,toolbar=0");
  if (HelpWindow.opener == null) HelpWindow.opener = window;
  HelpWindow.focus();
}

