


// Show/Hide Door 1 Other Size

function show_hide_door1() 
{
	      if(document.getElementById("LargeDoor1W").value == "Other Size"){
		  		document.getElementById("largeDoor1Other").style.visibility="visible";
				
			}
          else document.getElementById("largeDoor1Other").style.visibility="hidden";
}


// Show/Hide Door 2 Other Size

function show_hide_door2() 
{
	      if(document.getElementById("LargeDoor2W").value == "Other Size"){
		  		document.getElementById("largeDoor2Other").style.visibility="visible";
				
			}
          else document.getElementById("largeDoor2Other").style.visibility="hidden";
}

// Show/Hide Door 3 Other Size

function show_hide_door3() 
{
	      if(document.getElementById("LargeDoor3W").value == "Other Size"){
		  		document.getElementById("largeDoor3Other").style.visibility="visible";
				
			}
          else document.getElementById("largeDoor3Other").style.visibility="hidden";
}

// Agree to Terms (Checkbox)

var checkobj

function agreesubmit(el){
checkobj=el
if (document.all||document.getElementById){
for (i=0;i<checkobj.form.length;i++){  //hunt down submit button
var tempobj=checkobj.form.elements[i]
if(tempobj.type.toLowerCase()=="submit")
tempobj.disabled=!checkobj.checked
}
}
}

function defaultagree(el){
if (!document.all&&!document.getElementById){
if (window.checkobj&&checkobj.checked)
return true
else{
alert("Please read/accept terms to submit form")
return false
}
}
}





