    function setplaying(id) { 
        
            // Set up the request
            var xmlhttp =  new XMLHttpRequest();
            xmlhttp.open('POST', '/index/inc/games-playing.php', true);
            
            // The callback function
            xmlhttp.onreadystatechange = function() {
                if (xmlhttp.readyState == 4) {
                    if (xmlhttp.status == 200) {
                        var response_stat = xmlhttp.responseXML.getElementsByTagName('updated')[0].firstChild.data;
                        if (response_stat == 1) {
                            alert('Updated your play list');
                        } else {
                            alert('Error: ' + xmlhttp.responseXML.getElementsByTagName('error')[0].firstChild.data + '.');
                        }
                    }
                }
            }
            
            // Send the POST request
            xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
            xmlhttp.send('row=' + id);

    }