<?xml version="1.0" encoding="UTF-8"?>
<post>
  <body>Nice work on the script here =) I noticed a little bug that prevents it from setting the default from Reinforce to Raid (probably because I only have one city). Changed the line in ataqueDefecto() from:

for (var i = 0; i &lt; cities.childNodes.length; i++){

to:

for (var i = 0; cities &amp;&amp; i &lt; cities.childNodes.length; i++){</body>
  <body-html>&lt;p&gt;Nice work on the script here =) I noticed a little bug that prevents it from setting the default from Reinforce to Raid (probably because I only have one city). Changed the line in ataqueDefecto() from:&lt;/p&gt;

&lt;p&gt;for (var i = 0; i &amp;lt; cities.childNodes.length; i++){&lt;/p&gt;

&lt;p&gt;to:&lt;/p&gt;

&lt;p&gt;for (var i = 0; cities &amp;amp;&amp;amp; i &amp;lt; cities.childNodes.length; i++){&lt;/p&gt;</body-html>
  <created-at type="datetime">2008-10-05T18:01:37Z</created-at>
  <forumable-id type="integer">15943</forumable-id>
  <forumable-type>Script</forumable-type>
  <id type="integer">54178</id>
  <topic-id type="integer">14525</topic-id>
  <updated-at type="datetime">2008-11-16T23:59:56Z</updated-at>
  <user-agent nil="true"></user-agent>
  <user-id type="integer">68798</user-id>
</post>
