Javascript: added common function getAccountState and account line colors in administration.