How to enable/disable GUIText through javascript.

I am trying to get a guitext to disable when I click the mouse. I have made this script:

var house;
house = GameObject.FindWithTag("house");
function OnMouseDown () 
{
house.GetComponent.GUIText.enabled = false;
}

However, when I click the text stays showing. What am I doing wrong?

That's incorrect syntax; look up GetComponent in the docs for how to use it. However you don't actually need to in this case. First, you should declare the type for variables:

var house : GameObject;

Code that "does stuff" should be inside a function:

function Start () {
    house = GameObject.FindWithTag("house");
}

Then use the guiText shortcut:

function OnMouseDown () {
    house.guiText.enabled = false;
}