<!--

// showCourse
//
// arguments
//	id			a string containing the course ID for the couse you wish to display.
//				This may be a comma delimited list of course IDs
//	with_elm	a string containing what button to add to the window.  Valid
//				values are "back", "close", "all", or "" (This argument may be omitted)
// returns
//	false.  This is for your convenience so you can call the function like:
//	onClick="return showCourse('cs 450','close')";
//	Returning a false value in the "onClick" statment  will prevent the browser
//	from following the link in the parent window.


function showCourse(id, with_elm, show) {
	var with_elm_code = '';
	var show_code = '';
	
	if (with_elm) {
		with_elm = escape(with_elm);
		with_elm_code = '?with='+with_elm;
	}
	if (show) {
		show = escape(show);
		show_code = 'show='+show;
		if (with_elm_code) {
			show_code = '&'+show_code;
		} else {
			show_code = '?'+show_code;
		}
		
	}
	
	window.open('/courses/'+id+'/'+with_elm_code+show_code, 'Courses', 'toolbar=0,location=0,directories=0,menubar=0,scrollbars=1,resizable=1,top=150,left=150,width=455,height=280');
	return false;

}

//-->
