<?xml version="1.0" encoding="UTF-8" ?> 
<Module>
  <ModulePrefs title="Week of the year Google Gadget" /> 
  <Content type="html">
     <![CDATA[ 
  <!--Week code copied from http://javascript.about.com/library/blweekyear.htm - I didn't check if this works for every year e.g. leap years. Also, this seems to count from the first week, even if partial-->
<h2>The current week of the year is 
<script type="text/javascript" language="JavaScript">
Date.prototype.getWeek = function() {
var onejan = new Date(this.getFullYear(),0,1);
return Math.ceil((((this - onejan) / 86400000) + onejan.getDay()+1)/7);
} 
document.write((new Date()).getWeek());
</script>
</h2>
     ]]>
  </Content> 
</Module>