function confirm() {
WshShell = new ActiveXObject("WScript.Shell");
WshSysEnv = WshShell.ExpandEnvironmentStrings("%ECFID%");
document.form1.techusername.value = WshSysEnv;
}

How could I use the %ECFID% variable to make an <option> in a drop down list selected?

Psuedocode:

Code:
If %ECFID% = "Joe" {
   document write: <option value="Joe" selected>Joe</option>
}