function LoadBlank(taxon) {
top.frames["basefrm"].location.href='pre_'+taxon+'.html';
}

function LoadTop(TopType) 
{
// top
var source_str= top.frames["mainmenuframe"].location.href;
var num = source_str.lastIndexOf('/');
var res_str=source_str.substring(0,num+1)+TopType+'.html';
var root_st=source_str.substring(0,num+1);
top.frames["mainmenuframe"].location.href = res_str;
// mid
// alert(root_st);
res_str=root_st+'mid_'+TopType+'.html';
top.frames["leftmenuframe"].location.href=res_str;
}

function ChangeType(SpecType) 
{
// mid
var source_str= top.frames["leftmenuframe"].location.href;
var num = source_str.lastIndexOf('_');
source_str=source_str.substring(0,num+1)+SpecType+'.html';
top.frames["leftmenuframe"].location.href=source_str;
}

function findNames(type) 
{
var source_str= top.frames["leftmenuframe"].frames["listframe"].location.href;
var num = source_str.lastIndexOf('_');
var res_str=source_str.substring(0,num)+'_'+type+'.html';
if (num!=-1) { 
top.frames["leftmenuframe"].frames["listframe"].location.href=res_str; 
} 
};

function NfindNames(number) 
{
var source_str= top.frames["leftmenuframe"].frames["listframe"].location.href;
var num = source_str.lastIndexOf('_');
var temp_str=source_str.substring(num,source_str.length);
source_str=source_str.substring(0,num);
num = source_str.lastIndexOf('_');
var res_str=source_str.substring(0,num);
res_str=res_str+'_'+number+temp_str;
if (num!=-1) { 
top.frames["leftmenuframe"].frames["listframe"].location.href=res_str; 
}  
};


function QueryLoad(QuerySt) 
{
if (QuerySt.length>0) {
top.frames["leftmenuframe"].location.href=QuerySt+'.html'; }
}

