document.writeln(''); modalDlg = { width: 300, height: 400, img: '/cms/img/modaldlg.gif', error: "Ошибка передачи данных.\nВозможно сервер временно недоступен.\nПовторите попытку позже.", loadingurl: null, loadedurl: null, createCenteredBlock: function(o, bOnlyVerticalCenter) { var table = document.createElement('table'); o.appendChild(table); var tr = table.insertRow(0); var td = tr.insertCell(0); table.setAttribute('cellspacing', '0'); table.setAttribute('cellpadding', '0'); table.setAttribute('width', '100%'); table.setAttribute('height', '100%'); td.setAttribute('valign', 'middle'); if (!bOnlyVerticalCenter) td.setAttribute('align', 'center'); return td; }, showOverlay: function() { var o = document.getElementById('__overlay'); if (!o) { o = document.createElement('div'); document.body.appendChild(o); o.id = '__overlay'; o.style.position = 'fixed'; o.style.visibility = 'hidden'; o.style.zIndex = '100'; o.style.left = '0px'; o.style.top = '0px'; o.style.width = '100%'; o.style.height = '100%'; o.style.opacity = '0.50'; o.style.filter = 'alpha(opacity=50)'; var cb = this.createCenteredBlock(o); var img = document.createElement('img'); img.setAttribute('src', this.img); cb.appendChild(img); if (!window.XMLHttpRequest) {// IE6 o.style.position = 'absolute'; o.style.backgroundColor = '#aaaaaa'; } } o.style.visibility = 'visible'; if (!window.XMLHttpRequest) {// IE6 o.style.left = document.documentElement.scrollLeft + 'px'; o.style.top = document.documentElement.scrollTop + 'px'; } }, hideOverlay: function() { var o = document.getElementById('__overlay'); if (o) o.style.visibility = 'hidden'; }, showModalDlgBox: function(sContents) { var o = document.getElementById('__modalbox'); if (!o) { var o2 = document.createElement('div'); document.body.appendChild(o2); o2.style.position = 'fixed'; o2.style.visibility = 'hidden'; o2.style.zIndex = '101'; o2.style.left = '0px'; o2.style.top = '0px'; o2.style.width = '100%'; o2.style.height = '100%'; var cb = this.createCenteredBlock(o2, true); o = document.createElement('div'); cb.appendChild(o); o.id = '__modalbox'; o.style.margin = 'auto'; if (!window.XMLHttpRequest) {// IE6 o2.style.position = 'absolute'; o.style.backgroundColor = '#ffffff'; o.style.border = '1px solid #999999'; } } o.style.width = this.width+'px'; o.style.height = this.height+'px' o.style.visibility = 'visible'; o.parentNode.parentNode.parentNode.parentNode.parentNode.style.visibility = 'visible'; if (sContents) o.innerHTML = sContents .replace(/href\=\"([^\"]+)\"/ig, 'href="javascript:modalDlg.open(\'$1\')"') .replace(/\