var admin_last_popups = new Array() ; // megnyitott popup ablakok azonosítói (verem)
// betöltéskor a pozícionálásokat csak onload-ra kell elvégezni
if (typeof window.addEventListener != 'undefined') {
window.addEventListener('load',adminPopupSetParent,false) ;
} else if (typeof window.attachEvent != 'undefined') {
window.attachEvent('onload',adminPopupSetParent) ;
} else {
window.onclick = 'adminPopupSetParent' ;
}
if ( typeof resize_middle_div_heights=='undefined' ) {
window.onresize = resize_middle_div_heights;
function get_self_window_params() {
if (self.innerHeight) { // all except Explorer
self_width = self.innerWidth;
self_height = self.innerHeight;
}
else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
self_width = document.documentElement.clientWidth;
self_height = document.documentElement.clientHeight;
}
else if (document.body) { // other Explorers
self_width = document.body.clientWidth;
self_height = document.body.clientHeight;
}
}
}
function resize_middle_div_heights_popup_onresize(sourceFunction) {
get_self_window_params();
resize_middle_div_heights_popup(sourceFunction)
//Minden ST onload-ját meg kell hívni az átméretezések miatt
if (typeof SortableTable != 'undefined') {
Aitia.Util.timer('SortableTable.stCallResize();', 'st_resize', 500);
}
}
function resize_middle_div_heights_popup(sourceFunction) {
// Takarók méretezése
if ( document.getElementById("advsearchCoverDiv") && (document.getElementById("advsearchCoverDiv").style.visibility=="" || document.getElementById("advsearchCoverDiv").style.visibility=="visible") ) {
document.getElementById("advsearchCoverDiv").style.width = screen.width+'px';
document.getElementById("advsearchCoverDiv").style.height = screen.height+'px';
document.getElementById("advsearchCoverIFrame").style.width = screen.width+'px';
document.getElementById("advsearchCoverIFrame").style.height = screen.height+'px';
}
if ( document.getElementById("disabled_window") && (document.getElementById("disabled_window").style.visibility=="" || document.getElementById("disabled_window").style.visibility=="visible") ) {
document.getElementById("disabled_window").style.width = screen.width+'px';
document.getElementById("disabled_window").style.height = screen.height+'px';
document.getElementById("disabled_window_iframe").style.width = screen.width+'px';
document.getElementById("disabled_window_iframe").style.height = screen.height+'px';
document.getElementById("iframe_ref_div").style.width = screen.width+'px';
document.getElementById("iframe_ref_div").style.height = screen.height+'px';
}
if ( document.getElementById('advsearchdiv') && (document.getElementById('advsearchdiv').style.visibility=='' || document.getElementById('advsearchdiv').style.visibility=='visible') ) {
document.getElementById('advcoverdiv2').style.width = screen.width+'px';
document.getElementById('advcoverdiv2').style.height = screen.height+'px';
document.getElementById('coverDiviframe').style.width = screen.width+'px';
document.getElementById('coverDiviframe').style.height = screen.height+'px';
document.getElementById('advcoverdiv').style.width = screen.width+'px';
document.getElementById('advcoverdiv').style.height = screen.height+'px';
document.getElementById('advcoverdiv_img').style.width = screen.width+'px';
document.getElementById('advcoverdiv_img').style.height = screen.height+'px';
}
// popup középre igazítása
if ( admin_last_popups.length>0 ) {
popup_ref = document.getElementById(admin_last_popups[admin_last_popups.length-1]) ;
setPopupCenter(popup_ref) ;
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// START POPUP FUNCTIONS
// * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// takaró iframe megjelenítése
// ha megadunk egy opcionális z-index-et, azt állítja be a takaró iframe-nek
// coverDiv és coverIFrame globális változókat használja
function showCover() {
var argv = showCover.arguments;
var argc = argv.length;
if (argc>0) {
var zIndex = argv[0];
}
else if (document.getElementById("advsearchCoverIFrame") && document.getElementById("advsearchCoverIFrame").style.zIndex != '') {
var zIndex = document.getElementById("advsearchCoverIFrame").style.zIndex;
}
else {
var zIndex = '800';
}
if ( document.getElementById("advsearchCoverDiv") ) {
document.getElementById("advsearchCoverDiv").style.width = screen.width+'px';
document.getElementById("advsearchCoverDiv").style.height = screen.height+'px';
document.getElementById("advsearchCoverIFrame").style.width = screen.width+'px';
document.getElementById("advsearchCoverIFrame").style.height = screen.height+'px';
document.getElementById("advsearchCoverDiv").style.visibility = 'visible';
document.getElementById("advsearchCoverIFrame").style.visibility = 'visible';
}
else {
coverDiv = document.createElement('div');
document.body.appendChild(coverDiv);
coverDiv.id = 'advsearchCoverDiv';
coverDiv.style.zIndex = zIndex;
coverDiv.style.position = 'absolute';
coverDiv.style.top = '0px';
coverDiv.style.left = '0px';
coverDiv.style.width = screen.width+'px';
coverDiv.style.height = screen.height+'px';
coverDiv.style.backgroundColor = 'black';
coverDiv.style.filter = 'alpha(opacity=70)';
coverDiv.style.opacity = '0.7';
coverIFrame = document.createElement('iframe');
coverIFrame.id = 'advsearchCoverIFrame';
coverIFrame.style.zIndex = zIndex;
coverIFrame.style.position = 'relative';
coverIFrame.style.top = '0px';
coverIFrame.style.left = '0px';
coverIFrame.style.width = screen.width+'px';
coverIFrame.style.height = screen.height+'px';
coverIFrame.style.backgroundColor = 'transparent';
coverIFrame.style.filter = 'alpha(opacity=0)';
coverIFrame.src = mainURL + "mods/blank.html";
coverDiv.appendChild(coverIFrame);
}
}
// takaró iframe eltüntetése
function hideCover() {
if (document.getElementById("advsearchCoverDiv")) {
document.getElementById("advsearchCoverIFrame").style.width = "1px";
document.getElementById("advsearchCoverIFrame").style.height = "1px";
document.getElementById("advsearchCoverDiv").style.width = "1px";
document.getElementById("advsearchCoverDiv").style.height = "1px";
document.getElementById("advsearchCoverIFrame").style.visibility = 'hidden';
document.getElementById("advsearchCoverDiv").style.visibility = 'hidden';
}
}
function showLoading() {
showCover();
if (typeof(loadingDiv) != 'undefined') {
loadingDiv.style.visibility = 'visible';
} else {
loadingDiv = document.createElement('div');
document.body.appendChild(loadingDiv);
loadingDiv.style.zIndex = 1000;
loadingDiv.style.position = 'absolute';
loadingDiv.style.top = '0px';
loadingDiv.style.left = '0px';
loadingDiv.style.width = '109px';
loadingDiv.style.height = '146px';
loadingDiv.style.backgroundColor = 'black';
loadingDiv.innerHTML = "";
//loadingDiv.backgroundImage= "url(img/webra_loading.gif)";
//alert("fut");
setPopupCenter(loadingDiv);
}
}
function hideLoading() {
hideCover();
if (typeof(loadingDiv) != 'undefined') {
loadingDiv.style.visibility = 'hidden';
}
}
//popup középre igazítása (bármely elem lehet)
function setPopupCenter(popup_ref) {
get_self_window_params() ;
// le kell vonni az offset parrent koordinátáit
var offset_x = 0 ;
var offset_y = 0 ;
if ( popup_ref.offsetParent ) {
offset_x = findPosX(popup_ref.offsetParent) ;
offset_y = findPosY(popup_ref.offsetParent) ;
} else {
if ( popup_ref.x ) offset_x = popup_ref.x;
if ( popup_ref.y ) offset_y = popup_ref.y;
}
offset_x -= 2*f_scrollLeft();
offset_y -= 2*f_scrollTop();
// x pozíció
if ( (self_width-popup_ref.clientWidth-offset_x)>0 ) {
popup_ref.style.left = Math.floor((self_width-popup_ref.clientWidth-offset_x)/2)+'px' ;
} else {
popup_ref.style.left = (-1*offset_x)+'px' ;
}
// y pozíció
if ( (self_height-popup_ref.clientHeight-offset_y)>0 ) {
popup_ref.style.top = Math.floor((self_height-popup_ref.clientHeight-offset_y)/2)+'px' ;
} else {
popup_ref.style.top = (-1*offset_y)+'px' ;
}
}
function adminPopupOpen(popup_id,default_link_num,width) {
var disabled_window_id = 'disabled_window';
var popup_ref;
// Esemény kezelés beállítása a takarón, mivel az esetleges
// document.getElementById("popup_container_global").innerHTML += response;
// vagy ilyesmi elrontják ezt a fajta eseménykezelést
var iframeRefDivRef = document.getElementById("iframe_ref_div");
if ( iframeRefDivRef ) {
iframeRefDivRef.onmousemove = function () {
if ( navigator.platform=="Win32" && navigator.appName=="Microsoft Internet Explorer" ) {
adminPopupOnMouseMove(event) ;
} else {
adminPopupOnMouseMove() ;
}
};
}
popup_ref = document.getElementById('admin_popup_'+popup_id);
if ( popup_ref ) {
// felület használatának letiltása, ha még nem volt letiltva
var raster_ref = document.getElementById(disabled_window_id);
if ( raster_ref && raster_ref.style.visibility=='hidden' ) {
var fscrolltop = f_scrollTop();
document.body.style.overflow = 'hidden';
document.body.style.overflowX = 'hidden';
document.body.style.overflowY = 'hidden';
document.getElementsByTagName('html')[0].style.overflow = 'hidden';
document.getElementsByTagName('html')[0].style.overflowX = 'hidden';
document.getElementsByTagName('html')[0].style.overflowY = 'hidden';
var bodyWidth = ( document.getElementsByTagName('html')[0].clientWidth>document.body.clientWidth ? document.getElementsByTagName('html')[0].clientWidth : document.body.clientWidth );
var bodyHeight = ( document.getElementsByTagName('html')[0].clientHeight>document.body.clientHeight ? document.getElementsByTagName('html')[0].clientHeight : document.body.clientHeight );
document.body.style.height = (bodyHeight + fscrolltop) + 'px';
window.scrollTo(0, fscrolltop);
/* ff alatt publikus oldalon elrontja a takaro pozicionalasat scroll eseten, mivel az oldal tetejere gorget */
/*document.documentElement.style.overflow = 'hidden';*/
// Azért jó mert elvileg nem engedélyezzük a böngésző csuszkáit
raster_ref.style.width = bodyWidth+'px';
raster_ref.style.height = bodyHeight+'px';
document.getElementById("disabled_window_iframe").style.width = bodyWidth+'px';
document.getElementById("disabled_window_iframe").style.height = bodyHeight+'px';
iframeRefDivRef.style.width = bodyWidth+'px';
iframeRefDivRef.style.height = bodyHeight+'px';
//raster_ref.style.display = 'block';
raster_ref.style.visibility = "visible";
document.getElementById("disabled_window_iframe").style.visibility = "visible";
iframeRefDivRef.style.visibility = "visible";
raster_ref.style.top = fscrolltop+'px';
document.getElementById("disabled_window_iframe").style.top = fscrolltop + 'px';
iframeRefDivRef.style.top = fscrolltop + 'px';
}
// töltő képecske felrakása
if (raster_ref) {
var height = ( self_height - 146 ) / 2;
height = height+"px";
raster_ref.style.backgroundImage = "url('" + mainURL + "img/webra_loading.gif')";
raster_ref.style.backgroundPosition = "center "+height;
raster_ref.style.backgroundRepeat = "no-repeat";
}
// régi popup takaró alá mozgatása
if ( admin_last_popups.length ) {
popup_ref = document.getElementById(admin_last_popups[admin_last_popups.length-1]) ;
popup_ref.style.zIndex = '97';
}
// töltő képecske levétele
if ( raster_ref ) {
raster_ref.style.backgroundImage = "";
}
// új popup megnyitása
popup_ref = document.getElementById('admin_popup_'+popup_id);
popup_ref.style.display = 'block';
admin_last_popups.push('admin_popup_'+popup_id);
// ide kell berakni a szélességet
if (width) {
//alert(width);
//alert(popup_id);
popup_ref.style.width = width+"px";
var titleDiv = document.getElementById("admin_popup_"+popup_id+"_title");
titleDiv.style.width = (width-37)+"px";
var footerDiv = document.getElementById("admin_popup_"+popup_id+"_footer");
footerDiv.style.width = (width-22)+"px";
var bodyDiv = document.getElementById("admin_popup_"+popup_id+"_body");
bodyDiv.style.width = (width-22)+"px";
var shadowBottomDiv = document.getElementById("admin_popup_"+popup_id+"_shadow_bottom");
shadowBottomDiv.style.width = (width-10)+"px";
var buttonBigDiv = document.getElementById("admin_popup_"+popup_id+"_button_div_big");
buttonBigDiv.style.width = (width-34)+"px";
var outerBigDiv = document.getElementById("admin_popup_content_"+popup_id+"_outer_big");
outerBigDiv.style.width = (width-34)+"px";
var bigDiv = document.getElementById("admin_popup_content_"+popup_id+"_big");
bigDiv.style.width = (width-44)+"px";
// belső konténerek
var i = 0;
var node = null;
while (node = document.getElementById("admin_popup_content_div_"+i+"_"+popup_id)) {
node.style.width = (width-46)+"px";
++i;
}
}
// popup középre igazítása
setPopupCenter(popup_ref);
// ha van menü
if ( document.getElementById('admin_popup_'+popup_id+'_menu') ) {
// alapértelmezett link beállítása
var default_link = 0 ;
if ( default_link_num==undefined ) {
//Ha a megnyitó függvényben nincs megadva, akkor az a default, ami az XSL-ből jött
var div_container = document.getElementById('admin_popup_content_div_current_'+popup_id) ;
if (div_container && div_container.value!='') {
var default_link = parseInt(div_container.value.substring(div_container.value.lastIndexOf('_')+1, div_container.value.length),10);
}
}
else {
var default_link = eval(Number(default_link_num));
}
var linkek = document.getElementById('admin_popup_'+popup_id+'_menu').getElementsByTagName('a');
if (linkek.length>0 && default_link0) {
adminPopupMenuClick(linkek[default_link], "", popup_id, 0);
}
// cover megfelelő helyre mozgatása
var linkek = document.getElementById('admin_popup_'+popup_id+'_menu').getElementsByTagName('a') ;
for (var i=0;i0 ) {
img_ref.style.left = Math.floor((img_ref.parentNode.clientWidth-img_ref.clientWidth-parent_padding)/2)+'px' ;
} else {
img_ref.style.left = '0px' ;
}
if ( (img_ref.parentNode.clientHeight-img_ref.clientHeight-parent_padding)>0 ) {
img_ref.style.top = Math.floor((img_ref.parentNode.clientHeight-img_ref.clientHeight-parent_padding)/2)+'px' ;
} else {
img_ref.style.top = '0px' ;
}
// tartalom középre tolása
var div_ref = document.getElementById('admin_popup_msg_body') ;
var parent_padding = 10 ;
/*
if ( (div_ref.parentNode.clientWidth-div_ref.clientWidth-parent_padding)>0 ) {
div_ref.style.left = Math.floor((div_ref.parentNode.clientWidth-div_ref.clientWidth-parent_padding)/2)+'px' ;
} else {
div_ref.style.left = '0px' ;
}
*/
if ( (div_ref.parentNode.clientHeight-div_ref.clientHeight-parent_padding)>0 ) {
div_ref.style.top = Math.floor((div_ref.parentNode.clientHeight-div_ref.clientHeight-parent_padding)/2)+'px' ;
} else {
div_ref.style.top = '0px' ;
}
}
if (popup_ref.id=='admin_popup_searchInstitute_container' || popup_ref.id=='admin_popup_searchInstitute_u_container' || popup_ref.id=='admin_popup_searchInstitute_s_container') {
popup_ref.style.top=document.documentElement.scrollTop+'px';
raster_ref.style.height=document.body.scrollHeight+'px';
iframeRefDivRef.style.height=document.body.scrollHeight+'px';
}
if ( window.alphaBackgrounds && popup_id!='palettePopup_container' ) {
alphaBackgrounds(popup_ref);
}
}
}
function adminPopupClose(deleteDOMobject) {
var disabled_window_id = 'disabled_window';
// popup eltüntetése
if ( admin_last_popups.length ) {
popup_ref = document.getElementById(admin_last_popups[admin_last_popups.length-1]) ;
if (deleteDOMobject) {
popup_ref.innerHTML = '';
removeElement(popup_ref);
}
else {
popup_ref.style.display = 'none';
}
admin_last_popups.pop() ;
}
// előző popup takaró fölé mozgatása, vagy felület engedélyezése
if ( admin_last_popups.length>0 ) {
popup_ref = document.getElementById(admin_last_popups[admin_last_popups.length-1]) ;
popup_ref.style.zIndex = '';
} else {
adminPopupHideCover();
}
}
function adminPopupHideCover() {
if ( document.getElementById("iframe_ref_div") ) {
var fscrolltop = f_scrollTop();
document.body.style.overflow = '';
document.body.style.overflowX = '';
document.body.style.overflowY = '';
document.getElementsByTagName('html')[0].style.overflow = '';
document.getElementsByTagName('html')[0].style.overflowX = '';
document.getElementsByTagName('html')[0].style.overflowY = '';
document.body.style.height = '';
window.scrollTo(0, fscrolltop);
/* ff alatt publikus oldalon elrontja a takaro pozicionalasat scroll eseten, mivel az oldal tetejere gorget */
/*document.documentElement.style.overflow = '';*/
document.getElementById("iframe_ref_div").style.width = "1px";
document.getElementById("iframe_ref_div").style.height = "1px";
document.getElementById("disabled_window_iframe").style.width = "1px";
document.getElementById("disabled_window_iframe").style.height = "1px";
document.getElementById("disabled_window").style.width = "1px";
document.getElementById("disabled_window").style.height = "1px";
document.getElementById("iframe_ref_div").style.visibility = "hidden";
document.getElementById("disabled_window_iframe").style.visibility = "hidden";
document.getElementById("disabled_window").style.visibility = "hidden";
document.getElementById("disabled_window").style.top = '0px';
document.getElementById("disabled_window_iframe").style.top = '0px';
document.getElementById("iframe_ref_div").style.top = '0px';
}
}
function adminPopupMenuOver(link_ref) {
// style beállítások
if ( link_ref.className!='admin_popup_list_a_current' ) {
link_ref.className = 'admin_popup_list_a_hover' ;
}
}
function adminPopupMenuOut(link_ref) {
// style beállítások
if ( link_ref.className!='admin_popup_list_a_current' ) {
link_ref.className = 'admin_popup_list_a_base' ;
}
}
// átnyúló doboz helyére mozgatása, megjelenítése
function adminPopupMenuSetCover(popup_id,link_ref) {
var curtop = 0;
var curleft = 0;
obj = link_ref ;
if (obj.offsetParent) {
curtop = obj.offsetTop ;
curleft = obj.offsetLeft ;
while ( obj=obj.offsetParent) {
if ( obj.className=='admin_popup_container' ) {
break;
}
curleft += obj.offsetLeft ;
curtop += obj.offsetTop ;
}
}
var cover_ref = document.getElementById('admin_popup_'+popup_id+'_cover') ;
if ( (Aitia.Browser.ieVersion <= 7 && Aitia.Browser.ieVersion > 0) || (Aitia.Browser.ieVersion == 8 && Aitia.Browser.ieBrowserMode != '8') ) {
cover_ref.style.top = (curtop+1)+'px' ;
cover_ref.style.left = (link_ref.clientWidth+curleft+1)+'px' ;
} else {
cover_ref.style.top = curtop+'px' ;
cover_ref.style.left = (link_ref.clientWidth+curleft)+'px' ;
}
cover_ref.style.display = 'block' ;
}
function adminPopupMenuClick(link_ref,cover_id,popup_id,div_id) {
// előző aktuális-ról formázás levétele
var obj = link_ref ;
if (obj.parentNode) {
while ( obj=obj.parentNode) {
if ( obj.className=='admin_popup_list_div' ) break ;
}
}
var linkek = obj.getElementsByTagName('a') ;
for (var i=0;i0 && itemID=0;i--) {
if ( div_ref[i] && div_ref[i].className && div_ref[i].className.length>0 ) {
for (var j=0;j0 ) {
img_ref.style.left = Math.floor((img_ref.parentNode.clientWidth-img_ref.clientWidth-parent_padding)/2)+'px' ;
} else {
img_ref.style.left = '0px' ;
}
if ( (img_ref.parentNode.clientHeight-img_ref.clientHeight-parent_padding)>0 ) {
img_ref.style.top = Math.floor((img_ref.parentNode.clientHeight-img_ref.clientHeight-parent_padding)/2)+'px' ;
} else {
img_ref.style.top = '0px' ;
}
}
// alert_type: 0-success, 1-nosuccess, 2-warning, 3-norights, 4-favourites
// 5-history, 6-settings, 7-info, 8-tips, 9-YesNo, 10-Lomtár, 11-Webra
function adminPopupOpenMsg(alert_type, img_src, window_title, body_title, body_value, footer_value, callbackScript) {
// kép meghatározása
var error_img = new Array(
'img/popup/success.png'
,'img/popup/nosuccess.png'
,'img/popup/warning.png'
,'img/popup/norights.png'
,'img/popup/favourites.png'
,'img/popup/history.png'
,'img/popup/settings.png'
,'img/popup/info.png'
,'img/popup/tips.png'
,'img/popup/tips.png'
,'img/popup/trash.png'
,'img/popup/webra.png'
);
var popup_img_src = '' ;
if ( alert_type>-1 && alert_typeKoordináták: "+event.x+" :: "+event.y+"" ;
if ( popup_is_drag ) {
popup_global_ref.style.left = (event.clientX-popup_mouse_offset_x)+'px' ;
popup_global_ref.style.top = (event.clientY-popup_mouse_offset_y)+'px' ;
/*
if ( event.clientX>4 && event.clientY>4) {
if ( (event.clientX-popup_mouse_offset_x)>0 ) {
popup_global_ref.style.left = (event.clientX-popup_mouse_offset_x)+'px' ;
} else {
popup_mouse_offset_x = event.clientX - popup_global_ref.offsetLeft ;
}
if ( (event.clientY-popup_mouse_offset_y)>0 ) {
popup_global_ref.style.top = (event.clientY-popup_mouse_offset_y)+'px' ;
} else {
popup_mouse_offset_y = event.clientY - popup_global_ref.offsetTop ;
}
} else {
//document.getElementById(popup_global_ref.id+'_title').onmouseup() ;
}
*/
}
}
function adminPopupOnKeyDown(event) {
if ( !event && window.event ) {
event = window.event;
}
if ( event && event.keyCode && event.keyCode==27 ) {
if ( admin_last_popups.length>0 ) {
var rootnode= document.getElementById(admin_last_popups[admin_last_popups.length-1]) ;
var tags = rootnode.getElementsByTagName('IMG');
var closable=false;
for (var i=0; i0) {
closable=true;
}
}
if (closable) {
adminPopupClose();
}
}
}
}
/**
* Általános popup megnyitó függvény. A megadott paraméter alapján hívást indít a szerverhez a megfelelő popup letöltésére.
*
* @param string A popup típusa. Lehetséges értékeit lásd: admin_popup.php
* @param string A popup callback paraméterei. XmlHTTP válasz után a callback függvény megkapja ezeket a paramétereket.
* @param bool Ha a poup már le van töltve, akkor újra kezdeményezni kell e a letöltését. Gyorsítható vele a popup megjelenése, de némely típus esetén alapból kizárt a használata.
*/
function newAdminPopup(type, callbackParams, forceReload) {
// Környezet beállítása
var container_id = 'popup_container_global';
if (document.getElementById(container_id) == undefined) {
adminPopupSetParent();
}
// felület használatának letiltása
var disabled_window_id = 'disabled_window';
var raster_ref = document.getElementById(disabled_window_id);
var iframeRefDivRef = document.getElementById("iframe_ref_div");
if (raster_ref && raster_ref.style.visibility == 'hidden') {
var fscrolltop = f_scrollTop();
document.body.style.overflow = 'hidden';
document.body.style.overflowX = 'hidden';
document.body.style.overflowY = 'hidden';
document.getElementsByTagName('html')[0].style.overflow = 'hidden';
document.getElementsByTagName('html')[0].style.overflowX = 'hidden';
document.getElementsByTagName('html')[0].style.overflowY = 'hidden';
var bodyWidth = ( document.getElementsByTagName('html')[0].clientWidth>document.body.clientWidth ? document.getElementsByTagName('html')[0].clientWidth : document.body.clientWidth );
var bodyHeight = ( document.getElementsByTagName('html')[0].clientHeight>document.body.clientHeight ? document.getElementsByTagName('html')[0].clientHeight : document.body.clientHeight );
document.body.style.height = (bodyHeight + fscrolltop) + 'px';
window.scrollTo(0, fscrolltop);
/* ff alatt publikus oldalon elrontja a takaro pozicionalasat scroll eseten, mivel az oldal tetejere gorget */
/*document.documentElement.style.overflow = 'hidden';*/
// Azért jó mert elvileg nem engedélyezzük a böngésző csuszkáit
raster_ref.style.width = bodyWidth+'px';
raster_ref.style.height = bodyHeight+'px';
document.getElementById("disabled_window_iframe").style.width = bodyWidth+'px';
document.getElementById("disabled_window_iframe").style.height = bodyHeight+'px';
iframeRefDivRef.style.width = bodyWidth+'px';
iframeRefDivRef.style.height = bodyHeight+'px';
//raster_ref.style.display = 'block';
raster_ref.style.visibility = "visible";
document.getElementById("disabled_window_iframe").style.visibility = "visible";
iframeRefDivRef.style.visibility = "visible";
raster_ref.style.top = fscrolltop+'px';
document.getElementById("disabled_window_iframe").style.top = fscrolltop + 'px';
iframeRefDivRef.style.top = fscrolltop + 'px';
}
// töltő képecske felrakása
if (raster_ref) {
if (typeof self_height == 'undefined') {
get_self_window_params();
}
var height = (self_height - 146) / 2;
if (isNaN(height)) height = 0;
height = height + "px";
raster_ref.style.backgroundImage = "url('" + mainURL + "img/webra_loading.gif')";
raster_ref.style.backgroundPosition = "center " + height;
raster_ref.style.backgroundRepeat = "no-repeat";
}
// régi popup takaró alá mozgatása, ha volt
if (admin_last_popups.length) {
popup_ref = document.getElementById(admin_last_popups[admin_last_popups.length - 1]);
popup_ref.style.zIndex = '97';
}
var typeComponents = type.split('::');
var handlerModule;
var popupType;
if (typeComponents.length > 1) {
handlerModule = typeComponents[0];
popupType = typeComponents[1];
}
else {
handlerModule = '';
popupType = type;
}
// A callback paramétereket prefixeljük, hogy postolás után is felismerhetőek legyenek.
var postParams = new Array();
if (callbackParams) {
for (var i=0; i több opcionális gomb beállítása
* Az összes paraméter opcionális, alap esetben a sikeres végrehajtásról értesít a rendszer.
*
* @param array Az üzenet ablak paraméterei.
*/
function newAdminMsgPopup(data) {
newAdminPopup("msgPopup", data, 1);
//@todo> ha már benne van a DOM-ban, akkor nem kell újra tölteni
}
//MSG popup callback függvénye
function newAdminMsgPopup_callback(xmlHttpResponse, callbackParams) {
response = unescape(xmlHttpResponse);
if (document.getElementById("popup_container_global")) {
if ( response.indexOf('