function changeToOptions(fromValue) {
    ajaxGet("/calendaroptions.php?from=" + fromValue, onOptionsReady, true);
}

function onOptionsReady(content) {
    var sel = document.getElementById("dateto");
    var opts = content;
    if (document.all) {
        opts = '<option>vaallinfernoie</option>' + opts;
    }
    sel.innerHTML = opts;
    if(document.all) { // Or any IE testing
        sel.outerHTML = sel.outerHTML;
    }

}