In Windows XP Home Edition, the power button's default function is to shut down Windows normally.
To change the function in Windows XP Home Edition, go to 'Control Panel' / 'Power Options' (In category view, go to 'Control Panel' / 'Performance and Maintenance' / 'Power Options'). Click the 'Advanced' tab and under 'Power buttons', you can change the function of the power button.