<!-- Begin
var text="Thank You for using the Inverter Calculator.<br /><br />We suggest the following inverters for your application: (Links open in new browser window)<br /><br />";
var text100 = "100 Watt Power Inverters";
var text150 = "150 Watt Power Inverters";
var text175 = "175 Watt Power Inverters";
var text200 = "200 Watt Power Inverters";
var text300 = "300 Watt Power Inverters";
var text400 = "400 Watt Power Inverters";
var text600 = "600 Watt Power Inverters";
var text800 = "800 Watt Power Inverters";
var text1000 = "1000 Watt Power Inverters";
var text1200 = "1200 Watt Power Inverters";
var text1500 = "1500 Watt Power Inverters";
var text1750 = "1750 Watt Power Inverters";
var text2000 = "2000 Watt Power Inverters";
var text2500 = "2500 Watt Power Inverters";
var text3000 = "3000 Watt Power Inverters";
var text5000 = "5000 Watt Power Inverters";
var tvp = " at 12 Volts Plus";
var vp = " at VoltagePro";
var msw = " (Modified Sine Wave) ";
var psw = " (Pure Sine Wave) ";
var hotText = text100 + msw +tvp;
var URL="http://www.skingcompany.com/-100-Watt-Inverters-c50.aspx";
var hotTextA="GoPower! 175 Watt Power Inverters (Modified Sine Wave)";
var URLA="http://www.voltagepro.com/category/16-175-watt-power-inverters.aspx";
var hotTextB="GoPower! 150 Watt Inverter (Pure Sine Wave)";
var URLB="http://www.voltagepro.com/products/1-150-watt-sine-wave-power-inverter-gp-sw150-12.aspx";
var hotTextC="Samlex 150 Watt Power Inverter (Pure Sine Wave)";
var URLC="http://www.12voltsplus.com/-PST_15S_12A_Samlex_America_150_Watt_Pure_Sine_Wave_Power_Inverter-P170.aspx";
var hotText2="Whistler 100 Watt Power Inverter (Modified Sine Wave)";
var URL2="http://www.12voltsplus.com/-Pro_100W_Whistler_100_Watt_Power_Inverter-P488.aspx";
var hotText2A="GoPower! 175 Watt Power Inverter (Modified Sine Wave)";
var URL2A="http://www.voltagepro.com/products/21-175-watt-modified-sine-wave-power-inverter-gp-175.aspx";
var hotText2B="GoPower! 150 Watt Inverter (Pure Sine Wave)";
var URL2B="http://www.voltagepro.com/products/1-150-watt-sine-wave-power-inverter-gp-sw150-12.aspx";
var hotText2C="Samlex 150 Watt Power Inverter (Pure Sine Wave)";
var URL2C="http://www.12voltsplus.com/-PST_15S_12A_Samlex_America_150_Watt_Pure_Sine_Wave_Power_Inverter-P170.aspx";
var contValue=100;
var surgeValue=200;

