Two windows.onload on same page
<p>I have some external js scripts that i offer to my users to be embedded on their site. Individually they work fine, but if you try to append two in the same page one of them crash (no error on console). I think the problem have to be with calling windows.onload several times. </p>

<p>Here how two embeded codes looks like:</p>

<h2>Code 1</h2>

<pre><code>  &lt;script type="text/javascript" src="http://mysite.com/widget.js"&gt;&lt;/script&gt;
  &lt;p&gt;&lt;span class="punctis-social-widget"&gt;&lt;/span&gt;&lt;/p&gt;
</code></pre>

<h2>Code 2</h2>

<pre><code>  &lt;script type="text/javascript" src="http://mysite.com/poll.js"&gt;&lt;/script&gt;
  &lt;p&gt;&lt;span class="punctis-poll-button"&gt;&lt;/span&gt;&lt;/p&gt;
</code></pre>

<p>poll.js and widget.js are just two simple functions:</p>

<p><strong>poll.js</strong></p>

<pre><code>window.onload = function() {
   alert('IM POLL.js');
}
</code></pre>

<p><strong>widget.js</strong></p>

<pre><code>window.onload = function() {
   alert('IM WIDGET.js');
}
</code></pre>

<p>One of this script will not load if you insert code 1 and code 2 in the same page. How can i solve this?</p>
