Aftermarket keyless entry

mazda5 2.0 sport
Hi,my keyfob on my mazda5 2096 is not working and a replacement is to much money.i have bought a aftermarket keyless entry system but i cannot find what lock type i have.i have 9 wires coming from the lock but thw wiring diagram does not make it clear which ones are for the cental locking

Thanks Shaun