function buildSelect() {
/*
    option0 = new Option("Article: Interview with Ro...",0,true)
    option1 = new Option("Tourdate: Live @ Blabla, B...",1,true)
    option2 = new Option("Song: Iris",2,true)
    // write them
    document.frmAddTourdate.crosslinks.options[0] = option0
    document.frmAddTourdate.crosslinks.options[1] = option1
    document.frmAddTourdate.crosslinks.options[2] = option2
*/
	contentCategory = document.getElementById('contentCategory');
	
	selectContent = document.getElementById('selectContent');
	selectContentSelected = selectContent.selectedIndex;

	contentTitle = selectContent.options[selectContentSelected].text;
	contentID = selectContent.options[selectContentSelected].value;
	
	switch (contentCategory.options[contentCategory.selectedIndex].value) {
		case "1": contentTitle = 'Article: ' + contentTitle; break;
		case "2": contentTitle = 'News: ' + contentTitle; break;
		case "3": contentTitle = 'Record: ' + contentTitle; break;
		case "4": contentTitle = 'Song: ' + contentTitle; break;
		case "5": contentTitle = 'Event: ' + contentTitle; break;
		//case "6": contentTitle = 'Video: ' + contentTitle; break;
	}
	
	option = new Option(contentTitle,contentCategory.value + '.' + contentID,true);
	
	//window.opener.document.frmAddTourdate.crosslinks.options[0] = option;
	selectCrossLinks = window.opener.document.getElementById('crosslinks');
	try {
		selectCrossLinks.add(option,null); // standards compliant; doesn't work in IE
	}
	catch(ex) {
		selectCrossLinks.add(option); // IE only
	}
	
    return;
}

function loadContent() {
	contentCategory = document.getElementById('contentCategory');
	tbQuery = document.getElementById('tbQuery');
	selIndex = contentCategory.selectedIndex;
	attributes = '&id=' + selIndex + '&query=' + tbQuery.value;
	getFunction('loadedContent','',attributes);
}
