<?php
include("../../maincore.php");
include("listen/streamconfig.php");

echo "
function loadSP".$sp_id."Data(PFAD)
{
var xmlHttp = false;
try {
    xmlHttp  = new ActiveXObject(\"Msxml2.XMLHTTP\");
} catch(e) {
    try {
        xmlHttp  = new ActiveXObject(\"Microsoft.XMLHTTP\");
    } catch(e) {
        xmlHttp  = false;
    }
}
if (!xmlHttp  && typeof XMLHttpRequest != 'undefined') {
    xmlHttp = new XMLHttpRequest();
}

 if (xmlHttp) {
     xmlHttp.open('GET', '".($_SERVER["SERVER_PORT"]==443 ? "https://" : "http://").$_SERVER['HTTP_HOST']."/".$ss_url."/sp_info.php".(IsSet($_GET['toolbox']) && $_GET['toolbox']=='on' ? "?toolbox=yes" : "")."', true);
     xmlHttp.onreadystatechange = function () {
         if (xmlHttp.readyState == 4) {
             document.getElementById(\"sp".$sp_id."_info\").innerHTML = xmlHttp.responseText;
         }
     };
     xmlHttp.send(null);
 }
}
";
?>