	$("#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;
	});

	$("#ctdiv a:first").click(function(){
		var a = $(this);
		if((typeof isGuest!='undefined' && isGuest) || (typeof uid!='undefined' && uid<=0)){
			return confirm('你还没登录呢，是否现在登录？');
		}else{
			if(confirm("温馨提示：你要收藏此条任务吗？")){
				location.href=a.next().href();
			}else{
				return false;
			}
		}
		return false;
	});
	$("#baoming 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;
	});
	
$("#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;
		});

$("#jiaogaomsg 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 copyTo(o){
	var clipBoardContent=""; 
	try{
		clipBoardContent+="猪八戒威客平台    ";
		clipBoardContent+=getObject("textarea").value;
		window.clipboardData.setData("Text",clipBoardContent);
		alert("你已复制你的推广连接，请粘贴到QQ/POPO/MSN等发给好友!");
	}catch(e){
		alert("firefox游览，请手动复制！");
	}
}
function Task_copyTo(o){
	var clipBoardContent="";
	try{
		document.getElementById(o).select();
		clipBoardContent=document.getElementById(o).value;
		window.clipboardData.setData("Text",clipBoardContent);
		alert("你已复制连接，可以粘贴到QQ/POPO/MSN等发给好友!");
	}catch(e){
		alert("firefox游览，请手动复制！");
	}
}

