Yes you have the right switch
connect top row (A to com, B1 to L1, B2 to L2)
connect bottom row (B to com, A1 to L1, A2 to L2)
basically you have a 2 gang, 2 way switch so when either switch is up com is connected to L1 and when the switch is down com is connected to L2
Mr Handy Andy
June 2008