You can detect the screen resoultion with javacript methods
but you cannot change the screen resolution, if you were able to do that, then you would be giving javascript unacceptable access to the client machine.
"Failure is not when you fall down; its only when you fail to get up again."