//
// getTimestamp()
//  This function sets the value of a hidden
//  variable in the login form to the current
//  time, expressed in seconds since the
//  epoch, according to the client's computer.
//
function getTimestamp(form)
{
 var t = new Date();
 var timestamp;

 // Date.getTime() returns milliseconds,
 // so divide by 1000 for seconds
 timestamp = Math.floor(t.getTime() / 1000);

 form.time.value = timestamp;

 return true;
}