Question about displaying weeks for the whole year in a drop down list


I just want to know how can I display Weeks in a drop down list per year.

Thank you

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<html xmlns="" xml:lang="en" lang="en">


<select id="tst" size="1">

<script type="text/javascript">

function Weeks(year,day,id){
 var srt,ary=[],z0=1,sel=document.getElementById(id),date,months=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
 sel.options[0]=new Option('Select Week');
 for (;z0<366+7;z0++){
  srt=new Date(year,0,z0-6,1);
  if (srt.getDay()==day&&srt.getFullYear()<=year){
   sel.options[sel.options.length]=new Option(date,date);

function nu(nu){
 return nu>9?nu:'0'+nu;




what if I want is one dropdown and the option is week 1 - to what week for the whole year and when after select week display the date range between that week.

Is it possible?how?

Thank you for your help…