function openWindow(url, name){
	popupWin = window.open(url, name, 'scrollbars,resizable,width=640,height=500', true)
}
	function pathstr(compnum, useparams){	
		var href = location.href;
		href = href.replace(/&/g, "!");
		var fromstr = "&from=" + (useparams == 'true'? href : location.pathname);
		return "defaultredir.asp?cid=" + compnum + fromstr;	
	}
	
	function competitionChanged(useparams){
		var comp = document.getElementById("compSelect").value;
		location = pathstr(comp, useparams);
	}
	
	function currentStream(lastCompNum, useparams){
		location = pathstr(lastCompNum, useparams);
	}


