// login.js

onload = function(){
    icity = document.getElementById('city');
    ipw1 = document.getElementById('pw1');
    icid2 = document.getElementById('cid2');
    ipw2 = document.getElementById('pw2');
}

function sendFormLogin(){
    ipw1.value = SHA1(ipw1.value);
}

function sendFormRegister(){
    ipw2.value = SHA1(ipw2.value);
    icid2.disabled = true;
}
