function newWindow(file,windows) { document.location.href=file } function newProfile(file,windows) { alert("Sorry, but you need to login or register before you can view user profiles") } function newMessage(file,windows) { alert("Sorry, but you need to login or register before you can send private messages to other users")}