<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>Test SkyPipe FTP Utility</title>
<META HTTP-EQUIV="no-cache">
<SCRIPT LANGUAGE=JAVASCRIPT>
// put the date at the top of the page (optional)
var UTCstring;
Today = new Date();
UTCstring = Today.toUTCString();
document.write (UTCstring);
//call the routine every 30 seconds
var n = new Date(<!RS_EXPJDATE>);
var nUTCstring;
nUTCstring = n.toUTCString();
document.write ("<br>Next Chart at "+ nUTCstring);
setInterval('Time()',30000);
function Time()
{
// T is the UTC time of the computer clock.
var T=new Date();
// d is the time being passed by SkyPipeFTP via the <!RS_EXPJDATE> tag
// it is the estimated UTC time when new charts will be available.
var d= new Date(<!RS_EXPJDATE>);
// timediff is a variable specifying the difference between these times
var timediff=d-T;
// If the difference is negative force a page reload
if (timediff<0) {
window.location.reload(1)};
}
</SCRIPT>
</head>
<body>
<h1>Recent Strip Charts</h1>
The most recent chart: <br>
Starts <!RS_CSTART> UT<br>
Ends <!RS_CEND> UT<br>
<!RS_CPIC><p>
Total observation: <br>
Starts <!RS_FVSTART> UT<br>
Ends <!RS_FVEND> UT<br>
<!RS_FVPIC><p>
<br>Jim Sky
<br>08/02/2001
<br>
</body>
</html>