<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1034659" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1034659</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/two-functions#comment-1201449</link>
    <description> &lt;p&gt;change the &lt;strong&gt;onclick&lt;/strong&gt; to be &lt;code&gt;onSubmit=&amp;quot;return multiCheck(this)&amp;quot;&lt;/code&gt;&#039;&lt;/p&gt;
&lt;p&gt;and then add something like this to the  section, assuming the fuction call to initcaps is &lt;strong&gt;initCaps(&quot;realname&quot;)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;function multiCheck(tForm)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; if (checkEmail(tForm))&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; initCaps(&amp;quot;realname&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; retrun true;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; else&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false;&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;}&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
Basically, stack the calls to teh functions within another function. However, after looking at the code to your page, just add the call to the InitCaps function from within the email check one.&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Tue, 06 Jun 2006 04:13:27 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1201449 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
