if (suspended) { 
if (data.cmi.exit==="suspend") { 
Runtime.onTerminate = function (data, msec) /// or user walks away{	var credit = data.cmi.credit==="credit";	var normal = !data.cmi.mode || data.cmi.mode==="normal";	var suspended = data.cmi.exit==="suspend";	var not_attempted = data.cmi.completion_status==="not attempted";	var success = (/^(completed|passed|failed)$/).test(data.cmi.success_status, true);	var session_time;	if (data.cmi.session_time==undefined) {		var interval=(currentTime() - msec)/1000;		var dur= new ADLDuration({iFormat: FORMAT_SECONDS, iValue: interval});		session_time =dur.format(FORMAT_SCHEMA); 	} else {		session_time=data.cmi.session_time;	}	//var total_time = new Duration(data.cmi.total_time, true);	if (normal || suspended) 	{		data.cmi.session_time = session_time.toString();		total_time=addTimes(data.cmi.total_time.toString(),data.cmi.session_time);		data.cmi.total_time = total_time.toString();		data.cmi.entry="";		if (suspended) {			data.cmi.entry="resume";		    data.cmi.session_time="";		}	}	if (not_attempted) 	{		data.cmi.success_status = 'incomplete';	}};
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/2eaa635aa2baea81cb1b9a000057296db56d3a99/rte.js/buggy/Modules/Scorm2004/scripts/rte.js