function testIt()
{
	if ((document.forms[0].subtotal.value > 0) && (document.forms[0].subtotal.value <= 100))
	{
     	hotText = text100 + msw +tvp;
        URL="http://www.skingcompany.com/-100-Watt-Inverters-c50.aspx";
        hotTextA = text150 + msw + vp;
        URLA="http://www.voltagepro.com/category/16-175-watt-power-inverters.aspx";
        hotTextB = text150 + psw + tvp;
        URLB="http://www.skingcompany.com/-150-Watt-Inverters-c51.aspx";
        hotTextC = text150 + psw + vp;
        URLC="http://www.voltagepro.com/category/15-150-watt-power-inverters.aspx";
	   	contValue=100;
	}
     	if ((document.forms[0].subtotal.value > 100) && (document.forms[0].subtotal.value <= 150))
	{
        hotTextA = text150 + msw + vp;
        URLA="http://www.voltagepro.com/category/16-175-watt-power-inverters.aspx";
        hotTextB = text200 + msw + tvp;
        URLB="http://www.skingcompany.com/200_Watt_Inverters-c52.aspx";
        hotText = text150 + psw + tvp;
        URL="http://www.skingcompany.com/-150-Watt-Inverters-c51.aspx";
        hotTextC = text150 + psw + vp;
        URLC="http://www.voltagepro.com/category/15-150-watt-power-inverters.aspx";
	   	contValue=150;
	}
	if ((document.forms[0].subtotal.value > 150) && (document.forms[0].subtotal.value <= 200))
	{
        hotText = text200 + msw + tvp;
        URL = "http://www.skingcompany.com/200_Watt_Inverters-c52.aspx";
        hotTextA = text300 + vp;
        URLA = "http://www.voltagepro.com/category/19-300-watt-power-inverters.aspx";
        hotTextB = text300 + tvp;
        URLB = "http://www.skingcompany.com/300_Watt_Inverters-c53.aspx";
        hotTextC = "";
        URLC = "";
     	contValue=200;
    }
    if ((document.forms[0].subtotal.value > 200) && (document.forms[0].subtotal.value <= 300))
	{
     	hotTextA = text300 + vp;
        URLA="http://www.voltagepro.com/category/19-300-watt-power-inverters.aspx";
        hotText = text300 + tvp;
        URL="http://www.skingcompany.com/300_Watt_Inverters-c53.aspx";
        hotTextB = "";
        URLB = "";
        hotTextC = "";
        URLC = "";
     	contValue=300;
    }
    if ((document.forms[0].subtotal.value > 300) && (document.forms[0].subtotal.value <= 400))
	{
     	hotText= text400 + tvp;
	   	URL="http://www.skingcompany.com/400_Watt_Inverters-c54.aspx";
        hotTextA="";
	   	URLA="";
        hotTextB = "";
        URLB = "";
        hotTextC = "";
        URLC = "";
     	contValue=400;
    }
    if ((document.forms[0].subtotal.value > 400) && (document.forms[0].subtotal.value <= 600))
	{
     	hotText= text600 + vp;
	   	URL="http://www.voltagepro.com/category/20-600-watt-power-inverters.aspx";
        hotTextA=text800 + tvp;
	   	URLA="http://www.skingcompany.com/800_Watt_Inverters-c55.aspx";
        hotTextB = "";
        URLB = "";
        hotTextC = "";
        URLC = "";
     	contValue=600;
    }
    if ((document.forms[0].subtotal.value > 600) && (document.forms[0].subtotal.value <= 800))
	{
     	hotText = text800 + tvp;
	   	URL = "http://www.skingcompany.com/800_Watt_Inverters-c55.aspx";
        hotTextA = text1000 + vp;
	   	URLA = "http://www.voltagepro.com/category/21-1000-watt-power-inverters.aspx";
        hotTextB = "";
        URLB = "";
        hotTextC = "";
        URLC = "";
     	contValue=800;
    }
    if ((document.forms[0].subtotal.value > 800) && (document.forms[0].subtotal.value <= 1000))
	{
     	hotText = text1000 + vp;
	   	URL = "http://www.voltagepro.com/category/21-1000-watt-power-inverters.aspx";
        hotTextA = text1200 + tvp;
	   	URLA = "http://www.skingcompany.com/1200_Watt_Inverters-c56.aspx";
        hotTextB = "";
        URLB = "";
        hotTextC = "";
        URLC = "";
     	contValue=1000;
    }
    if ((document.forms[0].subtotal.value > 1000) && (document.forms[0].subtotal.value <= 1200))
	{
     	hotText = text1200 + tvp;
	   	URL = "http://www.skingcompany.com/1200_Watt_Inverters-c56.aspx";
        hotTextA = text1500 + vp;
	   	URLA = "http://www.voltagepro.com/category/22-1500-watt-power-inverters.aspx";
        hotTextB = "";
        URLB = "";
        hotTextC = "";
        URLC = "";
     	contValue=1200;
    }
    if ((document.forms[0].subtotal.value > 1200) && (document.forms[0].subtotal.value <= 1500))
	{
     	hotText = text1500 + vp;
	   	URL = "http://www.voltagepro.com/category/22-1500-watt-power-inverters.aspx";
        hotTextA = text1750 + vp;
	   	URLA = "http://www.voltagepro.com/category/23-1750-watt-power-inverters.aspx";
        hotTextB = text1750 + tvp;
        URLB = "http://www.skingcompany.com/1750_Watt_Inverters-c57.aspx";
        hotTextC = "";
        URLC = "";
     	contValue=1500;
    }
    if ((document.forms[0].subtotal.value > 1500) && (document.forms[0].subtotal.value <= 1750))
	{
     	hotText = text1750 + vp;
	   	URL = "http://www.voltagepro.com/category/23-1750-watt-power-inverters.aspx";
        hotTextA = text1750 + tvp;
        URLA = "http://www.skingcompany.com/1750_Watt_Inverters-c57.aspx";
        hotTextB = text2000 + vp;
        URLB = "http://www.voltagepro.com/category/24-2000-watt-power-inverters.aspx";
        hotTextC = text2000 + tvp;
        URLC = "http://www.skingcompany.com/2000_Watt_Inverters-c58.aspx";
     	contValue=1750;
    }
    if ((document.forms[0].subtotal.value > 1750) && (document.forms[0].subtotal.value <= 2000))
	{
     	hotText = text2000 + vp;
        URL = "http://www.voltagepro.com/category/24-2000-watt-power-inverters.aspx";
        hotTextA = text2000 + tvp;
        URLA = "http://www.skingcompany.com/2000_Watt_Inverters-c58.aspx";
        hotTextB = "";
        URLB = "";
        hotTextC = "";
        URLC = "";
     	contValue = 2000;
    }
    if ((document.forms[0].subtotal.value > 2000) && (document.forms[0].subtotal.value <= 3000))
	{
     	hotText = text3000 + tvp;
        URL = "http://www.skingcompany.com/3000_Watt_Inverters-c59.aspx";
        hotTextA = text3000 + vp;
        URLA = "http://www.voltagepro.com/category/25-3000-watt-power-inverters.aspx";
        hotTextB = "";
        URLB = "";
        hotTextC = "";
        URLC = "";
     	contValue = 3000;
    }
    if ((document.forms[0].subtotal.value > 3000) && (document.forms[0].subtotal.value <= 5000))
	{
     	hotText = text5000 + tvp;
        URL = "http://www.skingcompany.com/5000_Watt_Inverters-c60.aspx";
        hotTextA = "";
        URLA = "";
        hotTextB = "";
        URLB = "";
        hotTextC = "";
        URLC = "";
     	contValue = 5000;
    }
    if (document.forms[0].subtotal.value > 5000) 
	{
     	hotText="Please click here to contact us";
     	URL="http://www.skingcompany.com/ContactUs.aspx?Pid=undefined&acts=spec";
        hotTextA="";
	   	URLA="";
        hotTextB = "";
        URLB = "";
        hotTextC = "";
        URLC = "";
     	contValue=5000;
	}
     	


//Surge
	if ((document.forms[0].subtotal2.value > 0) && (document.forms[0].subtotal2.value <= 200))
	{
     	hotText2 = text100 + msw +tvp;
        URL2="http://www.skingcompany.com/-100-Watt-Inverters-c50.aspx";
        hotText2A = text150 + msw + vp;
        URL2A="http://www.voltagepro.com/category/16-175-watt-power-inverters.aspx";
        hotText2B = text150 + psw + tvp;
        URL2B="http://www.skingcompany.com/-150-Watt-Inverters-c51.aspx";
        hotText2C = text150 + psw + vp;
        URL2C="http://www.voltagepro.com/category/15-150-watt-power-inverters.aspx";
     	surgeValue=100;
     	}
	if ((document.forms[0].subtotal2.value > 200) && (document.forms[0].subtotal2.value <= 300))
	{
        hotText2 = text150 + psw + tvp;
        URL2 = "http://www.skingcompany.com/-150-Watt-Inverters-c51.aspx";
        hotText2A = text150 + msw + vp;
        URL2A="http://www.voltagepro.com/category/16-175-watt-power-inverters.aspx";
        hotText2B = text200 + msw + tvp;
        URL2B="http://www.skingcompany.com/200_Watt_Inverters-c52.aspx";
        hotText2C = text150 + psw + vp;
        URL2C = "http://www.voltagepro.com/category/15-150-watt-power-inverters.aspx";
     	surgeValue=150;
     }
     if ((document.forms[0].subtotal2.value > 300) && (document.forms[0].subtotal2.value <= 400))
	 {
     	hotText2 = text200 + msw + tvp;
        URL2 = "http://www.skingcompany.com/200_Watt_Inverters-c52.aspx";
        hotText2A = text300 + vp;
        URL2A = "http://www.voltagepro.com/category/19-300-watt-power-inverters.aspx";
        hotText2B = text300 + tvp;
        URL2B = "http://www.skingcompany.com/300_Watt_Inverters-c53.aspx";
        hotText2C = "";
        URL2C = "";
     	surgeValue=200;
     }
     if ((document.forms[0].subtotal2.value > 400) && (document.forms[0].subtotal2.value <= 600))
	 {
        hotText2 = text300 + vp;
        URL2 = "http://www.voltagepro.com/category/19-300-watt-power-inverters.aspx";
        hotText2A = text300 + tvp;
        URL2A = "http://www.skingcompany.com/300_Watt_Inverters-c53.aspx";
        hotText2B = text400 + tvp;
	   	URL2B = "http://www.skingcompany.com/400_Watt_Inverters-c54.aspx";
        hotText2C = "";
        URL2C = "";
     	surgeValue=300;
     }
     if ((document.forms[0].subtotal2.value > 600) && (document.forms[0].subtotal2.value <= 800))
	 {
        hotText2 = text400 + tvp;
	   	URL2 = "http://www.skingcompany.com/400_Watt_Inverters-c54.aspx";
        hotText2A = text600 + vp;
	   	URL2A = "http://www.voltagepro.com/category/20-600-watt-power-inverters.aspx";
        hotText2B = "";
        URL2B = "";
        hotText2C = "";
        URL2C = "";
     	surgeValue = 400;
     }
     if ((document.forms[0].subtotal2.value > 800) && (document.forms[0].subtotal2.value <= 1200))
	 {
        hotText2 = text600 + vp;
	   	URL2 = "http://www.voltagepro.com/category/20-600-watt-power-inverters.aspx";
        hotText2A = text800 + tvp;
	   	URL2A = "http://www.skingcompany.com/800_Watt_Inverters-c55.aspx";
     	hotText2B = "";
     	URL2B = "";
        hotText2C = "";
     	URL2C = "";
     	surgeValue = 600;
     }
     if ((document.forms[0].subtotal2.value > 1200) && (document.forms[0].subtotal2.value <= 1600))
	 {
        hotText2 = text800 + tvp;
	   	URL2 = "http://www.skingcompany.com/800_Watt_Inverters-c55.aspx";
        hotText2A = text1000 + vp;
	   	URL2A = "http://www.voltagepro.com/category/21-1000-watt-power-inverters.aspx";
        hotText2B = text1200 + tvp;
	   	URL2B = "http://www.skingcompany.com/1200_Watt_Inverters-c56.aspx";
        hotText2C = "";
        URL2C = "";
     	surgeValue = 800;
     }
     if ((document.forms[0].subtotal2.value > 1600) && (document.forms[0].subtotal2.value <= 2000))
	 {
        hotText2 = text1000 + vp;
	   	URL2 = "http://www.voltagepro.com/category/21-1000-watt-power-inverters.aspx";
        hotText2A = text1200 + tvp;
	   	URL2A = "http://www.skingcompany.com/1200_Watt_Inverters-c56.aspx";
        hotText2B = text1750 + vp;
	   	URL2B = "http://www.voltagepro.com/category/23-1750-watt-power-inverters.aspx";
        hotText2C = "";
        URL2C = "";
     	surgeValue = 1000;
     }
     if ((document.forms[0].subtotal2.value > 2000) && (document.forms[0].subtotal2.value <= 2400))
	 {
        hotText2 = text1200 + tvp;
	   	URL2 = "http://www.skingcompany.com/1200_Watt_Inverters-c56.aspx";
        hotText2A = text1500 + vp;
	   	URL2A = "http://www.voltagepro.com/category/22-1500-watt-power-inverters.aspx";
        hotText2C = "";
	   	URL2C = "";
        hotText2B = text1750 + tvp;
        URL2B = "http://www.skingcompany.com/1750_Watt_Inverters-c57.aspx";
     	surgeValue = 1200;
     }
     if ((document.forms[0].subtotal2.value > 2400) && (document.forms[0].subtotal2.value <= 3000))
	 {
        hotText2 = text1500 + vp;
	   	URL2 = "http://www.voltagepro.com/category/22-1500-watt-power-inverters.aspx";
        hotText2A = text1750 + tvp;
        URL2A = "http://www.skingcompany.com/1750_Watt_Inverters-c57.aspx";
        hotText2B = "";
        URL2B = "";
        hotText2C = "";
        URL2C = "";
     	surgeValue = 1500;
     }
     if ((document.forms[0].subtotal2.value > 3000) && (document.forms[0].subtotal2.value <= 4000))
	 {
        hotText2 = text2000 + vp;
        URL2 = "http://www.voltagepro.com/category/24-2000-watt-power-inverters.aspx";
        hotText2A = text2000 + tvp;
        URL2A = "http://www.skingcompany.com/2000_Watt_Inverters-c58.aspx";
        hotText2B = "";
        URL2B = "";
        hotText2C = "";
        URL2C = "";
     	surgeValue = 2000;
     }
     if ((document.forms[0].subtotal2.value > 4000) && (document.forms[0].subtotal2.value <= 6000))
	 {
     	hotText2 = text3000 + tvp;
        URL2 = "http://www.skingcompany.com/3000_Watt_Inverters-c59.aspx";
        hotText2A = text3000 + vp;
        URL2A = "http://www.voltagepro.com/category/25-3000-watt-power-inverters.aspx";
        hotText2B = "";
        URL2B = "";
        hotText2C = "";
        URL2C = "";
     	surgeValue = 3000;
     }
     if ((document.forms[0].subtotal2.value > 6000) && (document.forms[0].subtotal2.value <= 10000))
	 {
     	hotText2 = text5000 + tvp;
        URL2 = "http://www.skingcompany.com/5000_Watt_Inverters-c60.aspx";
        hotText2A = "";
        URL2A = "";
        hotText2B = "";
        URL2B = "";
        hotText2C = "";
        URL2C = "";
     	surgeValue = 5000;
    }
	if (document.forms[0].subtotal2.value > 10000)
	{
    	hotText2="Please click here to contact us";
    	URL2="http://www.skingcompany.com/ContactUs.aspx?Pid=undefined&acts=spec";
    	surgeValue=5000;
    }

    var ns6 = document.getElementById && !document.all;
	var ie = document.all;

	if (ns6)  // document.layers)
	{
		if (surgeValue > contValue)
		{
     			//document.layers['which'].document.open();
     			document.getElementById('which').innerHTML = text + "<b><a href=\"" + URL2 + "\" target=\"new\">" + hotText2 + "</a></b><br />"
                                            + "<b><a href=\"" + URL2A + "\" target=\"new\">" + hotText2A + "</a></b><br />"
                                            + "<b><a href=\"" + URL2B + "\" target=\"new\">" + hotText2B + "</a></b><br />"
                                            + "<b><a href=\"" + URL2C + "\" target=\"new\">" + hotText2C + "</a></b>";
          		//document.layers['which'].document.close();
		}
	    else 
		{
    			//document.getElementById('which').document.open();
    			document.getElementById('which').innerHTML = text + "<b><a href=\"" + URL + "\" target=\"new\">" + hotText + "</a></b><br />"
                                            + "<b><a href=\"" + URLA + "\" target=\"new\">" + hotTextA + "</a></b><br />"
                                            + "<b><a href=\"" + URLB + "\" target=\"new\">" + hotTextB + "</a></b><br />"
                                            + "<b><a href=\"" + URLC + "\" target=\"new\">" + hotTextC + "</a></b>";
			    //document.getElementById('which').document.close();
		}
    }
  	else 
  	{
  		if (surgeValue > contValue)
     			document.all.which.innerHTML = text + "<b><a href=\"" + URL2 + "\" target=\"new\">" + hotText2 + "</a></b><br />"
                                            + "<b><a href=\"" + URL2A + "\" target=\"new\">" + hotText2A + "</a></b><br />"
                                            + "<b><a href=\"" + URL2B + "\" target=\"new\">" + hotText2B + "</a></b><br />"
                                            + "<b><a href=\"" + URL2C + "\" target=\"new\">" + hotText2C + "</a></b>";
	   	
	   	else 
	   		document.all.which.innerHTML = text + "<b><a href=\"" + URL + "\" target=\"new\">" + hotText + "</a></b><br />"
                                            + "<b><a href=\"" + URLA + "\" target=\"new\">" + hotTextA + "</a></b><br />"
                                            + "<b><a href=\"" + URLB + "\" target=\"new\">" + hotTextB + "</a></b><br />"
                                            + "<b><a href=\"" + URLC + "\" target=\"new\">" + hotTextC + "</a></b>";
		
	}	
		




showIt('which');

}




