window.onload=show;
function show(id) {
var d = document.getElementById(id);
	for (var i = 1; i<=10; i++) {
		if (document.getElementById('smenu'+i)) {document.getElementById('smenu'+i).style.display='none';}
	}
if (d) {d.style.display='block';}
}

function doPopup(popupPath) {
var newWin = window.open(popupPath, 'name', 'location=YES,status=YES,resizable=YES,scrollbars=YES,width=569,height=376,top=0,left=0');
newWin.focus();
}

/*Calculator*/
function  doMath() {
var btuheater = eval(document.theForm.input.value);
var tprice1 = eval(document.theForm.price1.value);
var tcost1 = eval(document.theForm.cost1.value);
var tcosthour1 = eval(document.theForm.costhour1.value);
var tprice2 = eval(document.theForm.price2.value);
var tcost2 = eval(document.theForm.cost2.value);
var tcosthour2 = eval(document.theForm.costhour2.value);
var tprice3 = eval(document.theForm.price3.value);
var tcost3 = eval(document.theForm.cost3.value);
var tcosthour3 = eval(document.theForm.costhour3.value);
var tprice4 = eval(document.theForm.price4.value);
var tcost4 = eval(document.theForm.cost4.value);
var tcosthour4 = eval(document.theForm.costhour4.value);
var tprice5 = eval(document.theForm.price5.value);
var tcost5 = eval(document.theForm.cost5.value);
var tcosthour5 = eval(document.theForm.costhour5.value);
var tprice6 = eval(document.theForm.price6.value);
var tcost6 = eval(document.theForm.cost6.value);
var tcosthour6 = eval(document.theForm.costhour6.value);
var tprice7 = eval(document.theForm.price7.value);
var tcost7 = eval(document.theForm.cost7.value);
var tcosthour7 = eval(document.theForm.costhour7.value);
var tprice8 = eval(document.theForm.price8.value);
var tcost8 = eval(document.theForm.cost8.value);
var tcosthour8 = eval(document.theForm.costhour8.value);
var tprice9 = eval(document.theForm.price9.value);
var tcost9 = eval(document.theForm.cost9.value);
var tcosthour9 = eval(document.theForm.costhour9.value);
var tprice10 = eval(document.theForm.price10.value);
var tcost10 = eval(document.theForm.cost10.value);
var tcosthour10 = eval(document.theForm.costhour10.value);
var prod1 = ('1000000' / '134000' / ('85' / '100')) * tprice1;
var prod11a = (btuheater * prod1) / '1000000';
document.theForm.cost1.value=prod1.toFixed(2);
document.theForm.costhour1.value=prod11a.toFixed(2);
var prod2 = ('1000000' / '138000' / ('80' / '100')) * tprice2;
var prod21a = (btuheater * prod2) / '1000000';
document.theForm.cost2.value=prod2.toFixed(2);
document.theForm.costhour2.value=prod21a.toFixed(2);
var prod3 = ('1000000' / '153000' / ('80' / '100')) * tprice3;
var prod31a = (btuheater * prod3) / '1000000';
document.theForm.cost3.value=prod3.toFixed(2);
document.theForm.costhour3.value=prod31a.toFixed(2);
var prod4 = ('1000000' / '92000' / ('80' / '100')) * tprice4;
var prod41a = (btuheater * prod4) / '1000000';
document.theForm.cost4.value=prod4.toFixed(2);
document.theForm.costhour4.value=prod41a.toFixed(2);
var prod5 = ('1000000' / '100000' / ('80' / '100')) * tprice5;
var prod51a = (btuheater * prod5) / '1000000';
document.theForm.cost5.value=prod5.toFixed(2);
document.theForm.costhour5.value=prod51a.toFixed(2);
var prod6 = ('1000000' / '3412' / ('100' / '100')) * tprice6;
var prod61a = (btuheater * prod6) / '1000000';
document.theForm.cost6.value=prod6.toFixed(2);
document.theForm.costhour6.value=prod61a.toFixed(2);
var prod7 = ('1000000' / ('13200' * '2000') / ('75' / '100')) * tprice7;
var prod71a = (btuheater * prod7) / '1000000';
document.theForm.cost7.value=prod7.toFixed(2);
document.theForm.costhour7.value=prod71a.toFixed(2);
var prod8 = ('1000000' / '25000000' / ('60' / '100')) * tprice8;
var prod81a = (btuheater * prod8) / '1000000';
document.theForm.cost8.value=prod8.toFixed(2);
document.theForm.costhour8.value=prod81a.toFixed(2);
var prod9 = ('1000000' / ('8200' * '2000') / ('80' / '100')) * tprice9;
var prod91a = (btuheater * prod9) / '1000000';
document.theForm.cost9.value=prod9.toFixed(2);
document.theForm.costhour9.value=prod91a.toFixed(2);
var prod10 = ('1000000' / ('6800' * '56') / ('75' / '100')) * tprice10;
var prod101a = (btuheater * prod10) / '1000000';
document.theForm.cost10.value=prod10.toFixed(2);
document.theForm.costhour10.value=prod101a.toFixed(2);
}

/*Calculator*/
function  doMath2() {
var tkw = eval(document.theForm2.kw1.value);
var tkw1 = tkw * '3413';
document.theForm2.btu1.value=tkw1.toFixed(5);
}
/*Calculator*/
function  doMath3() {
var tbt = eval(document.theForm3.btu2.value);
var tbt1 = tbt / '3413';
document.theForm3.kw2.value=tbt1.toFixed(5);
}