
function UserItemDel(iID,oObj,fnSuccDel)
{function fnSucc(xmlDoc)
{var oNode=xmlDoc.getElementsByTagName("node");for(var i=0;i<oNode.length;++i)
{var iCode=oNode[i].getAttribute("code");if(iCode==0)
{fnSuccDel&&fnSuccDel(iID,oObj);alert("删除成功");}
else if(iCode==1)
{alert("不能删除身上物品");}
else
{alert("删除失败");}}}
function fnFail()
{alert("删除失败");}
getQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_user_itemdelete?item="+iID,fnSucc,fnFail,fnFail);};function UserItemSend(iID,iNo,iRecvUin,sMessage,sRecvInfo,oObj,fnSuccSend,iMail,iBeanType)
{function fnSucc(xmlDoc)
{WaitEnd([top.mainfra]);fnSuccSend&&fnSuccSend(iID,oObj);node=xmlDoc.getElementsByTagName("QQSHOW")[0];try
{var iRedBean=node.getAttribute("rb");var iQBean=node.getAttribute("qb");if(parseInt(iRedBean)>=0||parseInt(iQBean)>=0)
{if(parseInt(iRedBean)>=0)
{QUSER.setInfo("bean",iRedBean);}
FloatShow('/my/inc/giv_suc.html?type='+iBeanType+'&rb='+iRedBean+'&qb='+iQBean,524,278,null,null,0,0);}
else
{FloatShow(setURLParam(setURLParam(setURLParam("/mall/inc/send_feedback.html?select=0","recvinfo",sRecvInfo),"item_no",iNo),"recvuin",iRecvUin),430,342,null,null,0,0);}}
catch(e)
{alert("赠送成功");}}
function fnFail(oObj)
{WaitEnd([top.mainfra]);if(QQShowCommXMLError(oObj))
{iCode=oObj.getElementsByTagName("QQSHOW")[0].getAttribute("code");if(-101==parseInt(iCode))
{FloatShow('/my/inc/giv_fail.html?type='+iBeanType,524,282,null,null,0,0);return;}
var mapCodeMessage={"-51":"获赠号码不正确","-52":"物品号不正确","-53":"赠送留言中含有不能发表的内容","-1":"获赠号码不能是自己","-2":"您的好友尚未注册QQ秀2.0，您可以邀请他(她)注册","-4":"对不起，对方不是您的七天好友，不能赠送","-11":oObj.getElementsByTagName("QQSHOW")[0].getAttribute("message")};var sMessage;if(mapCodeMessage[iCode])
{sMessage=mapCodeMessage[iCode];}
else
{sMessage="很遗憾！系统繁忙，请稍候再试！";}
QQShowCommXMLError(oObj)&&(FloatShow(setURLParam("/mall/inc/send_feedback.html?select=4","message",sMessage),430,342,null,null,0,0));}}
function fnError()
{WaitEnd([top.mainfra]);alert("发送失败，请您稍后再试！");}
WaitStart([top.mainfra]);getQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_user_itemsend?item="+iID+"&recvuin="+iRecvUin+"&message="+sMessage.escUrl()+"&mail="+iMail+"&beantype="+iBeanType,fnSucc,fnFail,fnError);};function PREUserItemSend(iID,sName,iNo,iPrice,iPriceVip,iVipItem,iSrcType,oObj,fnSuccSend)
{function OnGetUinOK(x)
{var _Prm=new PARAM(x,"&","=");UserItemSend(iID,iNo,_Prm["uin"],_Prm["message"],_Prm["recvinfo"],oObj,fnSuccSend,_Prm["mail"],_Prm["beantype"]);}
var aParam=[sName,iNo,1,iPrice,iPriceVip,0,0,""];if(iSrcType!=1&&iSrcType!=5)
{FloatShow("/mall/inc/don.html?myitem=1&senditemtype="+1+"&info="+EncodeCart(aParam).escUrl(),404,304,OnGetUinOK);}
else
{FloatShow("/mall/inc/don.html?myitem=1&info="+EncodeCart(aParam).escUrl(),404,304,OnGetUinOK);}};function UserItemExpirePay(iID,iNo,iRecvUin,sMessage,sRecvInfo,oObj,fnSuccSend)
{function fnSucc(xmlDoc)
{fnSuccSend&&fnSuccSend(iID,oObj);node=xmlDoc.getElementsByTagName("QQSHOW")[0];try
{var iRedBean=node.getAttribute("rb");if(parseInt(iRedBean)>=0)
{QUSER.setInfo("bean",iRedBean);FloatShow('/my/inc/expire_pay_suc.html',524,290,null,null,0,0);}
else
{FloatShow(setURLParam(setURLParam(setURLParam("/mall/inc/send_feedback.html?select=0","recvinfo",sRecvInfo),"item_no",iNo),"recvuin",iRecvUin),430,342,null,null,0,0);}}
catch(e)
{alert("赠送成功");}}
function fnFail(oObj)
{if(QQShowCommXMLError(oObj))
{iCode=oObj.getElementsByTagName("QQSHOW")[0].getAttribute("code");if(-101==parseInt(iCode))
{FloatShow('/my/inc/expire_pay_suc.html',524,290,null,null,0,0);return;}
var mapCodeMessage={"-51":"获赠号码不正确","-52":"物品号不正确","-53":"赠送留言中含有不能发表的内容","-1":"获赠号码不能是自己","-2":"您的好友尚未注册QQ秀2.0，您可以邀请他(她)注册","-4":"对不起，对方不是您的七天好友，不能赠送","-11":oObj.getElementsByTagName("QQSHOW")[0].getAttribute("message")};var sMessage;if(mapCodeMessage[iCode])
{sMessage=mapCodeMessage[iCode];}
else
{sMessage="很遗憾！系统繁忙，请稍候再试！";}
QQShowCommXMLError(oObj)&&(FloatShow(setURLParam("/mall/inc/send_feedback.html?select=4","message",sMessage),430,342,null,null,0,0));}}
function fnError()
{alert("发送失败，请您稍后再试！");}
getQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_user_itemsend?item="+iID+"&recvuin="+iRecvUin+"&message="+sMessage.escUrl(),fnSucc,fnFail,fnError);};function PREUserItemExpireRePay(iID,sName,iNo,iPrice,iPriceVip,iVipItem,iSrcType,iExpTime,oObj,fnSuccSend)
{function OnGetExpirePayTime(x)
{var _Prm=new PARAM(x,"&","=");UserItemExpirePay(iID,iNo,_Prm["uin"],_Prm["message"],_Prm["recvinfo"],oObj,fnSuccSend);}
var aParam=[sName,iNo,1,iPrice,iPriceVip,iID,0,0,""];if(iSrcType!=1&&iSrcType!=5)
{FloatShow("/mall/inc/expire_pay_item.html?info="+EncodeCart(aParam).escUrl()+"&exptime="+iExpTime,404,304,OnGetExpirePayTime);}
else
{FloatShow("/mall/inc/expire_pay_item.html?info="+EncodeCart(aParam).escUrl()+"&exptime="+iExpTime,404,304,OnGetExpirePayTime);}};function ICDel(ino,oObj)
{function fnCallBack(xmlDoc)
{var iCode=xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code");if(iCode==0)
{oObj&&oObj.parentNode&&oObj.parentNode.parentNode&&(oObj.parentNode.parentNode.style.visibility="hidden");}}
ItemCollectionDel(ino,fnCallBack);};function ICShow(pno,pnum)
{function fnSucc(xmlDoc)
{ICShowPage(xmlDoc,pnum);if(xmlDoc.getElementsByTagName("node").length==0)
{document.getElementById("ID_list_item").innerHTML="没有任何物品收藏";}
setTimeout("WaitEnd([window, top.leftfra, top.topfra])",1000);}
function fnFail(xmlDoc)
{setTimeout("WaitEnd([window, top.leftfra, top.topfra])",1000);QQShowCommXMLError(xmlDoc)&&alert("操作失败");}
function fnError()
{setTimeout("WaitEnd([window, top.leftfra, top.topfra])",1000);alert("系统错误");}
var mapName=[["time","<%time%>",function(v){return new Date(v*1000).format("%Y-%m-%d %H:%M");}],["type","<%type%>"],["status","<%status%>"],["recmduin","<%recmduin%>"],["recmdtime","<%recmdtime%>"],["recmdcount","<%recmdcount%>"],["recmdtype","<%recmdtype%>"],["score","<%score%>"],["prize","<%prize%>"],["scoresum","<%scoresum%>"],["prizesum","<%prizenum%>"],["desc","<%desc%>",escHtml],["tags","<%tags%>",escHtml],["ino","<%no%>"],["itype","<%itype%>"],["ily","<%ily%>"],["ipricecur","<%ipricecur%>"],["ipricevip","<%ipricevip%>"],["iexp","<%iexp%>",toExpTime],["iname","<%iname%>",function(v){return v.asccut(8).escHtml();}],["iname","<%jsiname%>",escHrefScript],["isex","<%isex%>"],["isex","<%sex_name%>",function(v){return SexWord(v)}],["ipose","<%ipose%>"],["idx","<%idx%>"],["idy","<%idy%>"],["imov","<%imv%>"],["irot","<%irt%>"],["isel","<%isl%>"],["isptype","<%ispt%>"],["iposebound","<%iposebind%>"],["ino","<%from%>",ReturnMallNo],[['ino','isptype'],'<%item_type%>',function(v){return v[1]==1?"心情秀":(v[0]<1000000?"经典物品":(v[0]<2000000?"时尚物品":"特效QQ秀"))}]];WaitStart([window,top.leftfra,top.topfra]);showQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_user_itemcollection_get?style=-1&pnum="+pnum+"&pno="+pno,document.getElementById("ID_list_item"),"node",document.body.innerHTML.between("<\!--TPL.LIST.ITEM","TPL.LIST.ITEM--\>"),mapName,-1,-1,4,fnSucc,fnFail,fnError);};function ICShowPage(xmlDoc,pnum)
{if(document.getElementById("ID_page"))
{var o=xmlDoc.getElementsByTagName("QQSHOW")[0];showQQSHOWPage(o.getAttribute("pno"),o.getAttribute("pall"),function(n){return"javascript:ICShow("+n+", "+pnum+")";},document.getElementById("ID_page"),0);setHashParam("pno",o.getAttribute("pno"));}};function SCDel(ino,oObj)
{function fnCallBack(xmlDoc)
{var iCode=xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code");if(iCode==0)
{oObj&&oObj.parentNode.parentNode&&(oObj.parentNode.parentNode.style.visibility="hidden");}}
ShowCollectionDel(ino,fnCallBack);};function SCShow(pno,pnum)
{function fnSucc(xmlDoc)
{SCShowPage(xmlDoc,pnum);if(xmlDoc.getElementsByTagName("node").length==0)
{document.getElementById("ID_list_show").innerHTML="没有任何形象收藏";}
setTimeout("WaitEnd([window, top.leftfra, top.topfra])",1000);}
function fnFail(xmlDoc)
{setTimeout("WaitEnd([window, top.leftfra, top.topfra])",1000);QQShowCommXMLError(xmlDoc)&&alert("操作失败");}
function fnError()
{setTimeout("WaitEnd([window, top.leftfra, top.topfra])",1000);alert("系统错误");}
function switchNotOnCommendStyle(v)
{return v==1?"":"display:none";}
function switchOnCommendStyle(v)
{return v==1?"display:none":"";}
var mapName=[["uin","<%uin%>"],["id","<%id%>"],["id","<%from%>",ReturnMallNo],["name","<%name%>",escHtml],["name","<%name_href%>",escHrefScript],["show","<%show%>",function(v){return QQSHOW_avShow(v,140,226);}],["show","<%jsshow%>",escHrefScript],["time","<%time%>",function(v){return new Date(v*1000).format("%Y-%m-%d %H:%M");}],["type","<%type%>"],["status","<%status%>"],["recmduin","<%recmduin%>"],["recmdtime","<%recmdtime%>"],["recmdcount","<%recmdcount%>"],["recmdtype","<%recmdtype%>"],["score","<%score%>"],["prize","<%prize%>"],["scoresum","<%scoresum%>"],["prizesum","<%prizenum%>"],["desc","<%desc%>",escHtml],["tags","<%tags%>",escHtml],["commend","<%onCommend%>",switchOnCommendStyle],["commend","<%Commend%>",escHtml],["commend","<%Goto_cmd_page%>",function(v){return v==1?"commend_":"";}],["commend","<%NotonCommend%>",switchNotOnCommendStyle]];WaitStart([window,top.leftfra,top.topfra]);showQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_user_showcollection_get?style="+QUSER.getStyle()+"&pnum="+pnum+"&pno="+pno+"&status=1",document.getElementById("ID_list_show"),"node",document.body.innerHTML.between("<\!--TPL.LIST.SHOW","TPL.LIST.SHOW--\>"),mapName,-1,-1,4,fnSucc,fnFail,fnError);};function SCShowPage(xmlDoc,pnum)
{if(document.getElementById("ID_page"))
{var o=xmlDoc.getElementsByTagName("QQSHOW")[0];showQQSHOWPage(o.getAttribute("pno"),o.getAttribute("pall"),function(n){return"javascript:SCShow("+n+", "+pnum+")";},document.getElementById("ID_page"),0);setHashParam("pno",o.getAttribute("pno"));}};function recommend(id,show,sName,iType,sTags,sDesc)
{recomInfo.id=id;recomInfo.show=show;recomInfo.name=sName;recomInfo.type=iType;recomInfo.tags=sTags;recomInfo.desc=sDesc;function ShowRegPage()
{function OnOK(x)
{};function OnCancel(x)
{};if(top.mainfra&&top.topfra)
{FloatShow("/my/inc/write_commend_box.html",592,494,OnOK,OnCancel,0,-100,top.mainfra,null);}
else
{setTimeout("recommend()",1000);}};ShowRegPage();};function RECOMMENDINFO()
{this.id=0;this.show="";this.name="";this.type=0;this.tags="";this.desc="";};var recomInfo=new RECOMMENDINFO();function MsgBox()
{};MsgBox.prototype.alert=function(msg)
{QQShowDialog(1,msg,"提示",null,null,null,null,null,null,true);};MsgBox.prototype.confirm=function(msg,OnOk)
{QQShowDialog(2,msg,"提示",OnOk,null,null,null,null,null,true);};var msgBox=new MsgBox;function removeCommend(sId,name)
{function OnOk()
{if(_FireFox())
{getQQSHOWSyncXml("http://show.qq.com/cgi-bin/qqshow_user_commendcollection_del?id="+sId,fnSucc,fnFail,fnFail);}else
{getQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_user_commendcollection_del?id="+sId,fnSucc,fnFail,fnFail);}}
function fnSucc(oResponseXml)
{document.getElementById("detail_link_"+sId).href="/my/inc/collection_set_detail.html?id="+sId;document.getElementById("showName_"+sId).href="/my/inc/collection_set_detail.html?id="+sId;document.getElementById("a_"+sId+"_1").style.display="";document.getElementById("a_"+sId+"_2").style.display="none";document.getElementById("onCommend_"+sId).innerHTML="0".escNone();msgBox.alert("您的搭配作品 ["+name+"] 已停止推荐。");}
function fnFail(oResponseXml)
{QQShowCommXMLError(oResponseXml);}
msgBox.confirm("您的作品停止推荐后1天之内将从商城中下架，其他用户将无法购买此搭配，您确定停止推荐吗？",OnOk);};function commendSucc(sid,showName)
{document.getElementById("detail_link_"+sid).href="/my/inc/commend_collection_set_detail.html?id="+sid;document.getElementById("showName_"+sid).href="/my/inc/commend_collection_set_detail.html?id="+sid;document.getElementById("a_"+sid+"_1").style.display="none";document.getElementById("a_"+sid+"_2").style.display="";var showTagNo="showName_"+sid;document.getElementById(showTagNo).innerHTML=(""+showName).escHtml();document.getElementById("onCommend_"+sid).innerHTML="1".escNone();};function FloatCommendSucc(xmlDoc)
{function ShowSuccPage(ret)
{FloatShow("/my/inc/succeed_commend_box.html?ret="+ret,592,349,null,null,0,-100,top.mainfra,null);};var node=xmlDoc.getElementsByTagName("QQSHOW")[0];var iCode=node.getAttribute("code");var iret=parseInt(node.getAttribute("set"));FloatShow.Hide(top.mainfra);if(iret<0)
{ShowSuccPage(0);}
else if(1==iret)
{ShowSuccPage(0);}
else
{ShowSuccPage(1);}};function jumpGuestPage(a)
{FloatShow.Hide(top.mainfra);window.open(a,"_blank");};function deleteCommend(sId,name)
{function OnOk()
{if(document.getElementById("onCommend_"+sId).innerHTML==1)
{if(_FireFox())
{getQQSHOWSyncXml("http://show.qq.com/cgi-bin/qqshow_user_commendcollection_del?type=1&id="+sId,fnSucc,fnFail,fnFail);}else
{getQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_user_commendcollection_del?type=1&id="+sId,fnSucc,fnFail,fnFail);}}
else
{if(_FireFox())
{getQQSHOWSyncXml("http://show.qq.com/cgi-bin/qqshow_user_showcollection_del?id="+sId,fnSucc,fnFail,fnFail);}else
{getQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_user_showcollection_del?id="+sId,fnSucc,fnFail,fnFail);}}}
function fnSucc(oResponseXml)
{function fnSuccDP()
{WaitEnd([window,top.leftfra,top.topfra]);document.getElementById("div_"+sId).style.visibility="hidden";}
function fnFailDP(xmlDoc)
{WaitEnd([window,top.leftfra,top.topfra]);var iCode=parseInt(xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code"),10);CheckRetToLogin(iCode,1,window.location.href);}
function fnErrorDP()
{WaitEnd([window,top.leftfra,top.topfra]);msgBox.alert("删除该收藏下的所有评论系统错误!~");}
var showtype=parseInt(oResponseXml.getElementsByTagName("QQSHOW")[0].getAttribute("showtype"));if(showtype==2)
{var iVipCollect=parseInt(QUSER.getInfo("msgvipcollect"),10);QUSER.setInfo("msgvipcollect",iVipCollect-1);}
WaitStart([window,top.leftfra,top.topfra]);var url="http://show.qq.com/cgi-bin/qqshow_user_comment_del?picCmt=1&type=0";url=setURLParam(url,"objid",sId);url=setURLParam(url,"uin",GetUin());if(_FireFox())
getQQSHOWSyncXml(url,fnSuccDP,fnFailDP,fnErrorDP);else
getQQSHOWXml(url,fnSuccDP,fnFailDP,fnErrorDP);}
function fnFail(oResponseXml)
{QQShowCommXMLError(oResponseXml);}
if(document.getElementById("onCommend_"+sId).innerHTML==1)
msgBox.confirm("此搭配作品将从您的收藏列表中删除，同时在一天之内停止商城中的推荐，您确定要删除吗？",OnOk);else
msgBox.confirm("此搭配作品将从您的收藏列表中删除，您确定要删除吗？",OnOk);};function deleteCommendSingle(sId,name)
{function OnOk()
{if(_FireFox())
getQQSHOWSyncXml("http://show.qq.com/cgi-bin/qqshow_user_showcollection_del?id="+sId,fnSucc,fnFail,fnFail);else
getQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_user_showcollection_del?id="+sId,fnSucc,fnFail,fnFail);}
function fnSucc(oResponseXml)
{function fnSuccDP()
{WaitEnd([window,top.leftfra,top.topfra]);msgBox.alert("您的搭配作品 ["+name+"] 已停止收藏。");setTimeout(function(){window.location="/my/inc/collection_set.html";},200);}
function fnFailDP(xmlDoc)
{WaitEnd([window,top.leftfra,top.topfra]);var iCode=parseInt(xmlDoc.getElementsByTagName("QQSHOW")[0].getAttribute("code"),10);CheckRetToLogin(iCode,1,window.location.href);}
function fnErrorDP()
{WaitEnd([window,top.leftfra,top.topfra]);msgBox.alert("删除该收藏下的所有评论系统错误!~");}
var showtype=parseInt(oResponseXml.getElementsByTagName("QQSHOW")[0].getAttribute("showtype"));if(showtype==2)
{var iVipCollect=parseInt(QUSER.getInfo("msgvipcollect"),10);QUSER.setInfo("msgvipcollect",iVipCollect-1);}
WaitStart([window,top.leftfra,top.topfra]);var url="http://show.qq.com/cgi-bin/qqshow_user_comment_del?picCmt=1&type=0";url=setURLParam(url,"objid",sId);url=setURLParam(url,"uin",GetUin());if(_FireFox())
getQQSHOWSyncXml(url,fnSuccDP,fnFailDP,fnErrorDP);else
getQQSHOWXml(url,fnSuccDP,fnFailDP,fnErrorDP);}
function fnFail(oResponseXml)
{QQShowCommXMLError(oResponseXml);}
msgBox.confirm("此搭配作品将从您的收藏列表中删除，您确定要删除吗？",OnOk);};function SendSet(show,uin,id)
{sShowForDon=show;FloatShow("http://show.qq.com/mall/inc/don_mul.html?cmd=collection&uin="+uin+"&id="+id,434,346,null,null,0,-100);}
function AskSet(show,uin,id)
{sShowForReq=show;FloatShow("http://show.qq.com/mall/inc/req_mul.html?cmd=collection&uin="+uin+"&id="+id,434,346,null,null,0,-100);}
function DeleteCommend(sId,sName)
{function OnOk()
{if(_FireFox())
{getQQSHOWSyncXml("http://show.qq.com/cgi-bin/qqshow_user_commendcollection_del?type=1&id="+sId,fnSucc,fnFail,fnFail);}else
{getQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_user_commendcollection_del?type=1&id="+sId,fnSucc,fnFail,fnFail);}}
function fnSucc(oResponseXml)
{msgBox.alert("您的搭配作品 ["+sName+"] 已停止推荐。");document.getElementById("div_"+sId).style.visibility="hidden";}
function fnFail(oResponseXml)
{QQShowCommXMLError(oResponseXml);}
function fnFail(oResponseXml)
{QQShowCommXMLError(oResponseXml);}
msgBox.confirm("此搭配作品将从您的收藏列表中删除，同时在一天之内停止商城中的推荐，您确定要删除吗？",OnOk);}
function RemoveCommend(sId,sName)
{function OnOk()
{if(_FireFox())
{getQQSHOWSyncXml("http://show.qq.com/cgi-bin/qqshow_user_commendcollection_del?id="+sId,fnSucc,fnFail,fnFail);}else
{getQQSHOWXml("http://show.qq.com/cgi-bin/qqshow_user_commendcollection_del?id="+sId,fnSucc,fnFail,fnFail);}}
function fnSucc(oResponseXml)
{document.getElementById("div_"+sId).style.visibility="hidden";msgBox.alert("您的搭配作品 ["+sName+"] 已停止推荐。");}
function fnFail(oResponseXml)
{QQShowCommXMLError(oResponseXml);}
function fnFail(oResponseXml)
{QQShowCommXMLError(oResponseXml);}
msgBox.confirm("您的作品停止推荐后1天之内将从商城中下架，其他用户将无法购买此搭配，您确定停止推荐吗？",OnOk);}/*  |xGv00|d4f8674a75ddefb666aba0402510c938 */