


function productionList(){ 
 // this function is used to fill the category list on load


addOption(document.tickets.Category, "Annie", "Annie", "");

}

function SelectShowDate(){
// ON selection of category this function will work

removeAllOptions(document.tickets.ShowDate);
addOption(document.tickets.ShowDate, "", "Please select a date", "");


if(document.tickets.Category.value == 'Annie'){


}

}
////////////////// 

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 = value;

	selectbox.options.add(optn);
}

