var sw = screen.width; var sh = screen.height; if (sw >= 800) { var x = ((sw-300)/2)-5; var y = ((sh-350)/2)-25; } else { var x = 0; var y = 0; } timeout = 0; // Close window after __ number of seconds? 0 = do not close, anything else = number of seconds function Start(URL, WIDTH, HEIGHT, TITLE) { windowprops = "left=0,top=0,scrollbars=no,width=" + (WIDTH) + ",height=" + (HEIGHT); text = "" + TITLE ; if (timeout != 0) text +=" - closes after " + timeout + " sec."; text +=""; text +="
"; text += "print map | "; text += "close map"; text += ""; preview = window.open("", "preview", windowprops); preview.moveTo(x,y); preview.window.focus(); preview.document.open(); preview.document.write(text); preview.document.close(); }