// JavaScript Document
var httpRequest_ActSt = false;
var Act_STA_url = "http://"+ window.location.hostname +"/includes/act_studio.php";
function ActST(stid, action) {
   httpRequest_ActSt = false;
   if(window.XMLHttpRequest)  // Mozilla, Safari,...
       httpRequest_ActSt = new XMLHttpRequest();
   else if(window.ActiveXObject) { // IE
       try {
           httpRequest_ActSt = new ActiveXObject("Msxml2.XMLHTTP");
    }
       catch (e) {
           try {
               httpRequest_ActSt = new ActiveXObject("Microsoft.XMLHTTP");
     }
           catch (e) {}
       }
   }
   if(!httpRequest_ActSt) 
      return false;
   httpRequest_ActSt.onreadystatechange = function() {
	  if(httpRequest_ActSt.readyState == 4) {
         if(httpRequest_ActSt.status == 200) 
			handleHttpResponse_Act_Studio(httpRequest_ActSt.responseText);
       else
          return false;
         }
    else
       return false;
   }
   if(document.getElementById('meinstudio')){
	   document.getElementById('meinstudio').innerHTML = "<img src='http://"+ window.location.hostname +"/images/loading.gif' alt='wird geladen' />";
   }
   httpRequest_ActSt.open('get', Act_STA_url+'?action='+action+'&stid='+stid, true);
   httpRequest_ActSt.send(null);

}

function handleHttpResponse_Act_Studio(content){
	if(document.getElementById('meinstudio')){
		document.getElementById('meinstudio').innerHTML = content;
	}
}
