input validation parameter 'unselected' replaced by new _optsel() function
added constant _NONE