/**
* function to set the Counter
*/
function setCounter(cntr)
{
    var counterSetVariable = cntr;
    
    $.ajax({
        type: 'POST',
        url: 'counter.php',
        data: 'set_counter='+counterSetVariable,
        
    });
}
/**
* function to get the Counter
*/
function getCounter(cntrr)
{
    var counterGetVariable = cntrr;
    
    $.ajax({
        type: 'POST',
        url: 'counter.php',
        data: 'get_counter='+counterGetVariable,
        success: function(msg){
         alert( "Imate klikova: " + msg );
       }
    });
}

/** 
*function to refresh Counter 
*/
function getrefresh(cntrr)
{
    
    var counterGetVariable = cntrr;
    
    $.ajax({
        url: "",
        context: document.body,
        success: function(s,x){
        $(this).html(s);
  }
});
}




