function ADLDuration(iOptions)  {	var iOptions = ilAugment({		iFormat: FORMAT_SECONDS,		iValue: 0		}, iOptions );	var iFormat = iOptions.iFormat;	var iValue = iOptions.iValue;	if (iValue == 0)	{		this.mDuration = 0;	}		var hours = null;	var min = null;	var sec = null;	switch (iFormat)	{		case FORMAT_SECONDS:		{            var secs = 0.0;			secs = iValue;			//this.mDuration = secs * 1000.0;			this.mDuration = parseFloat(secs);			break;		}		case FORMAT_SCHEMA:		{			// todo: make this work for Y/M/D            var locStart = iValue.indexOf('T');            var loc = 0;			if ( locStart != -1 )			{				locStart++;				loc = iValue.indexOf("H", locStart);							if ( loc != -1 )				{					hours = iValue.substring(locStart, loc);					this.mDuration = parseFloat(hours) * 3600;					locStart = loc + 1;				}				loc = iValue.indexOf("M", locStart);				if ( loc != -1 )				{					min = iValue.substring(locStart, loc);					this.mDuration += parseFloat(min) * 60;					locStart = loc + 1;				}				// todo: make this work				loc = iValue.indexOf("S", locStart);				if ( loc != -1 )				{					sec = iValue.substring(locStart, loc);					this.mDuration += parseFloat(sec);				}			}			break;		}		default:		{			// Do nothing		}	}}
6251	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6251/9a61eaa66de0d3d4142429f2960cc6a4b80b98e5/ADLDuration.js/buggy/Modules/Scorm2004/scripts/adl2js/ADLDuration.js