﻿function OnkeyPressLogin(evt) {
    var evtObj = window.event ? event : evt;
    var unicode = evtObj.charCode ? evtObj.charCode : evtObj.keyCode;

    if (unicode == 13) {
  LogIn();
    }
}

function RefreshPage() {
    window.location.href = CurrentURL;
}

function CreateNewMember() {

    Event_GoToURL(URLCreateNewMember);
}

function ForgotPassword() {

    Event_GoToURL(URLForgotPassword);
}

function ChangePassword() {

    var txtUsernameHtml = document.getElementById("txtUsernameHtml");

    Event_GoToURL(URLChangePassword);
}

function ChangeDisplayPicture() {

    var txtUsernameHtml = document.getElementById("txtUsernameHtml");

    Event_GoToURL(URLChangeDisplayPicture);
}

function ChangeInformation() {

    var txtUsernameHtml = document.getElementById("txtUsernameHtml");

    Event_GoToURL(URLChangeInformation)
}

function GotoChatroomDiscussion() {
    if (frames["frameContents"] != undefined) {
        var url = frames["frameContents"].window.location.href;
        Event_GotoChatroomDiscussionByLogin(url)
    }
}
