function Registration (
			Id ,
			SuspendedActivity,
			TrackingEnabled,
			Package,
			Activities,
			GlobalObjectives){
	this.Id = Id;
	this.SuspendedActivity = SuspendedActivity;
	this.TrackingEnabled = TrackingEnabled;
	this.Package = Package;
	this.Activities = Activities;
	this.GlobalObjectives = GlobalObjectives;
}			

Registration.prototype.FindActivityForThisScormObject = Registration_FindActivityForThisScormObject;


function Registration_FindActivityForThisScormObject(databaseId){
	
	for (var i=0; i < this.Activities.length; i++){
		if (this.Activities[i].ScormObjectDatabaseId == databaseId){
			return this.Activities[i];
		}
	}
	
	Debug.AssertError("Registration_FindActivityForThisScormObject could not find the activity for learning object " + databaseId);
	
	return null;
}
