title: CreateElementwithId function dont work
body: <p>Im trying to get a function that writes elements with ID.
  but i cant get It work.</p>
  
  <p>this is what i have. </p>
  
  <pre><code>function createElementWithId(elementName, idName)
  {
      var id = document.createElement(elementName);
      id.idName = idName;
      return id;
  }
  </code></pre>
  
  <p>Any ideas ?</p>
  
  <p>Thanks.</p>