calling c# function from a js file..

public class className : MonoBehaviour {

 public static void record() {
    
    blah blah..
    }
}
i want to call above record function from a js file...how can i do that ..
already tried this "className.record();" but its not working.
i want to call the record function here..
this is the code of java file.

if(hit.gameObject.tag == "Ball")
{
//code to call the record function

}
what else method could be to call the record function from a js file.i am using unity 3.5 pro.

UnityScript and C# scripts are compiled into different assemblies. You need to put the C# in a folder called Plugins or Standard Assets and it will be accessible from the JS file.