change session timeout to 2 weeks
fix selection of products
fix repeated javascript code