function showIt(layer)
{   
    var ns6 = document.getElementById && !document.all;
	var ie = document.all;
	if(ns6) // document.layers)
        document.getElementById(layer).style.visibility = "visible";
		//(document.layers[layer].visibility="show");
	
	else 
	{	
		if (document.all) 
			(document.all[layer].style.visibility="visible");
	}
}





function calculateSurgeKnown()
{

	if (document.forms[0].surge1a.checked)
		(document.forms[0].surgeneed1.value = document.forms[0].total1.value);
	
	if (document.forms[0].surge1.checked)
		(document.forms[0].surgeneed1.value = (document.forms[0].total1.value * 4));
	
	if (document.forms[0].surge2a.checked)
		(document.forms[0].surgeneed2.value = document.forms[0].total2.value);
		
	if (document.forms[0].surge2.checked)
		(document.forms[0].surgeneed2.value = (document.forms[0].total2.value * 4));
	
	if (document.forms[0].surge3a.checked)
		(document.forms[0].surgeneed3.value = document.forms[0].total3.value);
		
	if (document.forms[0].surge3.checked)
		(document.forms[0].surgeneed3.value = (document.forms[0].total3.value * 4));
	
	if (document.forms[0].surge4a.checked)
		(document.forms[0].surgeneed4.value = document.forms[0].total4.value);
	
	if (document.forms[0].surge4.checked)
		(document.forms[0].surgeneed4.value = (document.forms[0].total4.value * 4));
	
	if (document.forms[0].surge5a.checked)
		(document.forms[0].surgeneed5.value = document.forms[0].total5.value);
		
	if (document.forms[0].surge5.checked)
		(document.forms[0].surgeneed5.value = (document.forms[0].total5.value * 4));
	

document.forms[0].subtotal.value = (eval(document.forms[0].total1.value) + eval(document.forms[0].total2.value) + eval(document.forms[0].total3.value) + eval(document.forms[0].total4.value) + eval(document.forms[0].total5.value));
document.forms[0].subtotal2.value = (eval(document.forms[0].surgeneed1.value) + eval(document.forms[0].surgeneed2.value) + eval(document.forms[0].surgeneed3.value) + eval(document.forms[0].surgeneed4.value) + eval(document.forms[0].surgeneed5.value));
document.forms[0].dci.value = (document.forms[0].subtotal.value / 10);
document.forms[0].dcis.value = (document.forms[0].subtotal2.value / 10);
//document.forms[0].OhmsPerFoot.value = eval(0.360000 / (eval(document.forms[0].dci.value) * eval(document.forms[0].DesiredLength.value * 2)));

document.forms[0].CMArea.value = eval((10.75 * eval(document.forms[0].dci.value) * eval(document.forms[0].DesiredLength.value * 2))/.36);

	if ((eval(document.forms[0].CMArea.value) <= 2336) && (eval(document.forms[0].dci.value) <= 25)) 
		(document.forms[0].WireSizeNeeded.value = 16);
	else 
		if ((eval(document.forms[0].CMArea.value) <= 3702) && (eval(document.forms[0].dci.value) <= 35))
			(document.forms[0].WireSizeNeeded.value = 14);
		else 
			if ((eval(document.forms[0].CMArea.value) <= 5833) && (eval(document.forms[0].dci.value) <= 45))
				(document.forms[0].WireSizeNeeded.value = 12);
			else
				if ((eval(document.forms[0].CMArea.value) <= 9343) && (eval(document.forms[0].dci.value) <= 60))
					(document.forms[0].WireSizeNeeded.value = 10);
				else 
					if ((eval(document.forms[0].CMArea.value) <= 14810) && (eval(document.forms[0].dci.value) <= 80))
						(document.forms[0].WireSizeNeeded.value = 8);
					else 
						if ((eval(document.forms[0].CMArea.value) <= 24538) && (eval(document.forms[0].dci.value) <= 120))
							(document.forms[0].WireSizeNeeded.value = 6);
						else 
							if ((eval(document.forms[0].CMArea.value) <= 37360) && (eval(document.forms[0].dci.value) <= 160))
								(document.forms[0].WireSizeNeeded.value = 4);
							else 
								if ((eval(document.forms[0].CMArea.value) <= 62450) && (eval(document.forms[0].dci.value) <= 210))
									(document.forms[0].WireSizeNeeded.value = 2);
								else 
									if ((eval(document.forms[0].CMArea.value) <= 77790) && (eval(document.forms[0].dci.value) <= 245))
										(document.forms[0].WireSizeNeeded.value = 1);
									else 
										if ((eval(document.forms[0].CMArea.value) <= 98980) && (eval(document.forms[0].dci.value) <= 285))
											(document.forms[0].WireSizeNeeded.value = 0);
										else 
											if ((eval(document.forms[0].CMArea.value) <= 125100) && (eval(document.forms[0].dci.value) <= 330))
												(document.forms[0].WireSizeNeeded.value = "00");
											else 
												if ((eval(document.forms[0].CMArea.value) <= 158600) && (eval(document.forms[0].dci.value) <= 385))
													(document.forms[0].WireSizeNeeded.value = "000");
												else 
													if ((eval(document.forms[0].CMArea.value) <= 205500) && (eval(document.forms[0].dci.value) <= 445))
														(document.forms[0].WireSizeNeeded.value = "0000");
													else
														(document.forms[0].WireSizeNeeded.value = "Too Big");
													


testIt()

}






