function changeSelection(k){
	document.postform.RecurrenceType[k].checked= true ;
	enableAllTime();
}

function allDay(){
	var theForm = document.postform;
	/*
	theForm.shour.options[1].selected = true ;
	theForm.sminute.options[1].selected = true ;
	theForm.ehour.options[24].selected = true ;
	theForm.eminute.options[60].selected = true ;
	*/
	theForm.shour.value = "00";
	theForm.sminute.value = "00";	
	theForm.ehour.value = "23";
	theForm.eminute.value = "59";		
}

function allTime(){
	allDay()
	var theForm = document.postform;
	/*
	theForm.syear.options[22].selected = "true"
	theForm.smonth.options[1].selected = "true"
	theForm.sday.options[1].selected = "true"
	theForm.eyear.options[22].selected = "true"
	theForm.emonth.options[12].selected = "true"
	theForm.eday.options[31].selected = "true"
	*/
	theForm.syear.value = "1755";
	theForm.smonth.value = "01";
	theForm.sday.value = "31";
	theForm.eyear.value = "9998";
	theForm.emonth.value = "12";
	theForm.eday.value = "31";
}

function deAllDay(){
	var theForm = document.postform;
	theForm.allday.checked=false;
	theForm.alltime.checked=false;
}

function deAllTime(){
	document.postform.alltime.checked=false;
}

function enableAllTime(){
	document.postform.alltime.disabled=false;
}

function disableAllTime(){
	document.postform.alltime.checked = false;
	document.postform.alltime.disabled = true;
}

function letDate(n,o) {
	/*
	for (var i=0; i<o.length; i++){
		if (o.options[i].value == n) o.options[i].selected = "true"
	}
	*/
	o.value = n;
}

//function padout(number) { return (number < 10) ? '0' + number : number; }

function optionValue(s) {
	if (isNaN(s.value)) return "abc"; else return s.value;
//	return s.options[s.selectedIndex].value;
}
