timeout =0; // Close window after __ number of seconds? // 0 = do not close, anything else = number of seconds function Startvid(URL, WIDTH, HEIGHT, TITLE) { wleft = (screen.width-WIDTH)/2; wtop = (screen.height-(HEIGHT+110))/2; windowprops = "left="+wleft+",top="+wtop+",scrollbars=auto,resizable=yes,width=" + (WIDTH+10) + ",height=" + (HEIGHT+28); text = "" + TITLE ; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; text += ""; if (timeout != 0) text +="
Preview closes after " + timeout + " seconds."; text += "If you can't see the video, please download Flash Player."; text += "close window"; text += ""; preview = window.open("", "preview", windowprops); preview.document.open(); preview.document.write(text); preview.window.focus(); preview.document.close(); }