function login(cc)
{
	orgPassword = document.getElementById('password').value;
	document.getElementById('password').value = hex_sha1(hex_sha1(orgPassword) + cc);
}
/* --- Timer --- */
function Timer(action,time, repeat)
{
    this.action = action;
    this.time = time;
    this.repeat = repeat;
}
Timer.prototype.start = function()
{
    if (this.repeat > 0)
    {
        this.timerId = setInterval(this.action,this.time);
    }
    else
    {
        this.timerId = setTimeout(this.action,this.time);
    }
}
Timer.prototype.reset = function()
{
    clearTimeout(this.timerId);
    this.start();
}
Timer.prototype.cancel = function()
{
    clearTimeout(this.timerId);
}
Timer.prototype.action = '';
Timer.prototype.time = 0;
Timer.prototype.timerId = '';
Timer.prototype.repeat = 0;