jQuery.noConflict();
var $j = jQuery;

function myuserinfo_top(domain,moduleid,theurl)
{
	$j.ajax
	({
		type: "GET",		
    	dataType: 'json',
    	url:("/index.php?json=json&op=myuserinfo"),    	
    	success: function (data, status)
    	{
    		var obj = document.getElementById(moduleid);
    		
    		if(data.id>0)
    		{
    			 obj.innerHTML = '您好！<a style="text-decoration:underline;" href="'+domain+'/User,Info/userid,'+data.id+'1.html">'+data.nickname
    			 				+'</a>('+data.username+') <a style="text-decoration:underline;" href="/UserAdmin,LoginOut/1.html?url='
    			 				+ theurl 
    			 				+'">退出</a>';
    		}else
    		{
    			obj.innerHTML = '<a style="text-decoration:underline;" href="'+domain+'/UserAdmin,Login/1.html?url='+theurl
    			+'">登录</a> | <a style="text-decoration:underline;" href="'+domain+'/User,Reg/1.html?url='+theurl+'">注册</a>';		
    		}
    	},
    	error: function (data, status, e){""}
    });
}

function myboards(domain,moduleid,theurl)
{
	$j.ajax
	({
		type: "GET",		
    	dataType: 'html',
    	url:("/index.php?json=json&op=myboards"),    	
    	success: function (data, status)
    	{
    		var obj = document.getElementById(moduleid);
    		obj.innerHTML = data.substr(1,data.length-2);    		
    	},
    	error: function (data, status, e){""}
    });
}

function owner(domain,moduleid,theurl,boardid)
{
	$j.ajax
	({
		type: "GET",		
    	dataType: 'html',
    	url:("/index.php?json=json&op=owner&boardid="+boardid),    	
    	success: function (data, status)
    	{
    		var obj = document.getElementById(moduleid);
    		obj.innerHTML = data.substr(1,data.length-2);    		
    	},
    	error: function (data, status, e){""}
    });
}