Game scene load

Im makeing a game like slender and i need it to load a scene when i collect all 8 pages.
heres my script so far:

static var PagesCollected : int;
var GuiDisplay : GUIText;
static var PageCollected : boolean;
var waitTime : int;

function Update(){

 if (PagesCollected){



function PageAdded(){

 GuiDisplay.enabled = true;
 GuiDisplay.guiText.text = PagesCollected + "/8" + " pages collected";
 yield WaitForSeconds (waitTime);
 PageCollected = false;

Instead of button you would check if player has all pages, and then do the same thing.