here's my code -

```
function doFocus(text) {
        if (text.value == "FirstName") {
            text.value = "";
            text.style.color = "#444444";
        }
     )
function doBlurFName(text) {
        if (text.value == "") {
            text.value = "FirstName"
            text.style.color = "Gray";
            return;
        }
    }

asp:TextBox ID="tb_firstname" runat="server" Text="FirstName" CssClass="FormBox" onfocus="doFocus(this)" onblur="doBlurFName(this)"></asp:TextBox>

```

This is the content page which has a Master Page in the back. Whenever I run this i get the following error -
Microsoft JScript runtime error: Object expected
I'm not sure why this error is coming up and also how to fix it.

Another thing is the dofocus and doblur works fine in the master page.