Call function in another script?

What do I use to call a function in another script?

In C#, you call

ScriptName scriptName = this.gameObject.GetComponent<ScriptName>();

under Update() then check/edit stuff under scriptName.whatever. No idea how it works in UnityScript.

Feel free to change this.gameObject to whichever object you attached the code to.