function QuickPopup(e, dat, wid, hei, cfg_dat){ if(document.getElementById('75893yt5wgi432jhj45o9j')){ document.body.removeChild(document.getElementById('75893yt5wgi432jhj45o9j_iframe')); document.body.removeChild(document.getElementById('75893yt5wgi432jhj45o9j')); } dat = String(dat); if(dat.match(RegExp('AJAX-'))){ dat = dat.replace('AJAX-', ''); AJAX2.Send(dat, 'QuickPopupAjaxContent'); dat = ' ... '; } offX = (e) ? e.pageX : event.clientX; offY = (e) ? e.pageY : event.clientY; if(!offX || !offY){ var offX = e.clientX + document.body.scrollLeft; var ScrollTop = (document.documentElement.scrollTop > 0) ? document.documentElement.scrollTop : document.body.scrollTop; var offY = e.clientY + ScrollTop; } cfg = new Array(); cfg['background'] = '#ffffff'; cfg['color'] = '#000000'; if(cfg_dat){ tmp = cfg_dat.split(','); for(i=0;i sizes[0]){ offX = offX - parseInt(wid) - 30; } if(cfg['position'] = 'center'){ offX = (sizes[2] - wid) / 2; offY = (sizes[3] - hei) / 2 + scrll[1]; } div = document.createElement("div"); div.id = '75893yt5wgi432jhj45o9j'; div.style['zIndex'] = '2999'; div.style['position'] = 'absolute'; div.style['left'] = (offX + 13) + 'px'; div.style['top'] = (offY + 13) + 'px'; try{div.style['background'] = cfg['background'];}catch(e){} div.style['color'] = cfg['color']; div.style['padding'] = '5px'; div.style['width'] = wid + 'px'; div.style['height'] = hei + 'px'; div.style['border'] = 'solid #000000 1px'; div.innerHTML = dat; document.body.appendChild(div); iframe = document.createElement("iframe"); iframe.style['position'] = 'absolute'; iframe.style['width'] = parseInt(wid) + 18 + 'px'; iframe.style['height'] = parseInt(hei) + 18 + 'px'; iframe.style['left'] = (offX + 10) + 'px'; iframe.style['top'] = (offY + 10) + 'px'; iframe.style['zIndex'] = 1; iframe.style['border'] = '0px solid black'; iframe.id = '75893yt5wgi432jhj45o9j_iframe'; document.body.appendChild(iframe); } function QuickPopupClose(){ try{document.body.removeChild(document.getElementById('75893yt5wgi432jhj45o9j_iframe'));}catch(e){} try{document.body.removeChild(document.getElementById('75893yt5wgi432jhj45o9j'));}catch(e){} } function QuickPopupAjaxContent(txt){ txt = unescape(txt); document.getElementById('75893yt5wgi432jhj45o9j').innerHTML = txt; } var photoeditorvar='go.live.php/';