added javascript from Ben
javascript login windows