function populateArea(ii){

	var which_product = document.forms[0].product.options[document.forms[0].product.selectedIndex].value;

	if(ii == 1){
		document.forms[0].area.options.length=1;
		document.forms[0].subarea.options.length=1;
		document.forms[0].area.selectedIndex = 0;
		document.forms[0].subarea.selectedIndex = 0;
		if(which_product==0){
			return false;
		}
	}

	if (ii == 2){
		document.forms[0].subarea.options.length=1;
		document.forms[0].subarea.selectedIndex = 0;
		if (document.forms[0].area.options[document.forms[0].area.selectedIndex].value == 0){
			return false;
		}
	}

	for(jj=0;jj<catavalues.length;jj++){
		var s = catavalues[jj];
		var parts = s.split(":");
		if (ii==1){
			if((parts[2] == document.forms[0].product.options[document.forms[0].product.selectedIndex].value)&& (parts[3]==0)){
				var opt = new Option;
				opt.text = parts[4];
				opt.value = parts[0];
				document.forms[0].area.options[document.forms[0].area.options.length]=opt;
			}
		}//end of if checking for value of ii
		else if (ii=2){
			if(parts[3] == document.forms[0].area.options[document.forms[0].area.selectedIndex].value) {
				var opt = new Option;
				opt.text = parts[4];
				opt.value = parts[0];
				document.forms[0].subarea.options[document.forms[0].subarea.options.length]=opt;
			}
		}//end of else checking for value of ii
	}//end of for loop
}
