function toggleCourseDescription(idNumber)
{
	if (document.getElementById)
	{
		// this is the way the standards work
		var s1 = 'coursedesc-content-'+idNumber;
		var aDiv1 = document.getElementById(s1);
		var class1 = aDiv1.className;
		//var text = '';
		if (class1 == 'coursedesc-content-view')
		{
			aDiv1.className = 'coursedesc-content-hide';
			//text = 'View Description';
		}
		else if (class1 == 'coursedesc-content-hide')
		{
			aDiv1.className = 'coursedesc-content-view';
			//text = 'Hide Description';
		}		
		
		//var s2 = 'course-desc-link-'+idNumber;
		//var aDiv2 = document.getElementById(s2);
		//var children=aDiv2.childNodes;
		//for(i=0;i<children.length;i++) {
			//aDiv2.removeChild(children.item(i));
		//}
		//aDiv2.appendChild(document.createTextNode(text));
	}
	else if (document.all)
	{
		// this is the way old msie versions work
		var s1 = 'coursedesc-content-'+idNumber;
		var aDiv1 = document.all[s1];
		var class1 = aDiv1.className;
		//var text = '';
		if (class1 == 'coursedesc-content-view')
		{
			aDiv1.className = 'coursedesc-content-hide';
			//text = 'View Description';
		}
		else if (class1 == 'coursedesc-content-hide')
		{
			aDiv1.className = 'coursedesc-content-view';
			//text = 'Hide Description';
		}		
		
		var s2 = 'course-desc-link-'+idNumber;
		//var aDiv2 = document.all[s2];
		//var children=aDiv2.childNodes;
		//for(var i=0;i<children.length;i++) {
			//aDiv2.removeChild(children.item(i));
		//}
		//aDiv2.appendChild(document.createTextNode(text));
	}
	else if (document.layers)
	{
		// this is the way nn4 works
		var s1 = 'coursedesc-content-'+idNumber;
		var style2 = document.layers[s1].style;
		style2.display = style2.display? "":"block";
	}	
}

function makeBusy()
{
	document.getElementById("busy-indicator").style.display = "block";
	document.getElementById("busy-mask").style.display = "block";
}

function notBusy()
{
	document.getElementById("busy-indicator").style.display = "none";
	document.getElementById("busy-mask").style.display = "none";
}

function selectCourse(courseId)
{
	makeBusy();
	var url = 'course.do?dispatch=add&id='+courseId;
	retrieveURL(url,null,notBusy);
}
