registeration form

Is there a function that calls the registeration form.  I want to have private pages, but want to display the registeration form, incase the new user want to register.  Currently I tried to put the whole register.php code there, but it is a constant headache.  Any solutions will be great.