function populateCitySelect( country ) {
	  //alert(country);
	  newcountry = country.replace(/ /g,'');
	  //alert(newcountry);
	  //document.theForm.CountryChoice.value = newcountry;
	  document.theForm.CountryChoice.value = country;
	  if ( newcountry.length == 0 ) {
		document.theForm.Choice.length = 1;
		document.theForm.Choice.options[0] = new Option('Choose country:');
		document.theForm.Choice.options[0].value = '';
		return;
	  }
	  if ( country == 'Holland' ) {
		newcountry = 'Netherlands';
	  }
	  if ( country == 'Britain' ) {
		newcountry = 'England';
	  }
	  newOptions = eval(newcountry+'Array');
	  document.theForm.Choice.length = 1;
	  document.theForm.Choice.options[0] = new Option('Choose city:');
	  document.theForm.Choice.options[0].value = '';
	  document.theForm.Choice.options[0].selected = true;
	  var citylength = newOptions.length + 1;
	  for ( i=0; i<newOptions.length; i++ ) {
		document.theForm.Choice.length++;
		thisEntry = newOptions[i];
		newOption = new Option( thisEntry );
		newOption.value = 'C' + thisEntry + ';' + country;
		document.theForm.Choice.options[i+1] = newOption;
	  }
	  document.theForm.Choice.length = citylength;
	  if(newOptions.length == 1) document.theForm.Choice.options[1].selected = true;
	}
	
	function makeValidDate() {
	  year = document.theForm.selYear.options[ document.theForm.selYear.selectedIndex ].value;
	  month = document.theForm.selMonth.options[ document.theForm.selMonth.selectedIndex ].value;
	  day = document.theForm.selDay.options[ document.theForm.selDay.selectedIndex ].value;
	  maxDay = 31;
	  if ( month == 4 || month == 6 || month == 9 || month == 11 ) {
		maxDay = 30;
	  } else if ( month == 2 ) {
		if ( year%100 != 0 && year%4 == 0 ) {
		  maxDay = 29;
		} else {
		  maxDay = 28;
		}
	  }
	  document.theForm.selDay.selectedIndex = Math.min(day, maxDay)-1;
	}
	
function Select_Value_Set(SelectName, Value)
	{
	eval('SelectObject = document.' + 
	SelectName + ';');
	for(index = 0; 
		index < SelectObject.length; 
		index++)
		{
		if(SelectObject[index].value == Value)
			SelectObject.selectedIndex = index;
			}
	}