
function fillCategory()
	{ 
	// this function is used to fill the category list on load
	addOption(document.Feedback.Category, "Word 2003", "Word 2003", "");
	addOption(document.Feedback.Category, "Excel 2003", "Excel 2003", "");
	addOption(document.Feedback.Category, "Access 2003", "Access 2003", "");
	addOption(document.Feedback.Category, "PowerPoint 2003", "PowerPoint 2003", "");
	addOption(document.Feedback.Category, "Project 2003", "Project 2003", "");
	addOption(document.Feedback.Category, "Visio 2003", "Visio 2003", "");
	addOption(document.Feedback.Category, "Outlook 2003", "Outlook 2003", "");
	addOption(document.Feedback.Category, "VBA Excel", "VBA Excel", "");
	addOption(document.Feedback.Category, "VBA Word", "VBA Word", "");
	addOption(document.Feedback.Category, "VBA Access", "VBA Access", "");
	addOption(document.Feedback.Category, "VBA Visio", "VBA Visio", "");
	addOption(document.Feedback.Category, "VBA Other", "VBA Other", "");
	addOption(document.Feedback.Category, "TGWU", "TGWU", "");
	addOption(document.Feedback.Category, "ACT! User", "ACT! User", "");
	addOption(document.Feedback.Category, "ACT! Manager", "ACT! Manager", "");
	}

function SelectCourse()
	{
	// ON selection of category this function will work
	removeAllOptions(document.Feedback.Course);
	addOption(document.Feedback.Course, "", "Select Course", "");
	if(document.Feedback.Category.value == 'Word 2003')
		{
		addOption(document.Feedback.Course,"11.01","11.01 Introduction");
		addOption(document.Feedback.Course,"11.02","11.02 Intermediate");
		addOption(document.Feedback.Course,"11.03","11.03 Advanced");
		}
	if(document.Feedback.Category.value == 'Excel 2003')
		{
		addOption(document.Feedback.Course,"10.01","10.01 Introduction");
		addOption(document.Feedback.Course,"10.02","10.02 Intermediate");
		addOption(document.Feedback.Course,"10.03","10.03 Advanced");
		}
	if(document.Feedback.Category.value == 'Access 2003')
		{
		addOption(document.Feedback.Course,"12.01","12.01 Introduction");
		addOption(document.Feedback.Course,"12.02","12.02 Intermediate");
		addOption(document.Feedback.Course,"12.03","12.03 Advanced");
		}
	if(document.Feedback.Category.value == 'PowerPoint 2003')
		{
		addOption(document.Feedback.Course,"13.01","13.01 Introduction");
		addOption(document.Feedback.Course,"13.02","13.02 Intermediate");
		addOption(document.Feedback.Course,"13.03","13.03 Advanced");
		}
	if(document.Feedback.Category.value == 'Project 2003')
		{
		addOption(document.Feedback.Course,"14.01","14.01 Introduction");
		}
	if(document.Feedback.Category.value == 'Visio 2003')
		{
		addOption(document.Feedback.Course,"15.01","15.01 Introduction");
		}
	if(document.Feedback.Category.value == 'Outlook 2003')
		{
		addOption(document.Feedback.Course,"16.01","16.01 Introduction");
		}
	if(document.Feedback.Category.value == 'ACT! User')
		{
		addOption(document.Feedback.Course,"4.01","4.01 ACT! Working with Contacts");
		addOption(document.Feedback.Course,"4.02","4.02 ACT! Working with Groups and Companies");
		addOption(document.Feedback.Course,"4.03","4.03 ACT! Scheduling Activities and Managing Your Calendar");
		addOption(document.Feedback.Course,"4.04","4.04 ACT! Managing Opportunities");
		addOption(document.Feedback.Course,"4.05","4.05 ACT! Using Email with ACT!");
		addOption(document.Feedback.Course,"4.06","4.06 ACT! Using Internet Services");
		addOption(document.Feedback.Course,"4.07","4.07 ACT! Working with Documents");
		addOption(document.Feedback.Course,"4.08","4.08 ACT! Producing Reports");
		addOption(document.Feedback.Course,"4.09","4.09 ACT! Synchronising Databases");
		}	
	if(document.Feedback.Category.value == 'ACT! Manager')
		{
		addOption(document.Feedback.Course,"5.01","5.01 ACT! Importing and Exporting Data");
		addOption(document.Feedback.Course,"5.02","5.02 ACT! Setting Up Users and Teams");
		addOption(document.Feedback.Course,"5.03","5.03 ACT! Creating and Managing Databases, Files & Data Storage");
		addOption(document.Feedback.Course,"5.04","5.04 ACT! Customising ACT! for Efficiency");
		addOption(document.Feedback.Course,"5.05","5.05 ACT! Customising Fields and Layouts");
		addOption(document.Feedback.Course,"5.05","5.06 ACT! Other");
		}
	if(document.Feedback.Category.value == 'VBA Excel')
		{
		addOption(document.Feedback.Course,"6.01","6.01 Introduction");
		addOption(document.Feedback.Course,"6.02","6.02 Intermediate");
		addOption(document.Feedback.Course,"6.03","6.03 Advanced");
		}
	if(document.Feedback.Category.value == 'VBA Word')
		{
		addOption(document.Feedback.Course,"7.01","7.01 Introduction");
		addOption(document.Feedback.Course,"7.02","7.02 Intermediate");
		addOption(document.Feedback.Course,"7.03","7.03 Advanced");
		}
	if(document.Feedback.Category.value == 'VBA Access')
		{
		addOption(document.Feedback.Course,"8.01","8.01 Introduction");
		addOption(document.Feedback.Course,"8.02","8.02 Intermediate");
		addOption(document.Feedback.Course,"8.03","8.03 Advanced");
		}
	if(document.Feedback.Category.value == 'VBA Visio')
		{
		addOption(document.Feedback.Course,"9.01","9.01 Introduction");
		addOption(document.Feedback.Course,"9.02","9.02 Intermediate");
		addOption(document.Feedback.Course,"9.03","9.03 Advanced");
		}
	if(document.Feedback.Category.value == 'VBA Other')
		{
		addOption(document.Feedback.Course,"21.01","21.01 Introduction");
		addOption(document.Feedback.Course,"21.02","21.02 Intermediate");
		addOption(document.Feedback.Course,"21.03","21.03 Advanced");
		}
	if(document.Feedback.Category.value == 'TGWU')
		{
		addOption(document.Feedback.Course,"20.01", "20.01 Microsoft Outlook");
		addOption(document.Feedback.Course,"20.02", "20.02 Microsoft Excel Spreadsheets");
		addOption(document.Feedback.Course,"20.03", "20.03 Microsoft Word");
		addOption(document.Feedback.Course,"20.04", "20.04 Other");
		}
	} 

function removeAllOptions(selectbox)
	{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
		{
		//selectbox.options.remove(i);
		selectbox.remove(i);
		}
	}


function addOption(selectbox, value, text )
	{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = text;

	selectbox.options.add(optn);
	}

