|
@ -67,9 +67,9 @@ function initPopUp() { |
|
|
width = parseInt(params[1]); |
|
|
width = parseInt(params[1]); |
|
|
height = parseInt(params[2]); |
|
|
height = parseInt(params[2]); |
|
|
} |
|
|
} |
|
|
showPopWin(this.href,width,height,null); |
|
|
showPopWin(this.href, width, height, null); |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
}; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -124,7 +124,7 @@ function centerPopWin(width, height) { |
|
|
if (width === null || isNaN(width)) { |
|
|
if (width === null || isNaN(width)) { |
|
|
width = gPopupContainer.offsetWidth; |
|
|
width = gPopupContainer.offsetWidth; |
|
|
} |
|
|
} |
|
|
if (height == null) { |
|
|
if (height === null) { |
|
|
height = gPopupContainer.offsetHeight; |
|
|
height = gPopupContainer.offsetHeight; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -139,7 +139,7 @@ function centerPopWin(width, height) { |
|
|
var fullHeight = getViewportHeight(); |
|
|
var fullHeight = getViewportHeight(); |
|
|
var fullWidth = getViewportWidth(); |
|
|
var fullWidth = getViewportWidth(); |
|
|
|
|
|
|
|
|
gPopupContainer.style.top = (scTop + ((fullHeight - (height+titleBarHeight)) / 2)) + "px"; |
|
|
gPopupContainer.style.top = (scTop + ((fullHeight - (height + titleBarHeight)) / 2)) + "px"; |
|
|
gPopupContainer.style.left = (scLeft + ((fullWidth - width) / 2)) + "px"; |
|
|
gPopupContainer.style.left = (scLeft + ((fullWidth - width) / 2)) + "px"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -184,7 +184,7 @@ function hidePopWin(callReturnFunc) { |
|
|
var theBody = document.getElementsByTagName("BODY")[0]; |
|
|
var theBody = document.getElementsByTagName("BODY")[0]; |
|
|
theBody.style.overflow = ""; |
|
|
theBody.style.overflow = ""; |
|
|
restoreTabIndexes(); |
|
|
restoreTabIndexes(); |
|
|
if (gPopupMask == null) { |
|
|
if (gPopupMask === null) { |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
gPopupMask.style.display = "none"; |
|
|
gPopupMask.style.display = "none"; |
|
@ -216,17 +216,16 @@ function disableTabIndexes() { |
|
|
var i = 0; |
|
|
var i = 0; |
|
|
for (var j = 0; j < gTabbableTags.length; j++) { |
|
|
for (var j = 0; j < gTabbableTags.length; j++) { |
|
|
var tagElements = document.getElementsByTagName(gTabbableTags[j]); |
|
|
var tagElements = document.getElementsByTagName(gTabbableTags[j]); |
|
|
for (var k = 0 ; k < tagElements.length; k++) { |
|
|
for (var k = 0; k < tagElements.length; k++) { |
|
|
gTabIndexes[i] = tagElements[k].tabIndex; |
|
|
gTabIndexes[i] = tagElements[k].tabIndex; |
|
|
tagElements[k].tabIndex="-1"; |
|
|
tagElements[k].tabIndex = "-1"; |
|
|
i++; |
|
|
i++; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function returnRefresh() |
|
|
function returnRefresh() { |
|
|
{ |
|
|
|
|
|
window.location.reload(); |
|
|
window.location.reload(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -254,7 +253,7 @@ function restoreTabIndexes() { |
|
|
function hideSelectBoxes() { |
|
|
function hideSelectBoxes() { |
|
|
var x = document.getElementsByTagName("SELECT"); |
|
|
var x = document.getElementsByTagName("SELECT"); |
|
|
|
|
|
|
|
|
for (var i=0;x && i < x.length; i++) { |
|
|
for (var i = 0;x && i < x.length; i++) { |
|
|
x[i].style.visibility = "hidden"; |
|
|
x[i].style.visibility = "hidden"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -269,7 +268,7 @@ function hideSelectBoxes() { |
|
|
function displaySelectBoxes() { |
|
|
function displaySelectBoxes() { |
|
|
var x = document.getElementsByTagName("SELECT"); |
|
|
var x = document.getElementsByTagName("SELECT"); |
|
|
|
|
|
|
|
|
for (var i=0;x && i < x.length; i++){ |
|
|
for (var i=0; x && i < x.length; i++){ |
|
|
x[i].style.visibility = "visible"; |
|
|
x[i].style.visibility = "visible"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|