var jsProject = new Object();						// defines a namespace

jsProject.ToggleDisplayArea = function ( aobj ) {
	// Called when a [+] or [-] is clicked

	var oImg = aobj.firstChild;						// reference to the img
	var strDivName = oImg.id.replace("img","tr");
	var oDiv = this.GetObj(strDivName);

	if ( oImg.src.indexOf("plus") > -1 ) {
		// open
		oImg.src = oImg.src.replace("plus", "minus");
		oDiv.style.display = "";
	} else {
		// close
		oImg.src = oImg.src.replace("minus", "plus");
		oDiv.style.display = "none";
	}
}

jsProject.GetObj = function ( astrName ) {
	// Gets an object by ID
	
	if ( ! document.getElementById ) { alert ( "jsProject.GetObj(): Your browser is too old." ); return null; }

	var obj_ = document.getElementById ( astrName );
	
	if ( ! obj_ ) { alert ( "jsProject.GetObj(): could not find id [" + astrName + "]" ); return null; }
	
	return obj_;
}
