﻿var ajax = new Array();

function getUsersList(id)
{
    
    if(id!=null)
    {
        document.getElementById('ddl_user').options.length = 0;    // Empty city select box
        
        var index = ajax.length;
        ajax[index] = new sack();
              
        ajax[index].requestFile = "webservices/..";  // Specifying which file to get
        //alert(ajax[index].requestFile);
        ajax[index].onCompletion = function(){ createList(index) };    // Specify function that will be executed after file has been found
        ajax[index].runAJAX();        // Execute AJAX function
        
    }
    else
    {  //Reset The Users Select List
       
    }
}
function createList(index)
{
	var div = document.getElementById('divot_za_popolnuvanje').innerHTML = index;
}
