//首页各模块请求
//加载个人基本资料
function h_base_info(ownerId){
	transToHTML('h_base_info',{
	saveXslObj:'h_base_info',
	xsl:'../space/xsl/h_base_info.xsl',
	xml:'../space/index.php?op=getBasic&ownerId='+ownerId
	});
	}
//加载个人档案
function h_profile(ownerId,uhash){
	transToHTML('h_profile',{
	saveXslObj:'h_profile',
	xsl:'../space/xsl/h_profile.xsl',
	xml:'../space/profile.php?op=getProfile&ownerId='+ownerId+"&uhash="+uhash
	});
	}
//加载个人数据统计信息
function h_base_count(ownerId){
	transToHTML('h_count',{
	saveXslObj:'h_count',
	xsl:'../space/xsl/h_count.xsl',
	xml:'../space/index.php?op=getStat&ownerId='+ownerId
	});
	}
//加载评价信息
function h_appraise(ownerId){
	transToHTML('h_appraise',{
	saveXslObj:'h_appraise',
	xsl:'../space/xsl/h_appraise.xsl',
	xml:'../space/appraise.php?op=getAppraise&count=3&ownerId='+ownerId
	});
	}
//加载动态
function h_feeds(ownerId,uhash){
	transToHTML('h_feeds',{
	xsl:'../space/xsl/h_feeds.xsl',
	xml:'../space/feed.php?op=getfeed&from=home&ownerId='+ownerId+"&uhash="+uhash+'&count=10'
	});
	}
//加载访客
function h_visitor(ownerId){
	transToHTML('h_visitor',{
	saveXslObj:'h_visitor',
	xsl:'../space/xsl/h_visitor.xsl',
	xml:'../space/visitor.php?ownerId='+ownerId
	});
	}
//加载网络
function h_network(ownerId){
	transToHTML('h_network',{
	saveXslObj:'h_network',
	xsl:'../space/xsl/h_network.xsl',
	xml:'../space/setup.php?op=getnetwork&ownerId='+ownerId+'&uhash='+curOwnerHash
	});
	}
//加载互助	=  加载论坛帖子
function h_announce(ownerId){
	transToHTML('h_announce',{
	saveXslObj:'h_announce',
	xsl:'../space/xsl/h_announce2.xsl',
	xml:'../space/announce.php?op=getghuatilist&count=10&ownerId='+ownerId
	});
	}
//加载活动
function h_party(ownerId){
	transToHTML('h_party',{
	saveXslObj:'h_party',
	xsl:'../space/xsl/h_party.xsl',
	xml:'../party/my_party.php?type=participant&fmt=xml&num=3&ownerId='+ownerId
	//xml:'../party/my_party.php?time=latest&fmt=xml&num=3&ownerId='+ownerId
	});
	}
//加载照片
function h_photos(ownerId, uhash){
	transToHTML('h_photos',{
	saveXslObj:'h_photos',
	xsl:'../space/xsl/h_photos.xsl',
	xml:'../photo/photos.php?op=list&per_num=12&uid='+ownerId+'&uhash='+uhash+'&pageno=1'
	});
	}
//加载文章
function h_articles(ownerId, uhash){
	transToHTML('h_articles',{
	saveXslObj:'h_articles',
	xsl:'../space/xsl/h_articles.xsl',
	xml:'../blog/blog_list.php?op=listArticle&ownerId='+ownerId+'&hash='+uhash+'&count=5&simLen=180&img=0'
	});
	}
//参与的圈子
function h_groups(ownerId){
	transToHTML('h_groups',{
	saveXslObj:'h_groups',
	xsl:'../space/xsl/h_groups.xsl',
	xml:'../group/group.php?op=listUserGroup&fmt=xml&uid='+ownerId+'&limit=4'
	});
	}
//加载留言
function h_guestbook(ownerId){
	transToHTML('h_guestbook',{
	saveXslObj:'h_guestbook',
	xsl:'../space/xsl/h_guestbook.xsl',
	xml:'../space/guestbook.php?op=getlist&ownerId='+ownerId+'&count=4'
	});
	}
//加载礼物
function h_gift(ownerId){
	transToHTML('h_gift',{
	saveXslObj:'h_gift',
	xsl:'../space/xsl/h_gift.xsl',
	xml:'../space/gift.php?op=getlist&ownerId='+ownerId+'&count=7'
	});
	}
//加载好友
function h_friends(ownerId){
	transToHTML('h_friends',{
	saveXslObj:'h_friends',
	xsl:'../space/xsl/h_friends.xsl',
	xml:'../space/friend.php?op=getlist&ownerId='+ownerId+"&num=10"
	});
	}
//加载友情链接
function h_links(ownerId){
	transToHTML('h_links',{
	saveXslObj:'h_links',
	xsl:'../space/xsl/h_links.xsl',
	xml:'../space/links.php?ownerId='+ownerId
	});
	}
//加载分享图片
function h_favorite_photo(ownerId){
	transToHTML('h_favorite_photo',{
	xsl:'../photo/xsl/p_favorite_index.xsl',
	//xml:'../blog/format_photo.php?op=show&uid='+curOwnerId+'&per_num=4'
	xml:'../photo/collect.php?op=show&uid='+curOwnerId+'&per_num=4'
	});
	}
//加载分享文章
function h_favorite_blog(ownerId){
	transToHTML('h_favorite_blog',{
	xsl:'../blog/xsl/favorite_blog_index.xsl',
	//xml:'../blog/format.php?op=listJoinGroup&uid='+curOwnerId+'&pageNo=1'
	xml:'../blog/blog_list.php?op=listFavoriteArticle&uid='+curOwnerId+'&count=2'
	});
	}
//删除留言
function del_leave_word(ownerId, wordId) {
	var myAjax={};
	myAjax.sendAjax("../space/guestbook.php?op=del&id="+wordId+"&r="+Math.random(),{
		onSuccess:function(){
			var msg=parseReturnMsg(this.responseXML);
			if(msg.status=="ok"){
				h_guestbook(ownerId);
			}else{
				showAlert("出错信息",msg.description,null,4);
			}
		}
	});
}

//删除动态
function del_feeds(id) {
	var myAjax={};
	myAjax.sendAjax("../space/message.php?op=del_feed&id="+id+"&r="+Math.random(),{
		onSuccess:function(){
			var msg_result=parseReturnMsg(this.responseXML);
			if(msg_result.status=="ok"){
				h_news_feeds(curOwnerId)
				//alert("ok");
			}else{
				msg("删除动态失败");
			}
		}
	});
}