function openwin(src) {
            window.open(src, 'info', 'toolbar=no,menubar=no,location=no,scrollbars=no,resize=no,height=500,width=400');
}
function openwin2(src) {
            window.open(src, 'info', 'toolbar=no,menubar=no,location=no,scrollbars=no,resize=no,height=800,width=600');
}

function showoptions() {
    // expand or contract 
    var obj;
    obj = document.getElementById('repeat').value;
    
    document.getElementById('dailyoptions').style.display = 'none';
	document.getElementById('weeklyoptions').style.display = 'none';
	document.getElementById('monthlyoptions').style.display = 'none';

	if (obj == "never") {
		document.getElementById('untiloptions').style.display = 'none';
		return;
	}
	
	document.getElementById('untiloptions').style.display = 'block';
	
	if (obj != "yearly")
		document.getElementById(obj+'options').style.display = 'block';
}
