function InitialiseScrollableArea(){ 

	fillCategory()
} 

function fillCategory(){
 // this function is used to fill the category list on load
addOption(document.drop_list.Category, "1", "Deferred/Ongoing Benefits - Classic Scheme - please select question...", "");
addOption(document.drop_list.Category, "2", "New Awards - All Schemes - please select question...", "");
addOption(document.drop_list.Category, "3", "Bereavement - Classic Scheme - please select question...", "");
addOption(document.drop_list.Category, "4", "Bereavement - Classic Plus Scheme - please select question...", "");
addOption(document.drop_list.Category, "5", "Bereavement - Premium Scheme - please select question...", "");
}

function SelectSubCat(){
// ON selection of category this function will work

removeAllOptions(document.drop_list.SubCat);
addOption(document.drop_list.SubCat, "", "Now please select a question...", "");

if(document.drop_list.Category.value == '1'){
addOption(document.drop_list.SubCat,"faqsadminclassic.html#anchor1","How are my deferred benefits calculated?");
 addOption(document.drop_list.SubCat,"faqsadminclassic.html#anchor2","Can I choose to give up the whole or part of my lump sum for an increase in pension?");
 addOption(document.drop_list.SubCat,"faqsadminclassic.html#anchor3","What are the timescales for opting to commute my benefits? ");
 addOption(document.drop_list.SubCat,"faqsadminclassic.html#anchor4","How and when is my pension increased?");
 addOption(document.drop_list.SubCat,"faqsadminclassic.html#anchor5","The due date of my lump sum is after this year's PI has been applied.  Am I entitled to further PI on my lump sum?");
 addOption(document.drop_list.SubCat,"faqsadminclassic.html#anchor6","What is a Guaranteed Minimum Pension (GMP)");
 addOption(document.drop_list.SubCat,"faqsadminclassic.html#anchor7","What effect will the Guaranteed Minimum Pension (GMP) have on my pension?");
 addOption(document.drop_list.SubCat,"faqsadminclassic.html#anchor8","What is National Insurance (NI) Modification?");
}
if(document.drop_list.Category.value == '2'){
addOption(document.drop_list.SubCat,"faqsnewawards.html#anchor1","When will my lump sum be paid?");
addOption(document.drop_list.SubCat,"faqsnewawards.html#anchor2","My lump sum compensation payment is more than £30,000.00, how is the payment taxed?");
addOption(document.drop_list.SubCat,"faqsnewawards.html#anchor3","Am I entitled to a refund of my Widow/er's Pension Scheme (WPS) contributions?");
addOption(document.drop_list.SubCat,"faqsnewawards.html#anchor4","How is my tax code determined?");
addOption(document.drop_list.SubCat,"faqsnewawards.html#anchor5","What happens if my lump sum payable date falls on a weekend?");
addOption(document.drop_list.SubCat,"faqsnewawards.html#anchor6","There is an item on my payslip entitled Payment on Account, what does this mean?");
addOption(document.drop_list.SubCat,"faqsnewawards.html#anchor7","If I am unhappy with my scheduled monthly pension payable date, am I able to change it?");

}
if(document.drop_list.Category.value == '3'){
  addOption(document.drop_list.SubCat,"faqsberclassic.html#anchor1","How is my widow(er)'s pension worked out?");
  addOption(document.drop_list.SubCat,"faqsberclassic.html#anchor2","My husband left service after 1 June 1972.  Why is there little or no pension payable to me?");
  addOption(document.drop_list.SubCat,"faqsberclassic.html#anchor3","I married my wife after she retired.  What pension do I get?");
  addOption(document.drop_list.SubCat,"faqsberclassic.html#anchor4","How is my civil partner's pension calculated?");
  addOption(document.drop_list.SubCat,"faqsberclassic.html#anchor5","My short-term increase is the same as my spouse/partner's pension, why did I receive a different net pension?");
  addOption(document.drop_list.SubCat,"faqsberclassic.html#anchor6","Why is there no short-term increase payable to me?");
  addOption(document.drop_list.SubCat,"faqsberclassic.html#anchor7","My pension seems to have been reduced twice.  How can that happen?");
  addOption(document.drop_list.SubCat,"faqsberclassic.html#anchor8","The member's pension was paid after the date of death (overpayment), yet my bank returned the payment to you");
  addOption(document.drop_list.SubCat,"faqsberclassic.html#anchor9","My spouse/partner was already getting his/her pension.  Will I get a lump sum paid to me?");
  addOption(document.drop_list.SubCat,"faqsberclassic.html#anchor10","I have a query about H M Revenue and Customs Form D6");

}
if(document.drop_list.Category.value == '4'){
	  addOption(document.drop_list.SubCat,"faqsberclassicplus.html#anchor1","How is my widow(er)'s pension worked out?");
  addOption(document.drop_list.SubCat,"faqsberclassicplus.html#anchor2","How is my pension as a partner worked out?");
  addOption(document.drop_list.SubCat,"faqsberclassicplus.html#anchor3","How is my pension as a civil partner worked out? ");
  addOption(document.drop_list.SubCat,"faqsberclassicplus.html#anchor4","The member's pension was paid after the date of death (overpayment), yet my bank returned the payment to you ");
  addOption(document.drop_list.SubCat,"faqsberclassicplus.html#anchor5","My spouse/partner was already getting his/her pension.  Will I get a lump sum paid to me? ");
}
if(document.drop_list.Category.value == '5'){
addOption(document.drop_list.SubCat,"faqsberpremium.html#anchor1","How is my widow(er)'s benefits pension worked out? ");
addOption(document.drop_list.SubCat,"faqsberpremium.html#anchor2","How is my partner's pension calculated? ");
addOption(document.drop_list.SubCat,"faqsberpremium.html#anchor3","How is my civil partner's pension calculated?");
addOption(document.drop_list.SubCat,"faqsberpremium.html#anchor4","The member's pension was paid after the date of death (overpayment), yet my bank returned the payment to you ");
addOption(document.drop_list.SubCat,"faqsberpremium.html#anchor5","My spouse/partner was already getting his/her pension.  Will I get a lump sum paid to me? ");
}
}
//////////////////

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 = new Option(text, value);
	
	selectbox.options[selectbox.options.length] = optn;
}

