
// NO longer used; keeping around for backward compatitibilty

function unpackInterval(mainControl)
{
	var intStr = eval("document.forms[0]." + mainControl).value;
	var val = Number(intStr);
	var days = parseInt(val/86400);
	var hours = parseInt((val%86400)/3600);
	var minutes = parseInt(((val%86400)%3600)/60);

	var daysControl = eval("document.forms[0]." + mainControl + "Days");
	var hoursControl = eval("document.forms[0]." + mainControl + "Hours");
	var minutesControl = eval("document.forms[0]." + mainControl + "Minutes");

	daysControl.value = days;
	hoursControl.value = hours;
	minutesControl.value = minutes;
}

function packInterval(mainControl, daysControl, hoursControl, minutesControl)
{
	var newVal = (minutesControl.value * 60) + (hoursControl.value * 3600) + (daysControl.value * 86400);
	mainConrol = eval("document.forms[0]." + mainControl.name);
	mainControl.value = newVal;
}
