<script language="javascript" type="text/javascript">
function updateonlines()
{alert('you are updating the online users set the user field to online');}
function updateofflines()
{alert('you havve to set the online users to offline when they leave the page');}
window.onload = updateonlines;
window.onload = updateofflines;
</script>
SORRY NEW PROBLEM! I FIXED IT IT WORKS. but i have a question, can i use window.onload twice? like the above?