function createRequestObject() {
    var ro;
    var browser = navigator.appName;
    if (browser == "Microsoft Internet Explorer") {
        ro = new ActiveXObject("Microsoft.XMLHTTP");
    }else{
        ro = new XMLHttpRequest();
    }
    return ro;
}

var http = createRequestObject();

function sndReq(action) {
    /*http.open('get', action);
    http.onreadystatechange = handleResponse;
    http.send(null);*/
    var _temp;
    _temp = '<OBJECT codeBase=http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0 height=254 width=320 classid=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B>';
    _temp = _temp + '<PARAM NAME="controller" VALUE="TRUE">';
    _temp = _temp + '<PARAM NAME="type" VALUE="video/quicktime">';
    _temp = _temp + '<PARAM NAME="autoplay" VALUE="true">';
    _temp = _temp + '<PARAM NAME="target" VALUE="myself">';
    _temp = _temp + '<PARAM NAME="src" VALUE="' + action + '">';
    _temp = _temp + '<PARAM NAME="pluginspage" VALUE="http://www.apple.com/quicktime/download/indext.html">';
    _temp = _temp + '<embed src="' + action + '" width="320" height="254" controller="TRUE" type="video/quicktime" autoplay="true" target="myself" pluginspage="http://www.apple.com/quicktime/download/indext.html"></embed></OBJECT>';
   document.getElementById('central').innerHTML = _temp;
}

function sndReq2(action) {
    /*http.open('get', action);
    http.onreadystatechange = handleResponse;
    http.send(null);*/
    var _temp = action;
   document.getElementById('central').innerHTML = _temp;
}

function handleResponse() {
    if (http.readyState == 4) {
        var response = http.responseText;
        var update = new Array();

        if (response.indexOf('|' != -1)) {
            update = response.split('|');
            //alert(response);
            document.getElementById('prova').innerHTML = response;
        }
    }
}