// Hide incompatible overhead door sizes
function SelectLargeDoorSize(){

	var w1=document.getElementById("LargeDoor1W");
	var w2=document.getElementById("LargeDoor2W");
	var w3=document.getElementById("LargeDoor3W");
	var x=document.getElementById("Height").selectedIndex;

	var height_var =document.getElementById("Height")[x].value;

	while(w1.length > 0)w1.remove(0);
	while(w2.length > 0)w2.remove(0);
	while(w3.length > 0)w3.remove(0);

	var y1_none =document.createElement('option');y1_none.text ="- None -";y1_none.value="- None -";
	var y1_8_7  =document.createElement('option'); y1_8_7.text ="8' W x 7' H";y1_8_7.value="8' W x 7' H";
	var y1_9_7  =document.createElement('option'); y1_9_7.text ="9' W x 7' H";y1_9_7.value="9' W x 7' H";
	var y1_16_7 =document.createElement('option');y1_16_7.text ="16' W x 7' H";y1_16_7.value="16' W x 7' H";
	var y1_9_8  =document.createElement('option');y1_9_8.text="9' W x 8' H";  y1_9_8.value="9' W x 8' H";
	var y1_10_10=document.createElement('option');y1_10_10.text="10' W x 10' H";y1_10_10.value="10' W x 10' H";
	var y1_16_8 =document.createElement('option');y1_16_8.text="16' W x 8' H"; y1_16_8.value="16' W x 8' H";
	var y1_other=document.createElement('option');y1_other.text="Other Size";y1_other.value="Other Size";

	var y2_none =document.createElement('option');y2_none.text ="- None -";y2_none.value="- None -";
	var y2_8_7  =document.createElement('option');y2_8_7.text ="8' W x 7' H";y2_8_7.value="8' W x 7' H";
	var y2_9_7  =document.createElement('option');y2_9_7.text ="9' W x 7' H";y2_9_7.value="9' W x 7' H";
	var y2_16_7 =document.createElement('option');y2_16_7.text ="16' W x 7' H";y2_16_7.value="16' W x 7' H";
	var y2_9_8  =document.createElement('option');y2_9_8.text="9' W x 8' H";  y2_9_8.value="9' W x 8' H";
	var y2_10_10=document.createElement('option');y2_10_10.text="10' W x 10' H";y2_10_10.value="10' W x 10' H";
	var y2_16_8 =document.createElement('option');y2_16_8.text="16' W x 8' H"; y2_16_8.value="16' W x 8' H";
	var y2_other=document.createElement('option');y2_other.text="Other Size";y2_other.value="Other Size";

	var y3_none =document.createElement('option');y3_none.text ="- None -";y3_none.value="- None -";
	var y3_8_7  =document.createElement('option'); y3_8_7.text ="8' W x 7' H";y3_8_7.value="8' W x 7' H";
	var y3_9_7  =document.createElement('option'); y3_9_7.text ="9' W x 7' H";y3_9_7.value="9' W x 7' H";
	var y3_16_7 =document.createElement('option');y3_16_7.text ="16' W x 7' H";y3_16_7.value="16' W x 7' H";
	var y3_9_8  =document.createElement('option');y3_9_8.text="9' W x 8' H";  y3_9_8.value="9' W x 8' H";
	var y3_10_10=document.createElement('option');y3_10_10.text="10' W x 10' H";y3_10_10.value="10' W x 10' H";
	var y3_16_8 =document.createElement('option');y3_16_8.text="16' W x 8' H"; y3_16_8.value="16' W x 8' H";
	var y3_other=document.createElement('option');y3_other.text="Other Size";y3_other.value="Other Size";

 
	try {w1.add(y1_none,null);  w2.add(y2_none,null);  w3.add(y3_none,null);}// standards compliant
  catch(ex) {w1.add(y1_none);  w2.add(y2_none);  w3.add(y3_none);}         // IE only
	
	if(height_var == 8){
    try{
          w1.add(y1_8_7,null);   w2.add(y2_8_7,null);   w3.add(y3_8_7,null);
          w1.add(y1_9_7,null);   w2.add(y2_9_7,null);   w3.add(y3_9_7,null);
          w1.add(y1_16_7,null);  w2.add(y2_16_7,null);  w3.add(y3_16_7,null);
     }
     catch(ex)
     {
          w1.add(y1_8_7);   w2.add(y2_8_7);   w3.add(y3_8_7);
          w1.add(y1_9_7);   w2.add(y2_9_7);   w3.add(y3_9_7);
          w1.add(y1_16_7);  w2.add(y2_16_7);  w3.add(y3_16_7);
     }
	}

	if(height_var == 9){
    try{
        w1.add(y1_8_7,null);   w2.add(y2_8_7,null);   w3.add(y3_8_7,null);
        w1.add(y1_9_7,null);   w2.add(y2_9_7,null);   w3.add(y3_9_7,null);
        w1.add(y1_16_7,null);  w2.add(y2_16_7,null);  w3.add(y3_16_7,null);
     }
     catch(ex)
     {
        w1.add(y1_8_7);   w2.add(y2_8_7);   w3.add(y3_8_7);
        w1.add(y1_9_7);   w2.add(y2_9_7);   w3.add(y3_9_7);
        w1.add(y1_16_7);  w2.add(y2_16_7);  w3.add(y3_16_7);
     }
	}

	if(height_var == 10){
    try{
        w1.add(y1_8_7,null);   w2.add(y2_8_7,null);   w3.add(y3_8_7,null);
        w1.add(y1_9_7,null);   w2.add(y2_9_7,null);   w3.add(y3_9_7,null);
        w1.add(y1_9_8,null);   w2.add(y2_9_8,null);   w3.add(y3_9_8,null);
        w1.add(y1_16_7,null);  w2.add(y2_16_7,null);  w3.add(y3_16_7,null);
        w1.add(y1_16_8,null);  w2.add(y2_16_8,null);  w3.add(y3_16_8,null);
     }
     catch(ex)
     {
        w1.add(y1_8_7);   w2.add(y2_8_7);   w3.add(y3_8_7);
        w1.add(y1_9_7);   w2.add(y2_9_7);   w3.add(y3_9_7);
        w1.add(y1_9_8);   w2.add(y2_9_8);   w3.add(y3_9_8);
        w1.add(y1_16_7);  w2.add(y2_16_7);  w3.add(y3_16_7);
        w1.add(y1_16_8);  w2.add(y2_16_8);  w3.add(y3_16_8);
     }
	}

	if(height_var > 10){
    try{
        w1.add(y1_8_7,null);   w2.add(y2_8_7,null);   w3.add(y3_8_7,null);
        w1.add(y1_9_7,null);   w2.add(y2_9_7,null);   w3.add(y3_9_7,null);
        w1.add(y1_9_8,null);   w2.add(y2_9_8,null);   w3.add(y3_9_8,null);
        w1.add(y1_10_10,null); w2.add(y2_10_10,null); w3.add(y3_10_10,null);
        w1.add(y1_16_7,null);  w2.add(y2_16_7,null);  w3.add(y3_16_7,null);
        w1.add(y1_16_8,null);  w2.add(y2_16_8,null);  w3.add(y3_16_8,null);
     }
     catch(ex)
     {
        w1.add(y1_8_7);   w2.add(y2_8_7);   w3.add(y3_8_7);
        w1.add(y1_9_7);   w2.add(y2_9_7);   w3.add(y3_9_7);
        w1.add(y1_9_8);   w2.add(y2_9_8);   w3.add(y3_9_8);
        w1.add(y1_10_10); w2.add(y2_10_10); w3.add(y3_10_10);
        w1.add(y1_16_7);  w2.add(y2_16_7);  w3.add(y3_16_7);
        w1.add(y1_16_8);  w2.add(y2_16_8);  w3.add(y3_16_8);
     }
	}
	
	try{w1.add(y1_other,null); w2.add(y2_other,null); w3.add(y3_other,null);}
     catch(ex){w1.add(y1_other); w2.add(y2_other); w3.add(y3_other);}
}
/*
function SelectLargeDoorSize(){

removeAllOptions(document.estimate_form.LargeDoor1W);
removeAllOptions(document.estimate_form.LargeDoor2W);
removeAllOptions(document.estimate_form.LargeDoor3W);

if(document.estimate_form.Height.value == 8){
addOption(document.estimate_form.LargeDoor1W,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor1W,"8' W x 7' H", "8' W x 7' H");
addOption(document.estimate_form.LargeDoor1W,"9' W x 7' H", "9' W x 7' H");
addOption(document.estimate_form.LargeDoor1W,"16' W x 7' H", "16' W x 7' H");
addOption(document.estimate_form.LargeDoor1W, "Other Size", "Other Size");

addOption(document.estimate_form.LargeDoor2W,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor2W,"8' W x 7' H", "8' W x 7' H");
addOption(document.estimate_form.LargeDoor2W,"9' W x 7' H", "9' W x 7' H");
addOption(document.estimate_form.LargeDoor2W,"16' W x 7' H", "16' W x 7' H");
addOption(document.estimate_form.LargeDoor2W, "Other Size", "Other Size");

addOption(document.estimate_form.LargeDoor3W,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor3W,"8' W x 7' H", "8' W x 7' H");
addOption(document.estimate_form.LargeDoor3W,"9' W x 7' H", "9' W x 7' H");
addOption(document.estimate_form.LargeDoor3W,"16' W x 7' H", "16' W x 7' H");
addOption(document.estimate_form.LargeDoor3W, "Other Size", "Other Size");
}

if(document.estimate_form.Height.value == 9){
addOption(document.estimate_form.LargeDoor1W,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor1W,"8' W x 7' H", "8' W x 7' H");
addOption(document.estimate_form.LargeDoor1W,"9' W x 7' H", "9' W x 7' H");
addOption(document.estimate_form.LargeDoor1W,"16' W x 7' H", "16' W x 7' H");
addOption(document.estimate_form.LargeDoor1W, "Other Size", "Other Size");

addOption(document.estimate_form.LargeDoor2W,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor2W,"8' W x 7' H", "8' W x 7' H");
addOption(document.estimate_form.LargeDoor2W,"9' W x 7' H", "9' W x 7' H");
addOption(document.estimate_form.LargeDoor2W,"16' W x 7' H", "16' W x 7' H");
addOption(document.estimate_form.LargeDoor2W, "Other Size", "Other Size");

addOption(document.estimate_form.LargeDoor3W,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor3W,"8' W x 7' H", "8' W x 7' H");
addOption(document.estimate_form.LargeDoor3W,"9' W x 7' H", "9' W x 7' H");
addOption(document.estimate_form.LargeDoor3W,"16' W x 7' H", "16' W x 7' H");
addOption(document.estimate_form.LargeDoor3W, "Other Size", "Other Size");
}

if(document.estimate_form.Height.value == 10){
addOption(document.estimate_form.LargeDoor1W,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor1W,"8' W x 7' H", "8' W x 7' H");
addOption(document.estimate_form.LargeDoor1W,"9' W x 7' H", "9' W x 7' H");
addOption(document.estimate_form.LargeDoor1W,"9' W x 8' H", "9' W x 8' H");
addOption(document.estimate_form.LargeDoor1W,"16' W x 7' H", "16' W x 7' H");
addOption(document.estimate_form.LargeDoor1W,"16' W x 8' H", "16' W x 8' H");
addOption(document.estimate_form.LargeDoor1W, "Other Size", "Other Size");

addOption(document.estimate_form.LargeDoor2W,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor2W,"8' W x 7' H", "8' W x 7' H");
addOption(document.estimate_form.LargeDoor2W,"9' W x 7' H", "9' W x 7' H");
addOption(document.estimate_form.LargeDoor2W,"9' W x 8' H", "9' W x 8' H");
addOption(document.estimate_form.LargeDoor2W,"16' W x 7' H", "16' W x 7' H");
addOption(document.estimate_form.LargeDoor2W,"16' W x 8' H", "16' W x 8' H");
addOption(document.estimate_form.LargeDoor2W, "Other Size", "Other Size");

addOption(document.estimate_form.LargeDoor3W,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor3W,"8' W x 7' H", "8' W x 7' H");
addOption(document.estimate_form.LargeDoor3W,"9' W x 7' H", "9' W x 7' H");
addOption(document.estimate_form.LargeDoor3W,"9' W x 8' H", "9' W x 8' H");
addOption(document.estimate_form.LargeDoor3W,"16' W x 7' H", "16' W x 7' H");
addOption(document.estimate_form.LargeDoor3W,"16' W x 8' H", "16' W x 8' H");
addOption(document.estimate_form.LargeDoor3W, "Other Size", "Other Size");
}

if(document.estimate_form.Height.value > 10){
addOption(document.estimate_form.LargeDoor1W,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor1W,"8' W x 7' H", "8' W x 7' H");
addOption(document.estimate_form.LargeDoor1W,"9' W x 7' H", "9' W x 7' H");
addOption(document.estimate_form.LargeDoor1W,"9' W x 8' H", "9' W x 8' H");
addOption(document.estimate_form.LargeDoor1W,"10' W x 10' H", "10' W x 10' H");
addOption(document.estimate_form.LargeDoor1W,"16' W x 7' H", "16' W x 7' H");
addOption(document.estimate_form.LargeDoor1W,"16' W x 8' H", "16' W x 8' H");
addOption(document.estimate_form.LargeDoor1W, "Other Size", "Other Size");

addOption(document.estimate_form.LargeDoor2W,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor2W,"8' W x 7' H", "8' W x 7' H");
addOption(document.estimate_form.LargeDoor2W,"9' W x 7' H", "9' W x 7' H");
addOption(document.estimate_form.LargeDoor2W,"9' W x 8' H", "9' W x 8' H");
addOption(document.estimate_form.LargeDoor2W,"10' W x 10' H", "10' W x 10' H");
addOption(document.estimate_form.LargeDoor2W,"16' W x 7' H", "16' W x 7' H");
addOption(document.estimate_form.LargeDoor2W,"16' W x 8' H", "16' W x 8' H");
addOption(document.estimate_form.LargeDoor2W, "Other Size", "Other Size");

addOption(document.estimate_form.LargeDoor3W,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor3W,"8' W x 7' H", "8' W x 7' H");
addOption(document.estimate_form.LargeDoor3W,"9' W x 7' H", "9' W x 7' H");
addOption(document.estimate_form.LargeDoor3W,"9' W x 8' H", "9' W x 8' H");
addOption(document.estimate_form.LargeDoor3W,"10' W x 10' H", "10' W x 10' H");
addOption(document.estimate_form.LargeDoor3W,"16' W x 7' H", "16' W x 7' H");
addOption(document.estimate_form.LargeDoor3W,"16' W x 8' H", "16' W x 8' H");
addOption(document.estimate_form.LargeDoor3W, "Other Size", "Other Size");
}

}
*/

