I am creating a custom datepicker and everything is working fine except. I can't seem to access the textboxes clientID.

In my custom control I have a textbox and an image, which is a link.
I need to pass the textboxes ClientID with this link, but I can't seem to get it.

Here's my code
VB Code:
  1. Protected Overrides Sub CreateChildControls()
  2.         Controls.Clear()
  3.  
  4.         JHATextBox = New TextBox
  5.         JHATable = New Table
  6.         JHARow = New TableRow
  7.         JHATextCell = New TableCell
  8.         JHAEmptyCell = New TableCell
  9.         JHAImageCell = New TableCell
  10.  
  11.         JHATextCell.Controls.Add(JHATextBox)
  12.         [color=red]JHAImageCell.Text = "<a href=""javascript:LookupDate(Form1, " & Me.JHATextBox.ClientID & ", document.forms[0]." & Me.JHATextBox.ClientID & ".value)""><img alt=""Show Calendar"" src=""/Common/images/btn_calendar.gif"" border=""0"">"[/color]
  13.         JHARow.Cells.Add(JHATextCell)
  14.         JHARow.Cells.Add(JHAEmptyCell)
  15.         JHARow.Cells.Add(JHAImageCell)
  16.         JHATable.Rows.Add(JHARow)
  17.  
  18.         Controls.Add(JHATable)
  19.     End Sub
I have tried JHATextBox.ClientID as well, but I still can't get the clientID of the textBox control.

Any ideas?