	function goTeam(){
		box = document.forms[0].teams;
		destination = box.options[box.selectedIndex].value;
		if (destination && destination != "-") location.href = destination;
		if (destination == "-"){
			alert("Please select a team.");
		}
		if (!destination){
			alert("No URL specified yet, do not launch.");
		}
	}
	
	function popPaper(team_code, size){
		URL = "pop_wallpaper.html?team_code=" + team_code + "&size=" + size;
		if(size == 800){
			w = 800;
			h = 600;
		}else{
			w = 1024;
			h = 768;		
		}
		window.open(URL, 'popWall', 'width=' + w + ',height=' + h);
	}

	function popInstructions(){
			window.open('instructions.html', 'popInstr', 'scrollbars=yes,width=300,height=200');
	}
	
	function getURLParams( url ) {
		var params = new Array();
		var matches;
		if ( matches = /^.*\?(.*)$/.exec(url) ) {
			var qs = matches[1];
			var pairs = qs.split("&");
			for (var i = 0; i < pairs.length; ++i) {
				var pair = pairs[i];
				if ( matches = /^(.*)=(.*)$/.exec(pair) ) {
					var key = matches[1]
					params[ matches[1] ] = matches[2];
				}
			}
		}
		return params
	}

