function editLink()
{
for(i=0;i<(p=document.getElementsByTagName('div')).length;i++)
{
if(p[i].type=='text')
{
str=p[i].id.split("_"); //str[0]=TXT; [1]=DEF; [2]=div|p
if("L" ==str[0] || "M" ==str[0] ||"R" ==str[0] )
{
alert(p[i].id);
}
}
}
}
editLink();
|