<!-- 

//declare your arrays...
var fourVal=new Array();
var fourTxt=new Array();
var fiveVal=new Array();
var fiveTxt=new Array();
var sixVal=new Array();
var sixTxt=new Array();


//fill the arrays with values and text
fourVal[0]="5";
fourTxt[0]="May";
fourVal[1]="6";
fourTxt[1]="June";
fourVal[2]="7";
fourTxt[2]="July";
fourVal[3]="8";
fourTxt[3]="August";
fourVal[4]="9";
fourTxt[4]="September";
fourVal[5]="10";  
fourTxt[5]="October";
fourVal[6]="11";  
fourTxt[6]="November";
fourVal[7]="12";  
fourTxt[7]="December";


fiveVal[0]="1";
fiveTxt[0]="January";
fiveVal[1]="2";
fiveTxt[1]="February";
fiveVal[2]="3";
fiveTxt[2]="March";
fiveVal[3]="4";
fiveTxt[3]="April";
fiveVal[4]="5";
fiveTxt[4]="May";
fiveVal[5]="6";
fiveTxt[5]="June";
fiveVal[6]="7";
fiveTxt[6]="July";
fiveVal[7]="8";
fiveTxt[7]="August";
fiveVal[8]="9";
fiveTxt[8]="September";
fiveVal[9]="10";  
fiveTxt[9]="October";
fiveVal[10]="11";  
fiveTxt[10]="November";
fiveVal[11]="12";  
fiveTxt[11]="December";

sixVal[0]="1";
sixTxt[0]="January";
sixVal[1]="2";
sixTxt[1]="February";
sixVal[2]="3";
sixTxt[2]="March";
sixVal[3]="4";
sixTxt[3]="April";
sixVal[4]="5";
sixTxt[4]="May";
sixVal[5]="6";
sixTxt[5]="June";
sixVal[6]="7";
sixTxt[6]="July";
sixVal[7]="8";
sixTxt[7]="August";
sixVal[8]="9";
sixTxt[8]="September";

function setMonth(elem)
{
//empty the current contents of the box...
while (document.getElementById('month').options.length) 

document.getElementById('month').options[0]=null;

if (elem=='1804') {
    elem = 'four';
}

if (elem=='1805') {
    elem = 'five';
}

if (elem=='1806') {
    elem = 'six';
}
var length=eval(elem+"Val").length;

//loop through the array to fill the second select box with new elements...
for (var i=0; i<length; i++)
{
option = new Option( eval(elem+"Txt")[i], eval(elem+"Val")[i]);
document.getElementById('month').options[document.getElementById('month').length] = option;
}

//enable it...
document.getElementById('month').disabled=false;

setDay(document.getElementById('month').value)
doUpdate();
}
// -->
