Hi Hanzie,
The ClientID is just the id string that the control will render it does not give a reference to the control itself, to get the value of the TextBox you would do it like this:
var dob = document.getElementById( '<%= txtMessage.ClientID %>').value;
or more clean using jQuery
var dob = $('#<%= txtMessage.ClientID %>').val();
Hope it helps,
Joe