what brand of aftermarket alarm are you using? I think the first thing I would try is to program your aftermarket alarm remote to the Nissan alarm.

Its worth a shot. Here are directions, make sure you lock the doors with the switch once you are inside after step 1:
http://www.xterraparts.com/html/instruct/remote.html