function show_tbl(pre,n,select_n){
for(i=0;i<n;i++){
var tbl= document.getElementById(pre+i);
tbl.style.display="none";
if(i==select_n){
tbl.style.display="block";
}
}
}
function show_tab(pre,n,select_n,bg_item,x,y){
document.getElementById(bg_item).style.background= "url(./images/pclady_tab_bg31.gif) no-repeat " + x + "px " + y + "px";
show_tbl(pre,n,select_n);
}
function change_channel(pre,n,select_n,a_id,a_class){
for(i=0;i<n;i++){
var tbl= document.getElementById(pre+i);
var aid=document.getElementById(a_id+i);
tbl.style.display="none";
aid.className="";
if(i==select_n){
tbl.style.display="block";
aid.className=a_class;
}
}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function SearchCheck() {

if (document.SearchForm.word.value == "")
{
alert("请输入搜索关键词.");
document.SearchForm.word.focus();
return false; 
}

}
