OK, after weeks of cruising the Yii web sites I have finally figured out that a helper class should be put in the compnents directory. Now I have a function that I want to write that will require a .js file.
My question is: In a static class (link CHtml) where/how do I register the script? I have it in genEmailLink() but that registers the script EVERY time I call the function. What if I have a contact page that has 30 email links? This call to registerXXX() will be called 30 times.