
function open_window(strUrl, strWindowname, strWidth, strHeight, strResizable) {
    arg="width=" + strWidth + ",height=" + strHeight + ",resizable=" + strResizable + ",status=no,scrollbars=yes,menubar=no,toolbar=no,location=no";
    window.open(strUrl,strWindowname,arg);
}

function showconfirmdialog(confirmtext, strurl) {
    if (navigator.userAgent.substring(8,9) >='3') {
        confirmresult = confirm(confirmtext)
        if (confirmresult == true) {
            window.location = strurl
        }
    }
}


var co = new Object;
function recalc_onclick(ctl) {
  if (document.formc.automatic_recalc.checked || ctl=='') {
	co.pA2B=eeparseFloat(document.formc.pA2B.value);
	co.pA2E=eeparseFloat(document.formc.pA2E.value);
	co.pA2H=eeparseFloat(document.formc.pA2H.value);
	co.pA2K=eeparseFloat(document.formc.pA2K.value);
	co.pA3B=eeparseFloat(document.formc.pA3B.value);
	co.pA3E=eeparseFloat(document.formc.pA3E.value);
	co.pA3H=eeparseFloat(document.formc.pA3H.value);
	co.pA3K=eeparseFloat(document.formc.pA3K.value);
	co.pA4B=eeparseFloat(document.formc.pA4B.value);
	co.pA4E=eeparseFloat(document.formc.pA4E.value);
	co.pA4H=eeparseFloat(document.formc.pA4H.value);
	co.pA4K=eeparseFloat(document.formc.pA4K.value);
	co.pA5B=eeparseFloat(document.formc.pA5B.value);
	co.pA5E=eeparseFloat(document.formc.pA5E.value);
	co.pA5H=eeparseFloat(document.formc.pA5H.value);
	co.pA5K=eeparseFloat(document.formc.pA5K.value);
	co.pA6B=eeparseFloat(document.formc.pA6B.value);
	co.pA6H=eeparseFloat(document.formc.pA6H.value);
	co.pA7H=eeparseFloat(document.formc.pA7H.value);
	calc(co);
	document.formc.pA6E.value=eedisplayFloat(co.pA6E);
	document.formc.pA6K.value=eedisplayFloat(co.pA6K);
	document.formc.pA7B.value=eedisplayFloat(co.pA7B);
	document.formc.pA8H.value=eedisplayFloat(co.pA8H);
	document.formc.pA9H.value=eedisplayFloat(co.pA9H);
};};

var eeisus=0;var eetrue="TRUE";var eefalse="FALSE";var eedec=".";var eeth=",";var eedecreg=new RegExp("[.]","g");var eethreg=new RegExp(",","g");
function calc(data){var cA2B=data.pA2B;var cA2E=data.pA2E;var cA2H=data.pA2H;var cA2K=data.pA2K;var cA3B=data.pA3B;var cA3E=data.pA3E;var cA3H=data.pA3H;var cA3K=data.pA3K;var cA4B=data.pA4B;var cA4E=data.pA4E;var cA4H=data.pA4H;var cA4K=data.pA4K;var cA5B=data.pA5B;var cA5E=data.pA5E;var cA5H=data.pA5H;var cA5K=data.pA5K;var cA6B=data.pA6B;var cA6H=data.pA6H;var cA7H=data.pA7H;var cA6E=(((((((((cA2E)+(7)))-(cA3E)))-(cA4E)))-(cA5E)));var cA6K=(((((((((cA2K)+(cA3K)))+(cA4K)))-(7)))+(cA5K)));var cA7B=(((((((((((cA2B)+(6)))-(cA4B)))-(cA3B)))-(cA5B)))-(cA6B)));var cA8H=(((((((((((cA2H)+(cA4H)))+(cA5H)))+(cA6H)))-(6)))+(cA7H)));var cA9H=(((((((((((((((cA2H)+(cA3H)))+(cA3H)))+(cA4H)))+(cA5H)))+(cA6H)))+(14)))+(cA7H)));data.pA6E=cA6E;data.pA6K=cA6K;data.pA7B=cA7B;data.pA8H=cA8H;data.pA9H=cA9H;};
function myIsNaN(x){return(isNaN(x)||(typeof x=='number'&&!isFinite(x)));};function eeparseFloat(str){str=String(str).replace(eedecreg,".");var res=parseFloat(str);if(isNaN(res)){return 0;}else{return res;}};function eedisplayFloat(x){if(myIsNaN(x)){return Number.NaN;}else{return String(x).replace(/\./g,eedec);}};

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