// Polebarn Door Height (Hide incompatible sizes)
function SelectPolebarnDoorHeight(){

	var w1=document.getElementById("LargeDoor1H");
	var w2=document.getElementById("LargeDoor2H");
	var w3=document.getElementById("LargeDoor3H");

	var x=document.getElementById("Height").selectedIndex;
	var height_var =document.getElementById("Height")[x].value;

	while(w1.length > 0)w1.remove(0);
	while(w2.length > 0)w2.remove(0);
	while(w3.length > 0)w3.remove(0);
	
		var y1_none  =document.createElement('option'); y1_none.text ="- None -";y1_none.value="- None -";
		var y1_max   =document.createElement('option'); y1_max.text ="Maximum";  y1_max.value="Maximum";
		var y1_7   =document.createElement('option');   y1_7 .text =" 7 ft.";    y1_7 .value=" 7 ft.";
		var y1_8   =document.createElement('option');   y1_8 .text =" 8 ft.";    y1_8 .value=" 8 ft.";
		var y1_9   =document.createElement('option');   y1_9 .text =" 9 ft.";    y1_9 .value=" 9 ft.";
		var y1_10  =document.createElement('option');   y1_10.text ="10 ft.";    y1_10.value="10 ft.";
		var y1_11  =document.createElement('option');   y1_11.text ="11 ft.";    y1_11.value="11 ft.";
		var y1_12  =document.createElement('option');   y1_12.text ="12 ft.";    y1_12.value="12 ft.";
		var y1_13  =document.createElement('option');   y1_13.text ="13 ft.";    y1_13.value="13 ft.";
		var y1_14  =document.createElement('option');   y1_14.text ="14 ft.";    y1_14.value="14 ft.";
		var y1_15  =document.createElement('option');   y1_15.text ="15 ft.";    y1_15.value="15 ft.";
		var y1_16  =document.createElement('option');   y1_16.text ="16 ft.";    y1_16.value="16 ft.";
		var y1_17  =document.createElement('option');   y1_17.text ="17 ft.";    y1_17.value="17 ft.";
		var y1_18  =document.createElement('option');   y1_18.text ="18 ft.";    y1_18.value="18 ft.";
		
		var y2_none  =document.createElement('option'); y2_none.text ="- None -";y2_none.value="- None -";
		var y2_max   =document.createElement('option'); y2_max.text ="Maximum";  y2_max.value="Maximum";
		var y2_7   =document.createElement('option');   y2_7 .text =" 7 ft.";    y2_7 .value=" 7 ft.";
		var y2_8   =document.createElement('option');   y2_8 .text =" 8 ft.";    y2_8 .value=" 8 ft.";
		var y2_9   =document.createElement('option');   y2_9 .text =" 9 ft.";    y2_9 .value=" 9 ft.";
		var y2_10  =document.createElement('option');   y2_10.text ="10 ft.";    y2_10.value="10 ft.";
		var y2_11  =document.createElement('option');   y2_11.text ="11 ft.";    y2_11.value="11 ft.";
		var y2_12  =document.createElement('option');   y2_12.text ="12 ft.";    y2_12.value="12 ft.";
		var y2_13  =document.createElement('option');   y2_13.text ="13 ft.";    y2_13.value="13 ft.";
		var y2_14  =document.createElement('option');   y2_14.text ="14 ft.";    y2_14.value="14 ft.";
		var y2_15  =document.createElement('option');   y2_15.text ="15 ft.";    y2_15.value="15 ft.";
		var y2_16  =document.createElement('option');   y2_16.text ="16 ft.";    y2_16.value="16 ft.";
		var y2_17  =document.createElement('option');   y2_17.text ="17 ft.";    y2_17.value="17 ft.";
		var y2_18  =document.createElement('option');   y2_18.text ="18 ft.";    y2_18.value="18 ft.";
		
		var y3_none  =document.createElement('option'); y3_none.text ="- None -";y3_none.value="- None -";
		var y3_max   =document.createElement('option'); y3_max.text ="Maximum";  y3_max.value="Maximum";
		var y3_7   =document.createElement('option');   y3_7 .text =" 7 ft.";    y3_7 .value=" 7 ft.";
		var y3_8   =document.createElement('option');   y3_8 .text =" 8 ft.";    y3_8 .value=" 8 ft.";
		var y3_9   =document.createElement('option');   y3_9 .text =" 9 ft.";    y3_9 .value=" 9 ft.";
		var y3_10  =document.createElement('option');   y3_10.text ="10 ft.";    y3_10.value="10 ft.";
		var y3_11  =document.createElement('option');   y3_11.text ="11 ft.";    y3_11.value="11 ft.";
		var y3_12  =document.createElement('option');   y3_12.text ="12 ft.";    y3_12.value="12 ft.";
		var y3_13  =document.createElement('option');   y3_13.text ="13 ft.";    y3_13.value="13 ft.";
		var y3_14  =document.createElement('option');   y3_14.text ="14 ft.";    y3_14.value="14 ft.";
		var y3_15  =document.createElement('option');   y3_15.text ="15 ft.";    y3_15.value="15 ft.";
		var y3_16  =document.createElement('option');   y3_16.text ="16 ft.";    y3_16.value="16 ft.";
		var y3_17  =document.createElement('option');   y3_17.text ="17 ft.";    y3_17.value="17 ft.";
		var y3_18  =document.createElement('option');   y3_18.text ="18 ft.";    y3_18.value="18 ft.";

	try {
			w1.add(y1_none,null);  w2.add(y2_none,null);  w3.add(y3_none,null);
			w1.add(y1_max,null);  w2.add(y2_max,null);  w3.add(y3_max,null);
		}// standards compliant
  catch(ex) {
  				w1.add(y1_none);  w2.add(y2_none);  w3.add(y3_none);
					w1.add(y1_max);  w2.add(y2_max);  w3.add(y3_max);
			}         // IE only

	if(height_var >= 8){
		try {	w1.add(y1_7,null);  w2.add(y2_7,null);  w3.add(y3_7,null);}// standards compliant
  catch(ex) {w1.add(y1_7);  w2.add(y2_7);  w3.add(y3_7);}
	}

	if(height_var >= 9){
		
		try {	w1.add(y1_8,null);  w2.add(y2_8,null);  w3.add(y3_8,null);}// standards compliant
  	catch(ex) {w1.add(y1_8);  w2.add(y2_8);  w3.add(y3_8);}
	}

	if(height_var >= 12){
		
		try {	w1.add(y1_9,null);  w2.add(y2_9,null);  w3.add(y3_9,null);}// standards compliant
  	catch(ex) {w1.add(y1_9);  w2.add(y2_9);  w3.add(y3_9);}
  
  
		try {	w1.add(y1_10,null);  w2.add(y2_10,null);  w3.add(y3_10,null);}// standards compliant
  	catch(ex) {w1.add(y1_10);  w2.add(y2_10);  w3.add(y3_10);}
	}

	if(height_var >= 14){
		
		
		try {	w1.add(y1_11,null);  w2.add(y2_11,null);  w3.add(y3_11,null);}// standards compliant
  	catch(ex) {w1.add(y1_11);  w2.add(y2_11);  w3.add(y3_11);}
  	
  	
		try {	w1.add(y1_12,null);  w2.add(y2_12,null);  w3.add(y3_12,null);}// standards compliant
  	catch(ex) {w1.add(y1_12);  w2.add(y2_12);  w3.add(y3_12);}
	}

	if(height_var >= 16){
		
		
		try {	w1.add(y1_13,null);  w2.add(y2_13,null);  w3.add(y3_13,null);}// standards compliant
  	catch(ex) {w1.add(y1_13);  w2.add(y2_13);  w3.add(y3_13);}
  
		try {	w1.add(y1_14,null);  w2.add(y2_14,null);  w3.add(y3_14,null);}// standards compliant
  	catch(ex) {w1.add(y1_14);  w2.add(y2_14);  w3.add(y3_14);}
	}

	if(height_var >= 18){
		
		
		try {	w1.add(y1_15,null);  w2.add(y2_15,null);  w3.add(y3_15,null);}// standards compliant
  	catch(ex) {w1.add(y1_15);  w2.add(y2_15);  w3.add(y3_15);}
  
		try {	w1.add(y1_16,null);  w2.add(y2_16,null);  w3.add(y3_16,null);}// standards compliant
  	catch(ex) {w1.add(y1_16);  w2.add(y2_16);  w3.add(y3_16);}
	}

	if(height_var >= 20){
		
		try {	w1.add(y1_17,null);  w2.add(y2_17,null);  w3.add(y3_17,null);}// standards compliant
  	catch(ex) {w1.add(y1_17);  w2.add(y2_17);  w3.add(y3_17);}
  
		try {	w1.add(y1_18,null);  w2.add(y2_18,null);  w3.add(y3_18,null);}// standards compliant
  	catch(ex) {w1.add(y1_18);  w2.add(y2_18);  w3.add(y3_18);}
	}


}
/*
function SelectPolebarnDoorHeight(){

removeAllOptions(document.estimate_form.LargeDoor1H);
removeAllOptions(document.estimate_form.LargeDoor2H);
removeAllOptions(document.estimate_form.LargeDoor3H);

if(document.estimate_form.Height.value == 8){
addOption(document.estimate_form.LargeDoor1H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor1H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor1H,"7 ft.", "7 ft.");

addOption(document.estimate_form.LargeDoor2H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor2H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor2H,"7 ft.", "7 ft.");

addOption(document.estimate_form.LargeDoor3H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor3H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor3H,"7 ft.", "7 ft.");
}

if(document.estimate_form.Height.value == 9){
addOption(document.estimate_form.LargeDoor1H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor1H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor1H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor1H,"8 ft.", "8 ft.");

addOption(document.estimate_form.LargeDoor2H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor2H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor2H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor2H,"8 ft.", "8 ft.");

addOption(document.estimate_form.LargeDoor3H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor3H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor3H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor3H,"8 ft.", "8 ft.");
}

if(document.estimate_form.Height.value == 10){
addOption(document.estimate_form.LargeDoor1H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor1H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor1H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor1H,"8 ft.", "8 ft.");

addOption(document.estimate_form.LargeDoor2H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor2H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor2H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor2H,"8 ft.", "8 ft.");

addOption(document.estimate_form.LargeDoor3H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor3H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor3H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor3H,"8 ft.", "8 ft.");
}

if(document.estimate_form.Height.value == 12){
addOption(document.estimate_form.LargeDoor1H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor1H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor1H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor1H,"8 ft.", "8 ft.");
addOption(document.estimate_form.LargeDoor1H,"9 ft.", "9 ft.");
addOption(document.estimate_form.LargeDoor1H,"10 ft.", "10 ft.");

addOption(document.estimate_form.LargeDoor2H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor2H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor2H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor2H,"8 ft.", "8 ft.");
addOption(document.estimate_form.LargeDoor2H,"9 ft.", "9 ft.");
addOption(document.estimate_form.LargeDoor2H,"10 ft.", "10 ft.");

addOption(document.estimate_form.LargeDoor3H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor3H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor3H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor3H,"8 ft.", "8 ft.");
addOption(document.estimate_form.LargeDoor3H,"9 ft.", "9 ft.");
addOption(document.estimate_form.LargeDoor3H,"10 ft.", "10 ft.");
}

if(document.estimate_form.Height.value == 14){
addOption(document.estimate_form.LargeDoor1H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor1H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor1H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor1H,"8 ft.", "8 ft.");
addOption(document.estimate_form.LargeDoor1H,"9 ft.", "9 ft.");
addOption(document.estimate_form.LargeDoor1H,"10 ft.", "10 ft.");
addOption(document.estimate_form.LargeDoor1H,"11 ft.", "11 ft.");
addOption(document.estimate_form.LargeDoor1H,"12 ft.", "12 ft.");

addOption(document.estimate_form.LargeDoor2H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor2H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor2H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor2H,"8 ft.", "8 ft.");
addOption(document.estimate_form.LargeDoor2H,"9 ft.", "9 ft.");
addOption(document.estimate_form.LargeDoor2H,"10 ft.", "10 ft.");
addOption(document.estimate_form.LargeDoor2H,"11 ft.", "11 ft.");
addOption(document.estimate_form.LargeDoor2H,"12 ft.", "12 ft.");

addOption(document.estimate_form.LargeDoor3H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor3H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor3H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor3H,"8 ft.", "8 ft.");
addOption(document.estimate_form.LargeDoor3H,"9 ft.", "9 ft.");
addOption(document.estimate_form.LargeDoor3H,"10 ft.", "10 ft.");
addOption(document.estimate_form.LargeDoor3H,"11 ft.", "11 ft.");
addOption(document.estimate_form.LargeDoor3H,"12 ft.", "12 ft.");
}

if(document.estimate_form.Height.value == 16){
addOption(document.estimate_form.LargeDoor1H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor1H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor1H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor1H,"8 ft.", "8 ft.");
addOption(document.estimate_form.LargeDoor1H,"9 ft.", "9 ft.");
addOption(document.estimate_form.LargeDoor1H,"10 ft.", "10 ft.");
addOption(document.estimate_form.LargeDoor1H,"11 ft.", "11 ft.");
addOption(document.estimate_form.LargeDoor1H,"12 ft.", "12 ft.");
addOption(document.estimate_form.LargeDoor1H,"13 ft.", "13 ft.");
addOption(document.estimate_form.LargeDoor1H,"14 ft.", "14 ft.");

addOption(document.estimate_form.LargeDoor2H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor2H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor2H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor2H,"8 ft.", "8 ft.");
addOption(document.estimate_form.LargeDoor2H,"9 ft.", "9 ft.");
addOption(document.estimate_form.LargeDoor2H,"10 ft.", "10 ft.");
addOption(document.estimate_form.LargeDoor2H,"11 ft.", "11 ft.");
addOption(document.estimate_form.LargeDoor2H,"12 ft.", "12 ft.");
addOption(document.estimate_form.LargeDoor2H,"13 ft.", "13 ft.");
addOption(document.estimate_form.LargeDoor2H,"14 ft.", "14 ft.");

addOption(document.estimate_form.LargeDoor3H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor3H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor3H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor3H,"8 ft.", "8 ft.");
addOption(document.estimate_form.LargeDoor3H,"9 ft.", "9 ft.");
addOption(document.estimate_form.LargeDoor3H,"10 ft.", "10 ft.");
addOption(document.estimate_form.LargeDoor3H,"11 ft.", "11 ft.");
addOption(document.estimate_form.LargeDoor3H,"12 ft.", "12 ft.");
addOption(document.estimate_form.LargeDoor3H,"13 ft.", "13 ft.");
addOption(document.estimate_form.LargeDoor3H,"14 ft.", "14 ft.");
}

if(document.estimate_form.Height.value == 18){
addOption(document.estimate_form.LargeDoor1H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor1H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor1H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor1H,"8 ft.", "8 ft.");
addOption(document.estimate_form.LargeDoor1H,"9 ft.", "9 ft.");
addOption(document.estimate_form.LargeDoor1H,"10 ft.", "10 ft.");
addOption(document.estimate_form.LargeDoor1H,"11 ft.", "11 ft.");
addOption(document.estimate_form.LargeDoor1H,"12 ft.", "12 ft.");
addOption(document.estimate_form.LargeDoor1H,"13 ft.", "13 ft.");
addOption(document.estimate_form.LargeDoor1H,"14 ft.", "14 ft.");
addOption(document.estimate_form.LargeDoor1H,"15 ft.", "15 ft.");
addOption(document.estimate_form.LargeDoor1H,"16 ft.", "16 ft.");

addOption(document.estimate_form.LargeDoor2H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor2H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor2H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor2H,"8 ft.", "8 ft.");
addOption(document.estimate_form.LargeDoor2H,"9 ft.", "9 ft.");
addOption(document.estimate_form.LargeDoor2H,"10 ft.", "10 ft.");
addOption(document.estimate_form.LargeDoor2H,"11 ft.", "11 ft.");
addOption(document.estimate_form.LargeDoor2H,"12 ft.", "12 ft.");
addOption(document.estimate_form.LargeDoor2H,"13 ft.", "13 ft.");
addOption(document.estimate_form.LargeDoor2H,"14 ft.", "14 ft.");
addOption(document.estimate_form.LargeDoor2H,"15 ft.", "15 ft.");
addOption(document.estimate_form.LargeDoor2H,"16 ft.", "16 ft.");

addOption(document.estimate_form.LargeDoor3H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor3H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor3H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor3H,"8 ft.", "8 ft.");
addOption(document.estimate_form.LargeDoor3H,"9 ft.", "9 ft.");
addOption(document.estimate_form.LargeDoor3H,"10 ft.", "10 ft.");
addOption(document.estimate_form.LargeDoor3H,"11 ft.", "11 ft.");
addOption(document.estimate_form.LargeDoor3H,"12 ft.", "12 ft.");
addOption(document.estimate_form.LargeDoor3H,"13 ft.", "13 ft.");
addOption(document.estimate_form.LargeDoor3H,"14 ft.", "14 ft.");
addOption(document.estimate_form.LargeDoor3H,"15 ft.", "15 ft.");
addOption(document.estimate_form.LargeDoor3H,"16 ft.", "16 ft.");
}

if(document.estimate_form.Height.value == 20){
addOption(document.estimate_form.LargeDoor1H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor1H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor1H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor1H,"8 ft.", "8 ft.");
addOption(document.estimate_form.LargeDoor1H,"9 ft.", "9 ft.");
addOption(document.estimate_form.LargeDoor1H,"10 ft.", "10 ft.");
addOption(document.estimate_form.LargeDoor1H,"11 ft.", "11 ft.");
addOption(document.estimate_form.LargeDoor1H,"12 ft.", "12 ft.");
addOption(document.estimate_form.LargeDoor1H,"13 ft.", "13 ft.");
addOption(document.estimate_form.LargeDoor1H,"14 ft.", "14 ft.");
addOption(document.estimate_form.LargeDoor1H,"15 ft.", "15 ft.");
addOption(document.estimate_form.LargeDoor1H,"16 ft.", "16 ft.");
addOption(document.estimate_form.LargeDoor1H,"17 ft.", "17 ft.");
addOption(document.estimate_form.LargeDoor1H,"18 ft.", "18 ft.");

addOption(document.estimate_form.LargeDoor2H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor2H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor2H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor2H,"8 ft.", "8 ft.");
addOption(document.estimate_form.LargeDoor2H,"9 ft.", "9 ft.");
addOption(document.estimate_form.LargeDoor2H,"10 ft.", "10 ft.");
addOption(document.estimate_form.LargeDoor2H,"11 ft.", "11 ft.");
addOption(document.estimate_form.LargeDoor2H,"12 ft.", "12 ft.");
addOption(document.estimate_form.LargeDoor2H,"13 ft.", "13 ft.");
addOption(document.estimate_form.LargeDoor2H,"14 ft.", "14 ft.");
addOption(document.estimate_form.LargeDoor2H,"15 ft.", "15 ft.");
addOption(document.estimate_form.LargeDoor2H,"16 ft.", "16 ft.");
addOption(document.estimate_form.LargeDoor2H,"17 ft.", "17 ft.");
addOption(document.estimate_form.LargeDoor2H,"18 ft.", "18 ft.");

addOption(document.estimate_form.LargeDoor3H,"- None -", "- None -");
addOption(document.estimate_form.LargeDoor3H,"Maximum", "Maximum");
addOption(document.estimate_form.LargeDoor3H,"7 ft.", "7 ft.");
addOption(document.estimate_form.LargeDoor3H,"8 ft.", "8 ft.");
addOption(document.estimate_form.LargeDoor3H,"9 ft.", "9 ft.");
addOption(document.estimate_form.LargeDoor3H,"10 ft.", "10 ft.");
addOption(document.estimate_form.LargeDoor3H,"11 ft.", "11 ft.");
addOption(document.estimate_form.LargeDoor3H,"12 ft.", "12 ft.");
addOption(document.estimate_form.LargeDoor3H,"13 ft.", "13 ft.");
addOption(document.estimate_form.LargeDoor3H,"14 ft.", "14 ft.");
addOption(document.estimate_form.LargeDoor3H,"15 ft.", "15 ft.");
addOption(document.estimate_form.LargeDoor3H,"16 ft.", "16 ft.");
addOption(document.estimate_form.LargeDoor3H,"17 ft.", "17 ft.");
addOption(document.estimate_form.LargeDoor3H,"18 ft.", "18 ft.");
}


}
*/




////////////////// 

function removeAllOptions(selectbox)
{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
	{
		//selectbox.options.remove(i);
		selectbox.remove(i);
	}
}


function addOption(selectbox, value, text )
{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;

	selectbox.options.add(optn);
}

