function vytvorXmlHttpRequestObjekt () { var xmlHttp; try { xmlHttp = new XMLHttpRequest(); } catch (e) { try { xmlHttp = new ActiveXObject ("Microsoft.XMLHttp"); } catch(e) { } } if (!xmlHttp) return null; else return xmlHttp; // var xmlHttp; // xmlHttp = new XMLHttpRequest (); // if (xmlHttp) // return xmlHttp; // else { // var xmlHttpVerze = new Array ( // "Microsoft.XMLHttp", // "MSXML2.XMLHTTP.7.0", // "MSXML2.XMLHTTP.6.0", // "MSXML2.XMLHTTP.5.0", // "MSXML2.XMLHTTP.4.0", // "MSXML2.XMLHTTP.3.0", // "MSXML2.XMLHTTP" // ); // // for (var i = 0; i < xmlHttpVerze.length; i++) { // xmlHttp = new ActiveXObject (xmlHttpVerze[i]); // if (xmlHttp) // return xmlHttp; // } // } // // return null; } var ajaxLoader = function () { this.loader = document.createElement ('div'); this.loader.style.position = 'fixed'; this.loader.style.top = '50%'; this.loader.style.background = '#888 url(/adminGrafika/ajax-loader.gif) no-repeat center 40px'; this.loader.style.textAlign = 'left'; this.loader.style.width = '300px'; this.loader.style.height = '100px'; this.loader.style.border = '1px solid #000'; this.loader.style.color = '#fff'; this.loader.style.fontWeight = 'bold'; this.loader.style.opacity = '0.80'; this.loader.style.filter = 'alpha(opacity=80)'; this.loader.style._position = 'absolute'; this.loader.style._top = 'expression(0+body.scrollTop);'; this.loader.style.visibility = 'hidden'; var objekt = this; this.loader.onmouseover = function () { if (objekt.loader.style.top == '50%') objekt.loader.style.top = '30%'; else objekt.loader.style.top = '50%'; } document.body.appendChild(this.loader); this.zobraz = function () { //