How do I combine these examples?
<p>First of all, I would like to apologize for posting this again. I am new to this forum. Also, I cannot ad comments on my first post of this question, or send private messages to users who commented, therefore I can't properly communicate with anybody who tries to help. <strong>What is the proper way for me to communicate with people who may comment on or answer this post?</strong> Again, I'm sorry to be repeating this question. With that out of the way, I move on.</p>

<hr>

<p>I am just now experimenting with Javascript, so my knowledge of it is small. I found a website that offers a guestbook tool ( <a href="http://www.bfnsoftware.com/index.php?eid=2013" rel="nofollow">http://www.bfnsoftware.com/index.php?eid=2013</a> ), and another that offers a star rating tool( addratings.com/ ). I would like to know what parts of the scripts to change and what to change them to in order for the result to be a star rating tool under each new guestbook post. By the way, I had to resort to scripts not hosted at my site because of file type restrictions at my web host.</p>

<p>The guestbook code is in two parts. The first is the input form. This is it in it's basic form:</p>

<pre><code>&lt;form action = "http://www.bfnsoftware.com/cgi-bin/home/Members/Guestbook/Guestbook.cgi?SiteID=30185&amp;Book=3128" method = "POST"&gt;
&lt;input type = "hidden" name = "action" value = "sign"&gt;
:: Guestbook ::
Name:
&lt;input type = "text" name = "guestName" size = 30 maxlength = 60&gt;
Email Address:
&lt;input type = "text" name = "guestEmail" size = 30 maxlength = 100&gt;
Website:
&lt;input type = "text" name = "guestWebsite" size = 30 maxlength = 150&gt;
Vote:
&lt;select name = "guestVote" style = "width:203px;"&gt;
&lt;option value = "0"&gt; 0 - Worst
&lt;option value = "1"&gt; 1
&lt;option value = "2"&gt; 2
&lt;option value = "3"&gt; 3
&lt;option value = "4"&gt; 4
&lt;option value = "5" SELECTED&gt; 5 - Average
&lt;option value = "6"&gt; 6
&lt;option value = "7"&gt; 7
&lt;option value = "8"&gt; 8
&lt;option value = "9"&gt; 9
&lt;option value = "10"&gt; 10 - Best
&lt;/select&gt;
:: Message ::
&lt;textarea cols = 45 rows = 6 name = "guestMessage"&gt;&lt;/textarea&gt;
&lt;input type = "submit" value = "Submit"&gt;
&lt;/form&gt;
</code></pre>

<p>I am not using the "guestWebsite", "guestEmail" or "guestVote" fields of the form on my site. I was able to choose to let users enter html in the "guestMessage" textarea.</p>

<p>This is part two of the guestbook code. I put it on the page that I would like the posts to parse on.</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;font size = 3&gt;&lt;b&gt;" + Title + "&lt;/b&gt;&lt;/font&gt;&lt;br&gt;");
 document.write("&lt;hr align = left color = #4F4F4F width = 400&gt;&lt;p&gt;");
 for (nextE = 0; nextE &lt; FilledEntries; nextE++) {
  document.write('&lt;table border = 0 cellpadding = 1 cellspacing = 0 width = 502 bgcolor = #000000&gt;&lt;tr&gt;&lt;td width = 502&gt;');
  document.write('&lt;table border = 0 cellpadding = 0 cellspacing = 0 width = 500 bgcolor = #DFDFDF&gt;');
  document.write('&lt;tr&gt;&lt;td width = 10&gt;&lt;/td&gt;&lt;td width = 100&gt; Name:&lt;/td&gt;&lt;td width = 390&gt;' + GuestName[nextE] + '&lt;/td&gt;&lt;/tr&gt;');
  document.write('&lt;tr&gt;&lt;td width = 10&gt;&lt;/td&gt;&lt;td width = 100&gt; E-mail: &lt;/td&gt;&lt;td width = 390&gt;' + GuestEmail[nextE] + '&lt;/td&gt;&lt;/tr&gt;');
  document.write('&lt;tr&gt;&lt;td width = 10&gt;&lt;/td&gt;&lt;td width = 100&gt; Website:&lt;/td&gt;&lt;td width = 390&gt;&lt;a href = ' + GuestWebsite[nextE] + '&gt;' + GuestWebsite[nextE] + '&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;');
  document.write('&lt;tr&gt;&lt;td width = 10&gt;&lt;/td&gt;&lt;td width = 100&gt; Vote:&lt;/td&gt;&lt;td width = 390&gt;' + GuestVote[nextE] + '&lt;/td&gt;&lt;/tr&gt;');
  document.write('&lt;tr&gt;&lt;td width = 10&gt;&lt;/td&gt;&lt;td width = 100&gt; Date:&lt;/td&gt;&lt;td width = 390&gt;' + GuestDate[nextE] + '&lt;/td&gt;&lt;/tr&gt;');
  document.write('&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;');
  document.write('&lt;table border = 0 cellpadding = 0 cellspacing = 0 width = 500 bgcolor = #DFDFDF&gt;');
  document.write('&lt;tr&gt;&lt;td width = 10&gt;&lt;/td&gt;&lt;td width = 100 valign = top&gt;Message:&lt;/td&gt;&lt;td width = 390&gt;' + GuestMessage[nextE] + '&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;');
  document.write('&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;p&gt;');
 }
&lt;/script&gt;
&lt;noscript&gt;
&lt;a href = "http://www.bfnsoftware.com/cgi-bin/home/Members/Guestbook/Guestbook.cgi?SiteID=30185&amp;Book=3128&amp;action=view"&gt;View Guestbook&lt;/a&gt;
&lt;/noscript&gt;
</code></pre>

<p>I have modified it like this:</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>Next is the star rating script. Here is what I'm using:</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>The site explaned that if I wanted to use the code more than once on the same page, I could, but I would have to define a unique value to <strong>+ ""</strong> part of <strong>aR_url=location.href + "";</strong> like this: <strong>+ "1"</strong> for each instance of the code, or all the results would be the same for each instance.</p>

<p>So my question again is "What parts of the scripts do I need to change and what to change them to in order for the result to be a star rating tool under each new guestbook post?", Thanks in advance for any help I may get.</p>
