Javascript Excute Função de Tex

var theInstructions = "alert('Hello World'); var x = 100";

var F=new Function (theInstructions);

return(F());
Misty Markhor