Tag - functions of an applet in java