function calculateA()
{

	if (document.forms[0].amps1.value > 0)
	{
		(document.forms[0].total1.value = document.forms[0].amps1.value * 120) 
		&& (document.forms[0].watts1.value = document.forms[0].amps1.value * 120)
	}
	else 
	{	(document.forms[0].total1.value = 0) &&
		(document.forms[0].amps1.value = 0) &&
		(document.forms[0].watts1.value = 0)
	}
	if (document.forms[0].amps2.value > 0)
	{
		(document.forms[0].total2.value = document.forms[0].amps2.value * 120) 
		&& (document.forms[0].watts2.value = document.forms[0].amps2.value * 120)
	}
	else 
	{	(document.forms[0].total2.value = 0) &&
		(document.forms[0].amps2.value = 0) &&
		(document.forms[0].watts2.value = 0)
	}
	if (document.forms[0].amps3.value > 0)
	{
		(document.forms[0].total3.value = document.forms[0].amps3.value * 120) 
		&& (document.forms[0].watts3.value = document.forms[0].amps3.value * 120)
	}
	else 
	{	(document.forms[0].total3.value = 0) &&
		(document.forms[0].amps3.value = 0) &&
		(document.forms[0].watts3.value = 0)
	}
	if (document.forms[0].amps4.value > 0)
	{
		(document.forms[0].total4.value = document.forms[0].amps4.value * 120) 
		&& (document.forms[0].watts4.value = document.forms[0].amps4.value * 120)
	}
	else 
	{	(document.forms[0].total4.value = 0) &&
		(document.forms[0].amps4.value = 0) &&
		(document.forms[0].watts4.value = 0)
	}
	if (document.forms[0].amps5.value > 0)
	{
		(document.forms[0].total5.value = document.forms[0].amps5.value * 120) 
		&& (document.forms[0].watts5.value = document.forms[0].amps5.value * 120)
	}
	else 
	{	(document.forms[0].total5.value = 0) &&
		(document.forms[0].amps5.value = 0) &&
		(document.forms[0].watts5.value = 0)
	}
		
calculateSurgeKnown()
}




