');
s += ('
\n');
s += ('<\/div>\n');
s += "<\/body>\n";
s += "<\/html>";
htmls[i] = s;
}
function wopen_orgimg(imgNo) {
var wdWid = mgnL + imgwids_view[imgNo] + mgnR +mgnRPlus;
var wdHgt = mgnT + imghgts_view[imgNo] + mgnB +mgnBPlus;
var scrnAWid = getScreenAvailWidth();
var scrnAHgt = getScreenAvailHeight();
var isScrollable = 0;
var imgID = imgNo;
var wdID = 'orgimgwd' + imgID;
if (wdWid > scrnAWid) {
wdWid = scrnAWid;
isScrollable = 1;
}
if (wdHgt > scrnAHgt) {
wdHgt = scrnAHgt;
isScrollable = 1;
}
eval(wdID + ' = window.open("","image' + imgID + '","width=" + wdWid + ",height=" + wdHgt + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + isScrollable + ',resizable=0");');
eval(wdID + '.document.open();');
eval(wdID + '.document.write(htmls[imgID]);');
eval(wdID + '.document.close();');
/*
var tLayer = getLayerObj(wdID,"img");
var newHgt = mgnT + tLayer.offsetHeight + mgnB;
if (newHgt > wdHgt) {
var dh = newHgt - wdHgt;
eval(wdID + '.resizeBy(0,dh)');
}
if (newHgt > scrnAHgt && wdHgt < scrnAHgt) {
var dh = scrnAHgt - newHgt;
eval(wdID + '.resizeBy(0,dh)');
}
*/
}
function getLayerObj(wdID,lyrID) {
if(document.getElementById) // for NN6,Mozilla,IE5
return eval(wdID + '.document.getElementById(lyrID)');
else if(document.all) // for IE4
return eval(wdID + '.document.all(lyrID)');
else if(document.layers) // for NN4
return eval(wdID + 'document.layers[lyrID]');
return null;
}
function getScreenAvailWidth() {
if(!!window.screen)
return screen.availWidth //N4,N6,Moz,IE,
else
return null //others
}
function getScreenAvailHeight() {
if(!!window.screen)
return screen.availHeight //N4,N6,Moz,IE
else
return null //others
}
function getBrowserName() {
tName = (document.all ? // IE4,5 ?
"ie4or5":(document.getElementById ? // Mozilla ?
"mozilla":(document.layers ? // NN4 ?
"nn4":"unknown"
)
)
);
return tName;
}
document.write("");
//-->