"+content);
whatWin.document.close();
}
return whatWin;
}
function popDown(whatWin) {
if (whatWin!=null && !whatWin.closed) {
whatWin.close()
}
}
function sizeNum(str) {
return parseInt(str.substr(0,str.indexOf("px")))
}
function fixPopUp(whatWin) {
var defaultHeight=400;
// var defaultWidth=300;
// var chromeHeight=29; // off-by-1 error in Mozilla 1.0 decision on displaying scrollbars
var chromeHeight=46; // kluge for M scrollbar bug
var chromeWidth=10;
var barsHeight=15;
var barsWidth=15;
var sobj, pobj;
myHeight="not set";
myWidth ="not set";
if (whatWin!=null && !whatWin.closed) {
if (version=="ECMA") {
chromeWidth=whatWin.outerWidth-whatWin.innerWidth;
sobj=whatWin.document.getElementById("sizer");
if (whatWin.document.defaultView) {
pobj=whatWin.document.defaultView.getComputedStyle(sobj,'');
myHeight=sizeNum(pobj.getPropertyValue("height"));
myWidth =sizeNum(pobj.getPropertyValue("width"));
}
}
else if (version=="IE5") {
myHeight=(whatWin.document.all.sizer.style.pixelHeight);
myWidth =(whatWin.document.all.sizer.style.pixelWidth);
}
else if (version=="IE5a") {
myHeight=(whatWin.document.body.offsetHeight);
myWidth =(whatWin.document.body.offsetWidth);
}
else if (version=="IE5b") {
myHeight=(whatWin.document.documentElement.offsetHeight);
myWidth =(whatWin.document.documentElement.offsetWidth);
}
else if (version=="Nav4") {
myHeight=whatWin.document.height;
myWidth=whatWin.document.width;
}
whatWin.alert("ver:"+version+"\n chromeWidth=="+chromeWidth+"\n myWidth=="+myWidth+"; myHeight=="+myHeight);
if (myHeight==0 || isNaN(myHeight)) {myHeight=defaultHeight};
if (myWidth==0 || isNaN(myWidth)) {myWidth=whatWin.defaultWidth};
myHeight+=chromeHeight;
myWidth+=chromeWidth;
newHeight=Math.min(myHeight,maxHeight-barsHeight);
newWidth=Math.min(myWidth,maxWidth-barsWidth);
if (newHeight
Yet another test of getComputedStyle() & IE "alternatives"