function footErrors() {
return true;
}
window.onerror = footErrors;


function openWindow(url) {
  popupWin = window.open(url, 'remote', 'resizable,titlebars=yes,scrollbars=1,top=75,left=100,width=500,height=400')
}


//side navigation
if (document.images != null)
  
{
ontop = new Array (6); offtop = new Array (6); sticky = new Array (6);
for (i=1;i<6;i++) {ontop[i] = new Image; offtop[i] = new Image; sticky[i] = new Image;}

ontop[1].src="/images/nav/home_.gif";
ontop[2].src="/images/nav/services_.gif";
ontop[3].src="/images/nav/order_.gif";
ontop[4].src="/images/nav/support_.gif";
ontop[5].src="/images/nav/about_.gif";

offtop[1].src="/images/nav/home.gif";
offtop[2].src="/images/nav/services.gif";
offtop[3].src="/images/nav/order.gif";
offtop[4].src="/images/nav/support.gif";
offtop[5].src="/images/nav/about.gif";

sticky[1].src="/images/nav/home_on.gif";
sticky[2].src="/images/nav/services_on.gif";
sticky[3].src="/images/nav/order_on.gif";
sticky[4].src="/images/nav/support_on.gif";
sticky[5].src="/images/nav/about_on.gif";

}
function top_on(n) {if (document.images != null) {document.images["i"+(n+"")].src=ontop[n].src;}}
function top_off(n) {if (document.images != null) {document.images["i"+(n+"")].src=offtop[n].src;}}


function checkChoice(whichbox) {
with (whichbox.form) {
if (whichbox.checked == false)
hiddentotal.value = eval(hiddentotal.value) - eval(whichbox.value);
else
hiddentotal.value = eval(hiddentotal.value) + eval(whichbox.value);
return(formatCurrency(hiddentotal.value));
   }
}
function formatCurrency(num) {
num = num.toString().replace(/\$|\,/g,'');
if(isNaN(num)) num = "0";
cents = Math.floor((num*100+0.5)%100);
num = Math.floor((num*100+0.5)/100).toString();
if(cents < 10) cents = "0" + cents;
for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
num = num.substring(0,num.length-(4*i+3))+','+num.substring(num.length-(4*i+3));
return ("$" + num + "." + cents);
}
