' If we have to set the focus on a control If cFocus.Length > 0 Then 'loTextbox = oProcess.oPage.FindControl(cFocus) ' If we have found the control If Not loTextbox Is Nothing Then 'loTextbox.Focus() oProcess.cScript = oProcess.cScript + oApp.cCR oProcess.cScript = oProcess.cScript + "loTextbox=document.getElementById(""" + cFocus + """)" + oApp.cCR oProcess.cScript = oProcess.cScript + "loTextbox.focus()" + oApp.cCR End If End If