function getSubCategories() {
	var o = createObject('intThemeID');
	var c = createObject('STRCATEGORYIDS');
	var intCategoryID = 0;

	intCategoryID = o.options[o.selectedIndex].value;

	if (intCategoryID.length > 0) {
		DWREngine._execute(_ajaxConfig._cfscriptLocation, null, 'getSubCategories', 12, intCategoryID, 3, 'background-color:transparent;width:auto;','width:120px;padding:2px 0px;','width:20px;padding:2px 5px 2px 10px;', populateData);
	} else {
		c.innerHTML = '<p>Please select a primary theme first</p>';
		alert('Please select a primary theme');
	}
}

// call back function
function populateData (r) {
	var o = createObject('STRCATEGORYIDS');
	o.innerHTML = r;
}