First shot at getting a session management system in place. Login and logout pages are there, and auth seems to be working and sufficiently secure for the moment. Sessions last indefinitely and are cookie-based.
function expand_track(tid)
{
var div = document.getElementById('track_inner_' + tid);
if ( div.style.display == 'block' )
{
div.style.display = 'none';
}
else
{
div.style.display = 'block';
}
}