It's an ELO ranking system. I don't think anyone has bothered to work out specific weightings, but you can get an overview of the system here. Basically, the number of points to gain or loose depends on the difference in rank between you and your opponent.