rem: if (timer == "regular") { var currentEday = document.channelselector.eday.selectedIndex; var eday = document.channelselector.eday.options[currentEday].text; var currentEmonth = document.channelselector.emonth.selectedIndex; var emonth = document.channelselector.emonth.options[currentEmonth].text; var currentEyear = document.channelselector.eyear.selectedIndex; var eyear = document.channelselector.eyear.options[currentEyear].text; } 
add: var currentEday = document.channelselector.eday.selectedIndex; var eday = document.channelselector.eday.options[currentEday].text; var currentEmonth = document.channelselector.emonth.selectedIndex; var emonth = document.channelselector.emonth.options[currentEmonth].text; var currentEyear = document.channelselector.eyear.selectedIndex; var eyear = document.channelselector.eyear.options[currentEyear].text; 
context: function addTimerEvent(){	var url = "";	var currentTimer = document.channelselector.type.selectedIndex;	var timer = document.channelselector.type.options[currentTimer].value;	var currentChannel = document.channelselector.channel.selectedIndex;	var channel = document.channelselector.channel.options[currentChannel].value;	if (timer == "regular")	{		var currentSday = document.channelselector.sday.selectedIndex;		var sday = document.channelselector.sday.options[currentSday].text;		var currentSmonth = document.channelselector.smonth.selectedIndex;		var smonth = document.channelselector.smonth.options[currentSmonth].text;		var currentSyear = document.channelselector.syear.selectedIndex;		var syear = document.channelselector.syear.options[currentSyear].text;	}	var currentShour = document.channelselector.shour.selectedIndex;	var shour = document.channelselector.shour.options[currentShour].text;	var currentSmin = document.channelselector.smin.selectedIndex;	var smin = document.channelselector.smin.options[currentSmin].text;	if (timer == "regular")	{		var currentEday = document.channelselector.eday.selectedIndex;		var eday = document.channelselector.eday.options[currentEday].text;		var currentEmonth = document.channelselector.emonth.selectedIndex;		var emonth = document.channelselector.emonth.options[currentEmonth].text;		var currentEyear = document.channelselector.eyear.selectedIndex;		var eyear = document.channelselector.eyear.options[currentEyear].text;	}	var currentEhour = document.channelselector.ehour.selectedIndex;	var ehour = document.channelselector.ehour.options[currentEhour].text;	var currentEmin = document.channelselector.emin.selectedIndex;	var emin = document.channelselector.emin.options[currentEmin].text;	var descr = document.channelselector.descr.value;	var currentAfterEvent = document.channelselector.after_event.selectedIndex;	var after_event = document.channelselector.after_event.options[currentAfterEvent].value;	var currentAction = document.channelselector.action.selectedIndex;	var action = document.channelselector.action.options[currentAction].value;	if (timer == "repeating")	{		var mo = "off";		var tu = "off";		var we = "off";		var th = "off";		var fr = "off";		var sa = "off";		var su = "off";		if (document.channelselector.mo.checked)			mo = "on";		if (document.channelselector.tu.checked)			tu = "on";		if (document.channelselector.we.checked)			we = "on";		if (document.channelselector.th.checked)			th = "on";		if (document.channelselector.fr.checked)			fr = "on";		if (document.channelselector.sa.checked)			sa = "on";		if (document.channelselector.su.checked)			su = "on";		url = 'addTimerEvent?timer=repeating&ref=' + channel + '&shour=' + shour + '&smin=' + smin + '&ehour=' + ehour + '&emin=' + emin + '&mo=' + mo + '&tu=' + tu + '&we=' + we + '&th=' + th + '&fr=' + fr + '&sa=' + sa + '&su=' + su + '&descr=' + descr + '&after_event=' + after_event + '&action=' + action;	}	else		url = 'addTimerEvent?timer=regular&ref=' + channel + '&sday=' + sday + '&smonth=' + smonth + '&syear=' + syear + '&shour=' + shour + '&smin=' + smin + '&eday=' + eday + '&emonth=' + emonth + '&eyear=' + eyear + '&ehour=' + ehour + '&emin=' + emin + '&descr=' + descr + '&after_event=' + after_event + '&action=' + action;	NewWindow(url, 'add', '200', '200', 'no', '5000');}
meta: 6281	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6281/ea306e0f517ea85467362c84636574b9af7a938d/timer.js/clean/tuxbox/enigma/data/htdocs/timer.js