/*
$("#baomingf a:first").click(function(){
		var a  = $(this);
		if((typeof isGuest!='undefined' && isGuest) || (typeof uid!='undefined' && uid<=0)){
		return confirm('你还没登录呢，是否现在登录？');
		}else{
		location.href=a.next().href();
		}
		return false;
});

$("#sendmsg a:first").click(function(){
		var a  = $(this);
		if((typeof isGuest!='undefined' && isGuest) || (typeof uid!='undefined' && uid<=0)){
			return confirm('你还没登录呢，是否现在登录？');
		}else{
			location.href=a.next().href();
		}
		return false;
});
*/
$("#faburwpl a:first").click(function(){
		var a = $(this);
		if((typeof isGuest!='undefined' && isGuest) || (typeof uid!='undefined' && uid<=0)){
		return confirm('你还没登录呢，是否现在登录？');
		}else{
		location.href=a.next().href();
		}
		return false;
		});

function toupiao(tid,gid,usr){
	var rn=parseInt(Math.random()*1000);
	if(confirm('你要给此稿投票吗？稿件作者：'+usr)){
		getajax("/task/?com=tp&tid="+tid+"&gid="+gid+"&rn="+rn,"tp_"+gid,"1","true");
	}else{
		return false;
	}
}

function showdiv(tid,gid){
	var WHA = getPageScroll();
	var WH = WHA[1];
	if(document.getElementById("winpl").style.display == "inline"){
		document.getElementById("winpl").style.display = "none";
		document.getElementById("tijiaoaaa").value="请填写内容";
	}else{
		document.getElementById("winpl").style.top= WH+200+"px";
		document.getElementById("winpl").style.display = "inline";
	}
	document.getElementById('pl_id').innerHTML = gid;
	document.pj.pl_gid.value = gid;
	//document.getElementById('winpl').style.top= (document.getElementById('winpl').clientY-document.getElementById('winpl').offsetTop)+"px";
}

function showdivtxt(tid,gid,cont){
	var WHA = getPageScroll();
	var WH = WHA[1];
	if(document.getElementById("winpl").style.display == "inline"){
		document.getElementById("winpl").style.display = "none";
		document.getElementById("tijiaoaaa").value=cont;
	}else{
		document.getElementById("winpl").style.top= WH+200+"px";
		document.getElementById("winpl").style.display = "inline";
	}
	document.getElementById('pl_id').innerHTML = gid;
	document.getElementById('tdId').value = cont;
	document.pj.pl_gid.value = gid;
	//document.getElementById('winpl').style.top= (document.getElementById('winpl').clientY-document.getElementById('winpl').offsetTop)+"px";
}

function closediv(){
	document.getElementById("winpl").style.display ="none";
	document.getElementById("tijiaoaaa").value="请填写内容";
}
