title: JavaScript syntax check with JavaScript?
body: <p>How could a Commando like me check if inputed code is a valid JavaScript source using some JavaScript built-in methods (if any!) or in any other possible way!? (Something like a preparser found in various IDE's like NetBeans, Eclipse, etc)?</p>
  
  <p>I have to check if code is OKAY and then window.eval()-it to the current document instance.</p>
  
  <p>Thank you alot, JavaScript Commando's from around the world.</p>