rnd.today=new Date(); rnd.seed=rnd.today.getTime(); function rnd() { rnd.today=new Date(); rnd.seed=rnd.today.getTime(); rnd.seed = (rnd.seed*9301+49297) % 233280; return rnd.seed/(233280.0); }; function rand(number) { return Math.ceil(rnd()*number); }; function open_window(src, width, height) { url = "/udo/pages/popup.php?width=" + width + "&height=" + height + "&src=" + src; // Force conversion to int // otherwise the + does a string concatenation // height = height * 1; // height = height + 100; popup = window.open(url, "W" + rand(4096), "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=" + width + ",height=" + height); }; function open_window_html(url, width, height) { popup = window.open(url, "W" + rand(4096), "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=" + width + ",height=" + height); };