there are no set wiring for alarms,the yellow and blue are some times used as a tamper circuit,the other colours can be used for the timing circuit,depends on the engineer or the company who fitted it,if you get it wrong,you wont damage anything,you will just cause a tamper,with what you say it sounds like the red and black are the switch wires,they should be fitted to the silver screws on door contact,one each side,(not the mounting screws)
gts, August 2010