How do I combine two scripts together?
<p>I have set up an example at: <a href="http://xtboard.com/forum;viewpost;281258;page0.html" rel="nofollow">http://xtboard.com/forum;viewpost;281258;page0.html</a> . 
If anybody can help me out, it would be greatly appreciated.</p>

<h3>Update:</h3>

<p>The first script is a guest book:</p>

<pre><code>`&lt;script language = "JavaScript" src = "http://www.bfnsoftware.com/cgi-bin/home/Members/Guestbook/Guestbook.cgi?SiteID=30185&amp;Book=3128&amp;action=js"&gt;
 &lt;/script&gt;
 &lt;script language = "JavaScript"&gt;

     document.write("&lt;b&gt;" + Title + "&lt;/b&gt;&lt;br /&gt;");
     for (nextE = 0; nextE &lt; FilledEntries; nextE++) {
         document.write('&lt;div class="entry"&gt;Username:   ' + GuestName[nextE] + '&lt;br /&gt;');
         document.write('Submission Date:   ' + GuestDate[nextE] + '&lt;br /&gt;');
         document.write('Line Submission:   ' + GuestMessage[nextE] + '&lt;br /&gt;&lt;br /&gt;');
         document.write('&lt;/div&gt;');
     }
 &lt;/script&gt;`
</code></pre>

<p>The second script is a star rating script. I think it should get it's unique id from:</p>

<pre><code>`GuestDate[nextE]`
</code></pre>

<p>in the first code.</p>

<pre><code>`&lt;script type='text/javascript'&gt;
 aR_BgColor="";
 aR_FgColor="";
 aR_url=location.href + "";
 aR_title=document.title + "";
 aR_StarType ='1';
 document.write('&lt;div id="aR_star_info" class="aR_star_info"&gt;&lt;/div&gt;');
 document.write('&lt;scr'+'ipt type="text/JavaScript" src="http://addratings.com/aR_BootStrap.js"&gt;&lt;/scr'+'ipt&gt;');
 &lt;/script&gt;`
</code></pre>

<p>As each guestbook entry is made, the first script basicaly repeats. I would like to write a star rating under each entry as it posts.</p>
