Get form name via JavaScript
<p>I have simple question but I can't fined good solution on the web.</p>

<p>I have this HTML code:</p>

<pre><code> &lt;form name="Register" action="Register.aspx" method="post" runat="server" style="margin-top: 15px;" onsubmit="return validateProfile(this);" &gt;
</code></pre>

<p>And this JavaScript code </p>

<pre><code>function validateProfile(F) {
var G = F.name; 
}
</code></pre>

<p>I want somehow to get the form name, but this code just does not working.</p>

<p>wish for help, thanks!</p>
