
function fillCategory(){ 
 // this function is used to fill the category list on load
addOption(document._xclick.os0, "Australia", "Australia", "");
addOption(document._xclick.os0, "International", "International", "");
}

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

removeAllOptions(document._xclick.amount);
//addOption(document._xclick.amount, "", "amount", "");

if(document._xclick.os0.value == 'Australia'){
addOption(document._xclick.amount,"$99", "Individual $99");
addOption(document._xclick.amount,"$65", "Concession $65");
addOption(document._xclick.amount,"$120", "Family $120");
addOption(document._xclick.amount,"$240", "Corporate $240");
addOption(document._xclick.amount,"$140", "Schools/small NGOs $140");
addOption(document._xclick.amount,"$900", "Life $900");
//addOption(document._xclick.amount,"$74", "AJEE Subscription $74");
}
if(document._xclick.os0.value == 'International'){
addOption(document._xclick.amount,"$110", "International $110 AUD");	
//addOption(document._xclick.amount,"$97", "AJEE Subscription $97 AUD");
}

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

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);
}

