JS function variable passing

Hi,
This problem is REALLY bugging me now… esesntially when I try to pass information to a function it stops it working. I have NO idea why.

In the HTML (generated as PHP, not that it should matter):


<a href='#' onclick='hider(premade)'>== Pre-Made Parts ==</a>

In the JavaScript file:


function hider(targ){
   alert("x");
} 

If I remove the “premade” from the calling HTML it works fine. I’ve tried using all manner of quotes and speechmarks. I tried canging the name of the function, the name of teh variable it’s translated to… nothing. It must be something stupidly simple. Anyone care to be my second set of eyes?

Thanks in advance.