 auto_online_handle_login_status = (data) ->
 	auto_online_event = CONST.status.auto_online_event_end
 	if data.status == CONST.status.not_logged_in
-		login_net_post username,password,auto_online_login_succ,auto_online_login_fail
+		login_net_post auto_online_login_succ,auto_online_login_fail
 	else if data.status == CONST.status.logged_in
 		auto_online_set_event CONST.auto_online_intervals.NORMAL
 	else if data.status == CONST.status.cant_reach_net

			change_icon CONST.status.unconnected
	)

login_usereg = (username, md5_password, successCallback, failCallback) ->
	$.post(
		CONST.url.login
		{
			action: "login"
			user_login_name: username
			user_password: md5_password
		}
		(result) ->
			if result == CONST.flag.login_ok

parser = new DOMParser()

auto_online_interval = CONST.auto_online_intervals.NORMAL
auto_online_event = CONST.status.auto_online_event_end

# about token

get_token = () ->
	username = localStorage.getItem 'username', null
	password = localStorage.getItem 'password', null
	if not username or not password
		set_error "no_token"
		throw new Error("no_token")
	return [username, password]

# will convert unit to Byte
unit_convert = (input) ->
