      function nesneyarat() {
          var nesne;
          var tarayici = navigator.appName;
          if(tarayici == "Microsoft Internet Explorer"){
              nesne = new ActiveXObject("Microsoft.XMLHTTP");
          }else{
              nesne = new XMLHttpRequest();
          }
          return nesne;
      }

      var http2 = nesneyarat();
      
      function getArtist(artistId) {
    	  
    	  var valArtistId 		= artistId;
    	  
    	  var url = "productArtist.php";
    	  var params = "artistId="+valArtistId;
    	  http2.open("POST", url, true);
    	  
    	  //Send the proper header information along with the request
    	  http2.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
    	  http2.setRequestHeader("Content-length", params.length);
    	  http2.setRequestHeader("Connection", "close");
    	  
    	  http2.onreadystatechange = function() {//Call a function when the state changes.
    			if(http2.readyState == 4 && http2.status == 200) {
    				 document.getElementById('random_artists').innerHTML = http2.responseText;
    			}
    		}
    	  http2.send(params);
    		
      }
      
