Sorry to break it to you, but this is stated by Wikipedia and also by Wrestling officials, unofficially.
WWE, RAW, Friday Night Smackdown or any other fights between famous wrestlers that is broadcasted on TV is scripted. Everything that is not on TV is illegal.
But that does not mean that the wrestlers do not put effort in this. it's pretty hard to hit the opponent in the place you were told to and then lift him and throw him in an exact place from where he'll do the next scripted move. And it's pretty dangerous. 85% of the time, any blood you see is fake, but each and every bruise is scripted. Everything must be done with precision.
Someone in my school was addicted to wrestling and tried a move, and he didn't had enough training and precision, and the other guy , the victim wasn't a wrestling fan, so he did not know what to do. The first guy actually broke the second guy's spine, and now the second guy is paralized in a wheelchair, unable to move, speak, eat or even blink.