var ajax = new sack();

function getZonaList(sel)
{
        var idCode = sel.options[sel.selectedIndex].value;
        document.getElementById('zona').options.length = 0;
        if(idCode.length>0){
                ajax.requestFile = 'models.php?idCode='+idCode;
                ajax.onCompletion = createZona;
                ajax.runAJAX();
        }
}

function createZona()
{
        var obj = document.getElementById('zona');
        eval(ajax.response);
}


function cgetZonaList(sel)
{
        var idCode = sel.options[sel.selectedIndex].value;
        document.getElementById('czona').options.length = 0;
        if(idCode.length>0){
                ajax.requestFile = 'models.php?idCode='+idCode;
                ajax.onCompletion = ccreateZona;
                ajax.runAJAX();
        }
}

function ccreateZona()
{
        var obj = document.getElementById('czona');
        eval(ajax.response);
}

function sgetZonaList(sel)
{
        var idCode = sel.options[sel.selectedIndex].value;
        document.getElementById('szona').options.length = 0;
        if(idCode.length>0){
                ajax.requestFile = 'models.php?idCode='+idCode;
                ajax.onCompletion = screateZona;
                ajax.runAJAX();
        }
}

function screateZona()
{
        var obj = document.getElementById('szona');
        eval(ajax.response);
}


function tgetZonaList(sel)
{
        var idCode = sel.options[sel.selectedIndex].value;
        document.getElementById('tzona').options.length = 0;
        if(idCode.length>0){
                ajax.requestFile = 'models.php?idCode='+idCode;
                ajax.onCompletion = tcreateZona;
                ajax.runAJAX();
        }
}

function tcreateZona()
{
        var obj = document.getElementById('tzona');
        eval(ajax.response);
}


