var Months = new Array( );

Months[ "" ] = new Array( "" );
Months[ "2003" ] = new Array(new Array("10",10), new Array("11",11), new Array("12",12));
Months[ "allyear" ] = new Array(	new Array ("01",01), new Array ("02", 02), new Array ("03", 03), new Array ("04", 04), new Array ("05", 05), new Array ("06", 06),
                                  new Array ("07",07), new Array ("08", 08), new Array ("09", 09), new Array ("10", 10), new Array ("11", 11), new Array ("12", 12));

function ProductLists( Year, Month ) {

 var oY=Year.value;
 var oM=Month.value;

 if (document.all){

  if (Year.options[ Year.selectedIndex ].value!=0){

	var selectedYear = Year.options[ Year.selectedIndex ].value;
	if (selectedYear == "2003") {
	  Month.length = Months[ "2003" ].length;
  	for( var i = 0; i < Months[ "2003" ].length; ++i ) {
		  Month.options[i].value = Months[ "2003" ][ i ][1];
	  	Month.options[i].text  = Months[ "2003" ][ i ][0];
  	}
	} else {
	  Month.length = Months[ "allyear" ].length;
  	for( var i = 0; i < Months[ "allyear" ].length; ++i ) {
		  Month.options[i].value = Months[ "allyear" ][ i ][1];
	  	Month.options[i].text  = Months[ "allyear" ][ i ][0];
  	}
	}
        Month.options.selectedIndex = 0;
        for(var q=1; q<i;q++) if(oM==Month.options[q].value){
          Month.options.selectedIndex = q;
        }

   }else{
	Month.length=1;
	Month.options[0].value =0;
	Month.options[0].text = "Select...";
	}
  }else if (document.getElementById){

// -------- for other brozers--------------


  x=Year.options[ Year.selectedIndex ].value;

  if (Year.options[ Year.selectedIndex ].value!=0) {
  	var selectedYear = Year.options[ Year.selectedIndex ].value;
	if (selectedYear == "2003") {
	  Month.length = Months[ "2003" ].length;
  	for( var i = 0; i < Months[ "2003" ].length; ++i ) {
		  Month.options[i].value = Months[ "2003" ][ i ][1];
	  	Month.options[i].text  = Months[ "2003" ][ i ][0];
  	}
	} else {
	  Month.length = Months[ "allyear" ].length;
  	for( var i = 0; i < Months[ "allyear" ].length; ++i ) {
		  Month.options[i].value = Months[ "allyear" ][ i ][1];
	  	Month.options[i].text  = Months[ "allyear" ][ i ][0];
  	}
	}
	Month.options.selectedIndex = 0;
	for(var q=1; q<i;q++) if(oM==Month.options[q].value){
	  Month.options.selectedIndex = q;
	}
   }else{
	Month.length=1;
	Month.options[0].value =0;
	Month.options[0].text = "Select...";
	}

  }
}

