Help needed............Linking dynamically Created TextFeilds with mouse click

Hi All

I have created some dynamic textfields. i want to put links to these textfields. i have a variable named **firstname. **I have used this code to create these textfields

[size=1]for(i=1 ; i < int(mrcounter) + 1 ;i++)
{
var p
p=p+25;
fn=“fn”+i;
var firstname
firstname=“firstName”+i;
createTextField(fn,i,83,80+p,200,18);
_root[this.fn].type = “dynamic”;
_root[this.fn].multiline = false;
_root[this.fn].wordWrap = true;
_root[this.fn].border = true;
_root[this.fn].variable = firstname;
_root[this.fn].selectable = true;
_root[this.fn].html = true;
_root[this.fn].htmlText ="<A HREF=‘http://localhost/data.asp?Record=firstname’>[COLOR=red]firstname[/COLOR]</A>";

Here the [COLOR=#ff0000]firstname [/COLOR][COLOR=black]is my variable and this giving me problem. i want my data to be here and i should be able to click on that data.[/COLOR]

Please can anyone help me out.

Thanks
Pavan