Addressing when animation ends

Guys,

quick query, just need to script for when an animation ends, peform a function. Not done much with animation so dont know how to address frames in an animation to script for when it ends.

any help much appreciated.

Ta

Will

function Start ()
{
   yield WaitForSeconds(animation["myAnim"].length);
   print("Done");
}