﻿function tab (mod,cursor,n){
	for(i=1;i<=n;i++){
		var nav=document.getElementById(mod+i);
		var cont=document.getElementById(mod+"_"+"cont"+i);
		nav.className=(i==cursor)?"btnb_on":"btnb_off";
		nav.style.backgroundColor=(i==cursor)?"#d0e5f7":"#f2f7fd";
		nav.style.color=(i==cursor)?"#111111":"#333333";
		cont.style.display=(i==cursor)?"block":"none";
	}

}

function shownav(h){
   for(var i=0;i<4;i++){document.getElementById("txt_"+i).className="txt0";}
   document.getElementById("txt_"+h).className="txt1";
}

function shownav2(h){
   for(var i=0;i<8;i++){document.getElementById("phtxt_"+i).className="phtxt0";}
   document.getElementById("phtxt_"+h).className="phtxt1";
}

function CheckPL()
{
	if(pl.Memo.value=="")
	{
		alert("请输入评论内容！");
		pl.Memo.focus();
		return false;
	}
}
function CheckHF()
{
	if(hf.hf.value=="")
	{
		alert("请输入回复内容！");
		hf.hf.focus();
		return false;
	}
}
function CheckInput()
{
	if(Search.Sub_KeyWords.value=="")
	{
		alert("请输入关键词！");
		Search.Sub_KeyWords.focus();
		return false;
	}
}

