// ---------------- Below are the functions that do everything ------------
// ---------------- Do not edit until "EDIT BELOW HERE" message -----------

// This writes the footer.
function writeIsaFooter(){
  document.write('<table width="100%" cellspacing="0" cellpadding="0" bgcolor="#003399" border="0">');
  document.write('  <tr>');
  document.write('    <td bgcolor="#ffcc99" height="2" colspan="3"><img src="http://www.hemscott.net/images/transparent.gif" width="1" height="2" border="0"></td>');
  document.write('  </tr>');
  document.write('  <tr>');
  document.write('    <td height="30" width="12" bgcolor="#003399" valign="middle"><img src="http://www.hemscott.net/images/transparent.gif" width="1" height="1" border="0"></td>');
  document.write('    <td class="white11pxbold" bgcolor="#003399" width="610"><a href="disclaimer.htm" target="_self" class="leftnav">Disclaimer</a> | <a href="http://www.hemscott.com/privacy-policy.do" target="_blank" class="leftnav">Privacy Policy</a></td>');
  document.write('    <td class="white11pxbold" bgcolor="#003399"> <a href="http://www.hemscottplc.com/servlet/HsPublic?context=corporate&path=corporate&target=uk_media&section=about&leftnav=products" target="_blank" class="leftnav">Advertise with us</a></td>');
  document.write('  </tr>');
  document.write('  <tr>');
  document.write('    <td height="30" width="12" bgcolor="#003399" valign="middle"><img src="http://www.hemscott.net/images/transparent.gif" width="1" height="1" border="0"></td>');
  document.write('    <td class="white9pxplain" bgcolor="#003399" colspan="2">Copyright © Hemscott. <br> 2nd Floor, Finsbury Tower, 103-105 Bunhill Row, London, EC1Y 8TY. Tel: +44 (0)20 7496 0055 Fax: +44 (0)20 7847 1709<br><br> </td>');
  document.write('  </tr>');
  document.write('</table>');
}

function writeWebSearch(){
  document.write('      <table cellSpacing="0" cellPadding="0" width="160" border="0">');
  document.write('        <form name="espotting" action="http://miranda.hemscott.com/servlet/HsPublic?" method="GET" onsubmit="checkEspotting();">');
  document.write('          <tr>');
  document.write('            <td class="white11pxbold" colSpan="3"><IMG height=0 src="http://www.hemscott.net/images/transparent.gif" width="8" border="0">&#160;<font color="#FF6633" size="2">&#149;</font><img height="0" src="http://www.hemscott.net/images/transparent.gif" width="4" border="0">Web Search</td>');
  document.write('          </tr>');
  document.write('          <tr>');
  document.write('            <td valign="center"><IMG height="8" src="http://www.hemscott.net/images/transparent.gif" width="25"></td>');
  document.write('            <td align="left" width="76">');
  document.write('              <INPUT size="8" id="espottingkeyword" name="keyword" class="search"></td>');
  document.write('              <td width="59" align="left" bgcolor="#000066">&nbsp;&nbsp;&nbsp;<input type="image" src="http://www.hemscott.net/images/go.gif" border="0" name="SrchSub2" class="submitsearch" onsubmit="checkEspotting();">');
  document.write('              <input type="hidden" name="context" value="espotting">');
  document.write('              <input type="hidden" name="service" value="getRemoteData">');
  document.write('              <input type="hidden" name="page" value="1">');
  document.write('              <input type="hidden" name="Hits" value="10">');
  document.write('              <input type="hidden" name="path" value="partner">');
  document.write('              <input type="hidden" name="resource" value="espotting">');
  document.write('            </td>');
  document.write('          </tr>');
  document.write('          <tr>');
  document.write('            <td colspan="3"><img src="/images/transparent.gif" width="160" height="10"></td>');
  document.write('          </tr>');
  document.write('          <tr>');
  document.write('            <td colspan="3" class="tablefooterandpopup"><img src="/images/transparent.gif" width="160" height="1"></td>');
  document.write('          </tr>');
  document.write('          <tr>');
  document.write('            <td colspan="3" valign="bottom" bgcolor="#000066"><img src="/images/transparent.gif" width="160" height="1">');
  document.write('          </tr>');
  document.write('        </form>');
  document.write('      </table>');
  }

  	  function checkEspotting()
	  {
		var tidy = document.getElementById("espottingkeyword").value
		for (i=0; i < tidy.length; i++) {
			tidy = tidy.replace(" ","%2B");
		}
		document.getElementById("espottingkeyword").value = tidy;
		return true;
	 }