var browser = navigator.appVersion.toLowerCase(); var ie_version = 0; if (browser.indexOf("msie") != -1) { ie_version = parseFloat(browser.split("msie")[1]); } function showobject(id,height,width,text) { window_top = (document.body.clientHeight - height) / 2; window_left = (document.body.clientWidth - width) / 2; if ((ie_version < 7) && (ie_version != 0) && (document.getElementById('id_iframe') == null)) { var iframe = document.createElement('iframe'); iframe.id = "id_iframe"; iframe.src = "../blank.html"; iframe.frameborder = 1; iframe.scrolling = "no"; iframe.style.position = "absolute"; iframe.style.background = "#FFFFFF"; iframe.style.left = window_left; iframe.style.top = window_top; iframe.style.height = height; iframe.style.width = width; iframe.style.zIndex = 10; //iframe.style.filter = "alpha(opacity=50)"; //iframe.style.opacity = 50; document.body.appendChild(iframe); iframe.style.display = "block"; } if (document.getElementById(id) == null) { var div = document.createElement('div'); div.id = id; div.style.left = window_left; div.style.top = window_top; div.style.height = height; div.style.width = width; if (!text == '') div.innerHTML = text; div.style.position = "absolute" div.style.display = "block"; div.style.zIndex = 11; document.body.appendChild(div); } } function hideobject(id) { if (document.getElementById(id) != null) { var div = document.getElementById(id); div.style.display = "none"; } if ((ie_version < 7) && (ie_version != 0) && (document.getElementById('id_iframe') != null)) { document.getElementById('id_iframe').style.display = "none"; } }