lected = false;
    var optionName = new Option(text, value, defaultSelected, selected)
    object.options[object.length] = optionName;
}


function isDate(sDate) {
    var scratch = new Date(sDate);
    if (scratch.toString() == "NaN") {
        return false;
    } else {
        return true;
    }
}


function setSelectedIndex(e, v) {
    for ( var i = 0; i < e.options.length; i++ ) {
        if ( e.options[i].value == v ) {
            e.options[i].selected = true;
            return;
        }
    }
}

