Switching scene (JavaScript)

Sorry if this seems odd, but I did google it and didn’t find an answer.

How would I make so when a GUI button was pressed the games scene would switch in JS?

(Basically I Have a Menu GUI and I want so when I press “Play” that it switches to the game scene. (Game scene called “Main” ).
Sorry if this seems newbish ;(

My code so far:

function OnGUI {
	if (GUI.Button (Rect (10,10,150,100), "Singleplayer")) {
		/* Switch the scene */
	}
}

Hey.

    function OnGUI {
        if (GUI.Button (Rect (10,10,150,100), "Singleplayer")) {
            Use Application.LoadLevel("Main"); /* Switch the scene */
        }
    }

Good luck with your game!

I suspect your google is broken. When I search for unity change scene in Google google gives me loads of results, any of which are helpful.

Oh yeah, thanks guys I have my google settings kinda eff’d up apparently. I reset them to default, I know you didn’t intend to help me in that way, but you just saved my google, thanks Graham!