Switch between root and user in the same script.

I am writing a korn shell script where i need to switch to root in between and again exit from root to normal user and continue other commands.
Is that possible to switch between these two in the same script?

Check out these links:

Run set of commands as sudo in shell script - Stack Overflow