﻿//wybieramy spoine, potem grupe spoiny
function index3_RodzSpoiny(wybor) {
    if((wybor == "CE 40") || (wybor == "CE 43")) {
        var ce4043 = new Array()
	    ce4043[0] = "grupa I"
	    ce4043[1] = "grupa II"
	    ce4043[2] = "grupa III"
		var i;
		//usuwamy stare opcje
		for(i = document.form1.DDL_Grupa.options.length; i > 0; i--)
		    document.form1.DDL_Grupa.options[i] = null
		//wstawiamy nowe opcje
		for(i = 0; i < ce4043.length; i++) 
		    document.form1.DDL_Grupa.options[i+1] = new Option(ce4043[i], i+1, false)
        document.form1.DDL_Grupa.style.display = "inline"
	}
	else 
	    document.form1.DDL_Grupa.style.display = "none"
}

//jesli nie podano dlugosci szczelin - blokujemy mozliwosc podania rozmiaru szczelin
function index3_DlSzczelin(pole) {
    if(pole.value != "") {
        document.getElementById('DDL_SzerSzczelin').disabled = false        
        document.getElementById('DDL_TypSilikonu').disabled = false
    }
    else {
        document.getElementById('DDL_SzerSzczelin').disabled = true
        document.getElementById('DDL_TypSilikonu').disabled = true
    }
}
