Hi Expert.

I have this code. This code will load content by selected option. How i want to use same file for another option but when i load the page it directly/default goes to to option "idCat10", and will default to Content9. Please help. Here my code :-
<script>

function shwCategoryOfQs()
{

var optioId=document.getElementById("idCatSel").selectedIndex;
for(i=0;i<12;i++)
{
if(i==optioId) document.getElementById("idContent"+optioId).style.display="block";
else
document.getElementById("idContent"+i).style.display="none";
}
}
function shwHide(divAnsId)
{
if(document.getElementById(divAnsId).style.display=="none")
document.getElementById(divAnsId).style.display="block";
else
document.getElementById(divAnsId).style.display="none";
}
var dhtmlgoodies_slideSpeed = 10; // Higher value = faster
var dhtmlgoodies_timer = 10; // Lower value = faster

var objectIdToSlideDown = false;
var dhtmlgoodies_activeId = false;
var dhtmlgoodies_slideInProgress = false;
var dhtmlgoodies_slideInProgress = false;
var dhtmlgoodies_expandMultiple = false; // true if you want to be able to have multiple items expanded at the same time.

function showHideContent(e,inputId)
{
if(dhtmlgoodies_slideInProgress)return;
dhtmlgoodies_slideInProgress = true;
if(!inputId)inputId = this.id;
inputId = inputId + '';
var numericId = inputId.replace(/[^0-9]/g,'');
var answerDiv = document.getElementById('dhtmlgoodies_a' + numericId);

objectIdToSlideDown = false;

if(!answerDiv.style.display || answerDiv.style.display=='none'){
//if(dhtmlgoodies_activeId && dhtmlgoodies_activeId!=numericId && !dhtmlgoodies_expandMultiple){
//objectIdToSlideDown = numericId;
//slideContent(dhtmlgoodies_activeId,(dhtmlgoodies_slideSpeed*-1));
//}else{

answerDiv.style.display='block';
answerDiv.style.visibility = 'visible';

slideContent(numericId,dhtmlgoodies_slideSpeed);
//}
}else{
slideContent(numericId,(dhtmlgoodies_slideSpeed*-1));
dhtmlgoodies_activeId = false;
}
}

function slideContent(inputId,direction)
{

var obj =document.getElementById('dhtmlgoodies_a' + inputId);
var contentObj = document.getElementById('dhtmlgoodies_ac' + inputId);
height = obj.clientHeight;
if(height==0)height = obj.offsetHeight;
height = height + direction;
rerunFunction = true;
if(height>contentObj.offsetHeight){
height = contentObj.offsetHeight;
rerunFunction = false;
}
if(height<=1){
height = 1;
rerunFunction = false;
}

obj.style.height = height + 'px';
var topPos = height - contentObj.offsetHeight;
if(topPos>0)topPos=0;
contentObj.style.top = topPos + 'px';
if(rerunFunction){
setTimeout('slideContent(' + inputId + ',' + direction + ')',dhtmlgoodies_timer);
}else{
if(height<=1){
obj.style.display='none';
if(objectIdToSlideDown && objectIdToSlideDown!=inputId){
document.getElementById('dhtmlgoodies_a' + objectIdToSlideDown).style.display='block';
document.getElementById('dhtmlgoodies_a' + objectIdToSlideDown).style.visibility='visible';
slideContent(objectIdToSlideDown,dhtmlgoodies_slideSpeed);
}else{
dhtmlgoodies_slideInProgress = false;
}
}else{
dhtmlgoodies_activeId = inputId;
dhtmlgoodies_slideInProgress = false;
}
}
}



function initShowHideDivs()
{
var divs = document.getElementsByTagName('DIV');
var divCounter = 1;
for(var no=0;no<divs.length;no++){
if(divs[no].className=='dhtmlgoodies_question'){
divs[no].onclick = showHideContent;
divs[no].id = 'dhtmlgoodies_q'+divCounter;
var answer = divs[no].nextSibling;
while(answer && answer.tagName!='DIV'){
answer = answer.nextSibling;
}
answer.id = 'dhtmlgoodies_a'+divCounter;
contentDiv = answer.getElementsByTagName('DIV')[0];
contentDiv.style.top = 0 - contentDiv.offsetHeight + 'px';
contentDiv.className='dhtmlgoodies_answer_content';
contentDiv.id = 'dhtmlgoodies_ac' + divCounter;
answer.style.display='none';
answer.style.height='1px';
divCounter++;
}
}
}
window.onload = initShowHideDivs;
</script>

<body>
<!-- Page Body conent {begin} -->
<div id="innerPageBodyContainer">
<div id="breadcrumb" class="clearfix">
<ul class="breadcrumbLinks">
<li class="first"><a href="do.cfm">Home</a></li>
<li><a href="#" class="current">FAQs</a></li>
</ul>
</div>
<div id="faqPage">
<div id="faqselectBoxContainer">
<div class="h2"> <a name="top">
<h2>Frequently asked questions</h2>
</a></div>
<div class="selectBox">
<select style="width:180px;" onChange="shwCategoryOfQs();" id="idCatSel">
<option id="idCat1">About HSAs</option>
<option id="idCat2">Eligibility and Enrollment</option>
<option id="idCat3">Contributions</option>
<option id="idCat4">Distributions</option>
<option id="idCat5">Managing Your HSA</option>
<option id="idCat6">No Longer a Member</option>
<option id="idCat7">Reaching Age 65</option>
<option id="idCat8">Death</option>
<option id="idCat9">Tax Considerations</option>
<option id="idCat10">Rollovers/Transfers,FSAs and HRAs</option>
<option id="idCat11">Working with your Health Plan</option>
<option id="idCat12" <cfif isdefined('sec_id')>selected</cfif>>Investing Your HSA </option>
</select>
</div>
</div>
<div id="faqQuestionBlock" class="clearBoth">
<div class="questionBlocks">
<ul class="questionLinks" id="idContent0">
<li class="noIcon">
<h3>About HSAs</h3>
</li>
<li> <span></span>
<div class="dhtmlgoodies_question">What is a Health Savings Account (HSA)?</div>
<div class="dhtmlgoodies_answer">
<div> An s<br>
<br>
HSAs provide triple-tax advantages: contributions, investment earnings, and qualified distributions are all exempt from federal income tax<br>
<br>
Funds in the account not needed for near term expenses may be invested, providing the opportunity for funds to grow. Investment options include money market accounts, mutual funds, etc.<br>
<br>
To be eligible to set up an ACS|BNY Mellon HSA and to make annual contributions, you must be covered by a qualified High Deductible Health Plan (HDHP) and meet other eligibility requirements as defined by the IRS. </div>
</div>
</li>
</ul>
<ul class="questionLinks" id="idContent1" style="display:none;">
<li class="noIcon">
<h3>Eligibility and Enrollment</h3>
</li>
<li> <span></span>
<div class="dhtmlgoodies_question" style="cursorointer;">Can I have an HSA in addition to an IRA or other qualified retirement plan?</div>
<div class="dhtmlgoodies_answer">
<div>Yes, you can have both an HSA and an IRA.

Although ) </div>
</div>
<span></span>
<div class="dhtmlgoodies_question" style="cursorointer;">My spouse's employer provides low-deductible family coverage at no cost. I am covered under my spouse's plan. If I enroll in my employer's qualified HDHP, am I eligible for an HSA?</div>
<div class="dhtmlgoodies_answer">
<div>No. You are not eligible for an HSA if you are covered by any other health plan that is not a qualified HDHP, other than permitted coverage such as coverage for dental, vision or disability. </div>
</div>
</li>
</ul>
<ul class="questionLinks" id="idContent10" style="display:none;">
<li class="noIcon">
<h3>Working with your Health Plan</h3>
</li>
<li><span></span>
<div class="dhtmlgoodies_question">If I have an HSA, does it limit which doctors or hospitals I can use? </div>
<div class="dhtmlgoodies_answer">
<div>No, an HSA is a funding mechanism to pay those qualified medical expenses not covered by your plan and has no impact on the providers you choose. You still follow your health plan's guidelines for receiving care.<br>
<br>
</div>
</div>
<span></span>
<div class="dhtmlgoodies_question">If I have a qualified HDHP and an HSA and I see a doctor for treatment - not a preventive service - am I charged the typical co-payment for the visit, or am I responsible for paying the full charge? </div>
<div class="dhtmlgoodies_answer">
<div>You are responsible for the full amount charged until you have met your deductible. After meeting your deductible, only co-payments and co-insurance apply. You may use your HSA funds to be reimbursed for these qualified medical expenses tax-free. </div>
</div>
</li>
</ul>
<ul class="questionLinks" id="idContent11" style="display:none;">
<li class="noIcon">
<h3>Investing Your HSA </h3>
</li>
<li> <span></span>
<div class="dhtmlgoodies_question">May I invest my HSA dollars?</div>
<div class="dhtmlgoodies_answer">
<div>Unlike other savings accounts, th </div>
</div>
<span></span>
<div class="dhtmlgoodies_question">When can I start the HSA investment process?</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</body>
Thanks in advance
Capik