var stat = currentAPI.GetValueIntern("cmi.entry"); save_global_objectives(); 
function onItemUndeliver(item) // onUndeliver called from sequencing process (EndAttempt){		// customize GUI	updateNav();	updateControls();		// throw away the resource	// it may change api data in this	removeResource();			// throw away api, and try a API.Terminate before (will return "false" if already closed by SCO)	if (currentAPI) 	{		syncCMIADLTree();				currentAPI.Terminate("");		save();		var stat = currentAPI.GetValueIntern("cmi.entry");		save_global_objectives();						}	currentAPI = window[Runtime.apiname] = null;		// set some data values 	if (currentAct) 	{		currentAct.accessed = currentTime()/1000;		if (!currentAct.dirty) currentAct.dirty = 1;	}	}
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/34b4d80f3087cf94f1bd6034b1da0a504cd88664/main.js/buggy/Modules/Scorm2004/scripts/main.js