function calculate()
{

	if (document.forms[0].watts1.value > 0){
		(document.forms[0].total1.value = document.forms[0].watts1.value) 
			&& (document.forms[0].amps1.value = document.forms[0].watts1.value / 120)}
	else {(document.forms[0].total1.value = 0) &&
			(document.forms[0].amps1.value = 0) &&
			(document.forms[0].watts1.value = 0)}
		
	if (document.forms[0].watts2.value > 0){
		(document.forms[0].total2.value = document.forms[0].watts2.value) 
		&& (document.forms[0].amps2.value = document.forms[0].watts2.value / 120)}
	else {(document.forms[0].total2.value = 0) &&
			(document.forms[0].amps2.value = 0) &&
			(document.forms[0].watts2.value = 0)}
	
	if (document.forms[0].watts3.value > 0){
		(document.forms[0].total3.value = document.forms[0].watts3.value) 
		&& (document.forms[0].amps3.value = document.forms[0].watts3.value / 120)}
	else {(document.forms[0].total3.value = 0) &&
			(document.forms[0].amps3.value = 0) &&
			(document.forms[0].watts3.value = 0)}

	if (document.forms[0].watts4.value > 0){
		(document.forms[0].total4.value = document.forms[0].watts4.value) 
		&& (document.forms[0].amps4.value = document.forms[0].watts4.value / 120)}
	else {(document.forms[0].total4.value = 0) &&
			(document.forms[0].amps4.value = 0) &&
			(document.forms[0].watts4.value = 0)}
			
	if (document.forms[0].watts5.value > 0){
		(document.forms[0].total5.value = document.forms[0].watts5.value) 
		&& (document.forms[0].amps5.value = document.forms[0].watts5.value / 120)}
	else {(document.forms[0].total5.value = 0) &&
			(document.forms[0].amps5.value = 0) &&
			(document.forms[0].watts5.value = 0)}

calculateSurgeKnown()



}

function init() {

  var img;

  var ns6 = document.getElementById && !document.all;
	var ie = document.all;

  // Find the position of the embedded image and move bar accordingly, note
  // that we have to adjust for the table's cell padding.

  img = getImage("placeholder");
  if (ns6){ // document.layers){
  document.which.moveTo(getImagePageLeft(img) - 2, getImagePageTop(img) - 2);
  }
  
}
// End -->

