Mouselook with lock

i have a scipt (mouselook) it follows the mouse.
But can somebody make a lock in the script that it wont get further dan 45 degrees up
And 45 degrees down

i am using blender 2.55

Aim down and you will fall of the platform:game.blend (588 KB)