function AnalyseLayer(nr, toDo){    
    switch (toDo) {
      case 1:
        query = "?aDone="+nr;
        break;
      case 2:
        query = "?aDelete="+nr;
        break;
      case 3:
        query = "?lDelete="+nr;
        break;
    }

    dojo.xhrGet( { 
            
            url: "layerHelper.php"+query, 
            timeout: 5000, // Time in milliseconds
       
            // The LOAD function will be called on a successful response.
            load: function(response, ioArgs) { 
              
            },
    
            // The ERROR function will be called in an error case.
            error: function(response, ioArgs) { 
              console.error("HTTP status code: ", ioArgs.xhr.status); 
              return response; 
              }
    });
}


wipeDone = new Array();


function fullContent(nmb,n){   
    if ( typeof( "tCont"+nmb+"_"+i ) == "undefined")
        return false;
        
    if ( typeof( wipeDone[nmb] ) == "undefined" ) {
       wipeDone[nmb] = 0;  
    }
 
   if(wipeDone[nmb] == 0){
       dojo.fx.wipeIn({node: "tSun"+nmb,duration: 200}).play();
       wipeDone[nmb] = 1;
    }else{
        dojo.fx.wipeOut({node: "tSun"+nmb,duration: 200}).play();
        wipeDone[nmb] = 0;
    }
    
    var i = 1;
    while(i <= n){
        if(wipeDone[nmb] == 0){
            dojo.fx.wipeOut({node: "tCont"+nmb+"_"+i,duration: 200}).play();
            dojo.fx.wipeOut({node: "icon"+nmb+"_"+i,duration: 200}).play();
        }else{
            dojo.fx.wipeIn({node: "icon"+nmb+"_"+i,duration: 200}).play();
            dojo.fx.wipeIn({node: "tCont"+nmb+"_"+i,duration: 200}).play();
            
        }
        i++;
               
    }
}

