javascript to turn sales details on and off