Whats wrong w/ this action script

hi all!
i’m a nOOb and am trying to get some a.s. to recognize if i already have a page open so my button doesn’t reopen/reload it again. i am using someone else’s script so if you see something wrong (yes, i’m getting errors) could you please post the way it should be so i could copy and paste it???
i would normally ask how to fix something but script with me is like greek!

code:
on (release) {
_root.contents.loadMovie(“home.swf”);
}
if(_global.homeLoaded){
//do nothing
}else{
_root.contents.loadMovie(“home.swf”);
_global.songsLoaded = false;
_global.lyricsLoaded = false;
_global.picsLoaded = false;
_global.linksLoaded = false;
_global.contactLoaded = false;
}

site:
www.freewebs.com/ex_iled

files:
[FONT=Arial][COLOR=#800080]http://briefcase.yahoo.com/downloadgeek[/COLOR][/FONT]

thank you so much!!!