4 // JavaScript function library for WebCit
10 // This code handles the popups for instant messages.
15 if (document.layers) {browserType = "nn4"}
16 if (document.all) {browserType = "ie"}
17 if (window.navigator.userAgent.toLowerCase().match("gecko")) {
21 function hide_page_popup() {
22 if (browserType == "gecko" )
23 document.poppedLayer = eval('document.getElementById(\'page_popup\')');
24 else if (browserType == "ie")
25 document.poppedLayer = eval('document.all[\'page_popup\']');
27 document.poppedLayer = eval('document.layers[\'`page_popup\']');
28 document.poppedLayer.style.visibility = "hidden";
32 // Given a unix timestamp, outputs a date/time using the browser's
33 // timezone and locale.
34 function output_datetime(unixtimestamp) {
36 now.setTime(unixtimestamp * 1000);
37 document.write(now.toLocaleString());