using globals from wp_link_pages function

I think I figured it out. Most of WordPress is based on global variables. Even the main loop is pulling a giant global variable. So I guess it’s ok since I’m not modifying the actual values here – just pulling it out. It might not be a bad idea to throw $numpages and $page into new variables and then call those new variables to prevent accidental modification of their global versions.