function showFullImage(name, width, height, scrollable) {
height += 31;
width += 28;
if (height > (screen.height - 50)) {
height = screen.height - 50;
}
if (width > screen.width) {
width = screen.width;
}
settings = 'scrollbars=yes,resizable=yes,menuBar=0,' + 'height=' + height + ',width=' + width + ',top=' + 0 + ',left=' + 0;
win = window.open('', '', settings);
win.document.open();
win.document.write("");
win.document.write("
");
win.document.write('
');
win.document.write("<\/body><\/html>");
win.document.close();
// If the window was already open, set it to the forefront and reizse it.
if (win.window.focus) {
win.window.focus();
win.resizeTo(width, height);
win.moveTo(0, 0);
}
}
function openWindow(name, width, height) {
if (height > (screen.height - 50)) {
height = screen.height - 50;
}
settings = 'scrollbars=yes,resizable=yes,menuBar=0,' + 'height=' + height + ',width=' + width + ',top=' + 0 + ',left=' + 0;
win = window.open(name, '', settings);
if (win.window.focus) {
win.window.focus();
win.resizeTo(width, height + 30);
}
}