Detecting and changing the monitor resolution

Hi,

I´m producing a flash projector to run from a CD in 1024x768 resolution. :hangover:

Is there a way to detect the monitor´s resolution, and if it´s different form the CD, to change it to run it with no problems? If so, is it save for the monitor, without changes of damaging it?

Thanks a lot for any ideas… :thumb: