function buildLinkSection(sCaption,aTexts,aLinks,sInstructions)
{
var lsBuf="";
var index,lsPath;
lsPath=GetPath();
lsBuf=GetNavTable()+getTopLHCorner(lsPath,sCaption);
for(index=0;index<aTexts.length;index++)
{
lsBuf+= '<tr>' +
'<td>&nbsp;</td>' +
'<td><a class="navboxlink" href="' + aLinks[index] + '" target="PageContent" title="' + aTexts[index] + '">' + aTexts[index] + '</a></td>';
if(!sInstructions&&(index==aTexts.length-1)){
lsBuf += '<td valign="bottom" align="right"><img src="' + lsPath + 'images/white_corner_lr.gif"/></td></tr>';
} else {
lsBuf+='<td>&nbsp;</td></tr>';
}
}
if(sInstructions){
lsBuf+=getBottomRHCorner(lsPath, sInstructions);
}
lsBuf+='</table>';
return (lsBuf);
}
function buildButtonSection(sCaption,aButtons,aFuncs,sInstructions)
{
var lsBuf='';
var index,lsPath;
lsPath=GetPath();
lsBuf=GetNavTable()+getTopLHCorner(lsPath,sCaption);
for(index=0;index<aButtons.length;index++)
{
MM_preloadImages(parent.PageNavigation.buttonarray[aButtons[index]].overimage);
lsBuf+= '<tr>' +
'<td>&nbsp;</td>' +
'<td class="navboxcontent"><a id="anc' + aButtons[index] + '" href="JavaScript:if(!top.PageHeader.submitting){' + aFuncs[index] + '}" onMouseOut="MM_swapImgRestore()" onMouseOver="if(!window.top.PageHeader.submitting){MM_swapImage(\'' + aButtons[index] + '\',\'\',\'' + parent.PageNavigation.buttonarray[aButtons[index]].overimage + '\',1)}"><img alt="' + parent.PageNavigation.buttonarray[aButtons[index]].alt + '" src="' + parent.PageNavigation.buttonarray[aButtons[index]].upimage + '" border="0" id="' + aButtons[index] + '" name="' + aButtons[index] + '"></a></td>';
if(!sInstructions&&(index==aButtons.length-1)){
lsBuf += '<td valign="bottom" align="right"><img src="' + lsPath + 'images/white_corner_lr.gif"/></td></tr>';
} else {
lsBuf+='<td>&nbsp;</td></tr>';
}
}
if(sInstructions){
lsBuf+=getBottomRHCorner(lsPath, sInstructions);
}
lsBuf+='</table>';
return(lsBuf);
}
function GetNavTable()
{
return('<table class="navboxbackground" border="0" align="center" cellspacing="0" cellpadding="0" width="155">');
}
function GetPath()
{
var lsPath=parent.location.href;
a = lsPath.lastIndexOf("?");
if(a!=-1)lsPath=lsPath.substr(0,a+1);
i=lsPath.lastIndexOf("/");
lsPath=lsPath.substr(0,i+1);
return(lsPath);
}
function getBottomRHCorner(vsPath, vsText)
{
var lsBuf='';
if(!vsText){
vsText='&nbsp;';
}
lsBuf='<tr>' +
'<td valign="bottom">&nbsp;</td><td class="cmdboxtext">' + vsText +
'</td><td valign="bottom" align="right"><img src="' + vsPath + 'images/white_corner_lr.gif"/></td>' +
'</tr>';
return(lsBuf);
}
function getTopLHCorner(vsPath,sCaption)
{
var lsBuf='';
if(!sCaption){
sCaption='&nbsp;';
}
lsBuf = '<tr width="100%">' +
'<td valign="top" class="cmdboxtop"><img src="' + vsPath + 'images/white_corner_ul.gif"/></td>' +
'<td class="cmdboxtitle">' + sCaption +
'</td><td class="cmdboxtop">&nbsp;</td>' +
'</tr>';
return(lsBuf);
}
function buildPageNavigation(lsBuf,liGap)
{
var iA=lsBuf.indexOf("<table");
var iB=0;
var iHeight=10;
if(liGap){iHeight=liGap};
var lsPath=GetPath();
while (lsBuf.indexOf("<table",iA+6)!=-1)
{
iB=lsBuf.indexOf("</table>",iB+8);
lsBuf=lsBuf.substr(0,iB+8) + "<img src='" + lsPath + "images/nav_spacer.gif' border='0' height='" + iHeight + "'>" + lsBuf.substr(iB+8);
iA=lsBuf.indexOf("<table",iA+6);
}
ApplyNewHTML("navdiv",lsBuf,"PageNavigation");
}
function GotoAnchor(sAnchorName)
{
if(top.PageHeader.submitting){
top.PageHeader.MM_swapImage("processing","","images/processing_base.gif",1);
top.PageHeader.submitting=false;
}
document.location.hash=sAnchorName;
}
function ConvertLinksToAnchors(aAnchors)
{
for(var index=0;index<aAnchors.length;index++)
{
aAnchors[index] = "javascript:parent.PageContent.GotoAnchor('" + aAnchors[index] + "')";
}
return(aAnchors);
}
function ApplyNewHTML(ElementId,lsBuf,sFrame)
{
if(document.all||document.getElementById)
parent[sFrame].getElement(ElementId).innerHTML=lsBuf;
else
{
parent[sFrame].getElement(ElementId).document.clear();
parent[sFrame].getElement(ElementId).document.write(lsBuf);
parent[sFrame].getElement(ElementId).document.close();
}
}
function buildPageHeader(lsHTML){
ApplyNewHTML("divTitle", lsHTML, "PageHeader");
}


