function billdateOnchange()
{var year=$("year").value;if(year=="year")
return;else
year=parseInt(year);var month=$("month").value;if(month=="month")
return;else
{month++;month--;}
var day=$("day").value;var wholeday=getDays(year,month);if(1)
{var options=$("day").options;for(var i=1;i<=wholeday;i++)
{var j=i.toString();j=j.length==1?"0"+j:j;options.length=i;options[i-1].value=j;options[i-1].text=j;if(day<=wholeday&&i==day)
{options[i-1].selected=true;}}}}
function f2_afterseluid(uid)
{gotoUser(uid);}
function gotoUser(uid)
{var url="/bill/check.php";var pars="verify="+g_verify+"&fuid="+uid;var myAjax=new Ajax.Request(url,{method:"post",parameters:pars,onComplete:function(req){gotouserAjaxShow(req);}});}
function gotouserAjaxShow(req)
{eval("r="+req.responseText);if(r.appinstall)
{if(r.uid==r.v_uid)
{window.location.href="/!bill/mybill.php?uid="+r.uid+"&t="+Math.ceil(Math.random()*100);}
else
{window.location.href="/!bill/bill.php?uid="+r.uid+"&t="+Math.ceil(Math.random()*100);}}
else
{alert(r.real_name+"还没有添加本组件！");}}
var otherfriend_display=false;function viewOtherFriendBill()
{$('xx_sh').innerHTML='<img src="http://img1.kaixin001.com.cn/i/xx_xx1.gif" class="cp" onmouseover="this.src=\'http://img1.kaixin001.com.cn/i/xx_xx2.gif\';" onmouseout="this.src=\'http://img1.kaixin001.com.cn/i/xx_xx1.gif\';" alt="好友的知我多少" />';$('fsg_nr').style.display="none";if(otherfriend_display==false)
{otherfriend_display=true;doAjaxOtherFriend();}
else if(otherfriend_display==true)
{otherfriend_display=false;$("otherfriendbill").style.display="none";}}
function doAjaxOtherFriend()
{var aid=1054;var appurl="/!bill/bill.php";var url="/interface/appfriend.php";var pars="aid="+aid;var myAjax=new Ajax.Request(url,{method:"post",parameters:pars,onComplete:function(req){otherAjaxShow(req,appurl);}});}
function otherAjaxShow(req,appurl)
{eval("r="+req.responseText);var html='';for(var i=0;i<r.length;i++)
{html+='<div class="bb1d8"><a style="cursor:pointer;" class="sl2_r" href="'+appurl+'?uid='+r[i].uid+'"><div class="l" style="width:5em;">'+r[i].name+'</div><div class="l" style="width:3em;">'+'('+r[i].index_num+')</div><div class="l" style="width:2em;">'+'&gt;&gt;</div><div class="c"></div></a>'+'</div>';}
if(r.length==0)
{html+='<div class="p5 c9">你的好友还没有添加过该组件</div>';}
$("NM_lis").innerHTML=html;$("otherfriendbill").style.display="block";}
function fs2_superOnclick_bill()
{otherfriend_display=false;$("otherfriendbill").style.display="none";fs2_superOnclick();}
function fs2_viewAllfriend_bill()
{otherfriend_display=false;$("otherfriendbill").style.display="none";fs2_viewAllfriend();}
function close_otherfriend()
{otherfriend_display=false;$("otherfriendbill").style.display="none";}
