function checkLogin(id,k)
{
    if (k.keyCode == 13)
    login();
}    
function login() {
    if (document.getElementById("email").value.length > 0 && document.getElementById("password").value.length > 0)
    {
    document.getElementById("sendlogin").disabled=true;
    msg = "action=login&email="+document.getElementById("email").value;
    msg += "&password="+document.getElementById("password").value;
    sendHttp("POST","login.php",msg,registration);
    }
}

function registration() {
    //alert(response);
    postit("index.php", { user: Server['user'], first: Server['first'], last: Server['last'], email: Server['email'] });
}
/*
function registration() {
//    alert(response);
    document.getElementById("sendlogin").disabled = false;
if(Server["status"] != "member")
    {
    alert(Server["msg"]);
    }
else
    {
    hello = '<center><div class="idblock" >';
    hello += 'Welcome back<br /> ' + Server["first"] + " " + Server["last"]+'<p />';
    hello += '<span class="submit" onclick="editProfile()"><u>Edit your profile</u></span></div></center>';

    document.getElementById("welcome").innerHTML = hello;
    document.getElementById("welcome").style.backgroundImage = "url(images/loggedin.gif)";
    }
}
*/

