<!--

function makedropdown(destobj, destarray, prefix, currentvalue, sep, desc) {
	var newoption;
	var searchvalue=new RegExp(prefix + currentvalue + sep, 'i');
	destobj.options.length=0;
	newoption = new Option;
	newoption.value = '-1';
	newoption.text = '-- Select ' + desc + ' --';
	destobj.options[destobj.options.length]=newoption;
	destobj.selectedIndex=0;
	for (var i=0;i<destarray.length;i++) {
		if (destarray[i].search(searchvalue)==0) {
			splittext=destarray[i].split(sep);
			newoption = new Option;
			newoption.value=splittext[1];
			newoption.text=splittext[2];
			destobj.options[destobj.options.length]=newoption;
		};
	};
	destobj.disabled=false;
};

function initdropdown(destobj, newvalue) {
	destobj.options.length=0;
	var newoption = new Option;
	newoption.value='-1';
	newoption.text=newvalue;
	destobj.options[destobj.options.length]=newoption;
	destobj.selectedIndex=0;
};

-->