function showOutput(theUrl, windowName) { var strUrl = new String(theUrl); var strWindowName = new String(windowName); if (strWindowName.length < 1) { strWindowName = "RepSysWeb_Viewer"; } if (strUrl.length > 0) { windowFeatures = "width=800,"; windowFeatures +="height=400,"; windowFeatures +="top=100,"; windowFeatures +="left=100,"; windowFeatures +="resizable=yes,"; windowFeatures +="toolbar=no,"; windowFeatures +="directories=no,"; windowFeatures +="location=no,"; windowFeatures +="status=yes,"; windowFeatures +="menubar=no,"; windowFeatures +="scrollbars=yes,"; windowFeatures +="titlebar=no,"; windowFeatures +="dependent=no"; reportWindow = window.open(theUrl,strWindowName,windowFeatures); } } function getCurrentDateTime() { var fullDateTime = ""; var fullDate = ""; var fullTime = ""; var currentTime = new Date(); var day = currentTime.getDate(); var month = currentTime.getMonth()+1; var year = currentTime.getFullYear(); var hours = currentTime.getHours(); var minutes = currentTime.getMinutes(); fullDate = month + "/" + day + "/" + year; if (minutes < 10) { minutes = "0" + minutes; } if(hours > 11){ hours += " PM"; } else { hours += " AM"; } fullTime = minutes + ":" + hours; fullDateTime = fullDate + " " + fullTime; return fullDateTime; } function showDocument(theUrl, windowName) { var strUrl = new String(theUrl); var strWindowName = new String(windowName); if (strWindowName.length < 1) { strWindowName = "StudioWeb_Viewer"; } if (strUrl.length > 0) { windowFeatures = "width=800,"; windowFeatures +="height=400,"; windowFeatures +="top=100,"; windowFeatures +="left=100,"; windowFeatures +="resizable=yes,"; windowFeatures +="toolbar=no,"; windowFeatures +="directories=no,"; windowFeatures +="location=no,"; windowFeatures +="status=yes,"; windowFeatures +="menubar=no,"; windowFeatures +="scrollbars=yes,"; windowFeatures +="titlebar=no,"; windowFeatures +="dependent=no"; reportWindow = window.open(theUrl,strWindowName,windowFeatures); } } function getCurrentDate() { var newDate = ""; var d=new Date(); var weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"); var monthname=new Array("January","February","March","April","May","June","July","August","September","October","November","December"); newDate = weekday[d.getDay()] + ", "; newDate = newDate + monthname[d.getMonth()] + " "; newDate = newDate + d.getDate() + ", "; newDate = newDate + d.getFullYear(); document.write(newDate); }