The Select object represents a select control and is usually accessed through its parent object. EG:

intOptsInSelect = document.frmX.selX.length;
intOptSelected = document.frmX.selX.selectedIndex;
strOptValue = document.frmX.selX.options[intOptSelected].value;
strOptDisplayedText = document.frmX.selX.options[intOptSelected].text;
document.frmX.selX.focus() // Sets focus on the select control.

When you have a select list, you could have a default item chosen. However if you want to make the user select an option, make the default option a fake option.

<select size="3" name="select1" id="select1">
    <option value="0" selected="selected">To Edit or Delete, select an option then press "Edit" or "Delete"</option>
    <option value="1">Connie</option>
    <option value="2">York</option>
    <option value="3">Amy</option>
    <option value="4">Bush</option>
</select>

The validation code would be something like this:

function valid(){
    if (document.form1.select1.options[0].selected){
        alert("You must select an Organization to perform that action");
        return false;
    }
}


GeorgeHernandez.comSome rights reserved