function Trim(){return this.replace(/\s+$|^\s+/g,"");}String.prototype.Trim=Trim;
function CheckAll(value,elementId){
var s = document.getElementsByName(elementId);
    for (var j=0;j<s.length;j++){
    var e = s[j]; 
    if (value=="All"){e.checked= true}     
    else{e.checked=!e.checked;} 

 }
}
function getObject(elementId){ 	if (document.getElementById) { return document.getElementById(elementId); } else if (document.all) { return document.all[elementId]; } else if (document.layers) { return document.layers[elementId];}}
function g(elementId){ 	if (document.getElementById) { return document.getElementById(elementId); } else if (document.all) { return document.all[elementId]; } else if (document.layers) { return document.layers[elementId];}}
function getObjValue(elementId){if(getObject(elementId).value!=undefined)return getObject(elementId).value.Trim();else return "";}
function getObjValueRadio(elementId) { var tmp=document.getElementsByName(elementId);for(var i=0;i<tmp.length;i++){if(tmp[i].checked)return tmp[i].value.Trim();}}   
function getObjValueBox(elementId,yes,no){if(getObject(elementId).checked==true)return yes;else return no;}
function getObjValueBoxAll(elementId){var s = document.getElementsByName(elementId); var s2 = ""; for( var i = 0; i < s.length; i++ ){if ( s[i].checked ){s2 += s[i].value+','; }} return s2;}
function XHR(){var xhr;try{xhr=new XMLHttpRequest();}catch(e){var a=['MSXML2.XMLHTTP.5.0','MSXML2.XMLHTTP.4.0','MSXML2.XMLHTTP.3.0','MSXML2.XMLHTTP','MICROSOFT.XMLHTTP.1.0','MICROSOFT.XMLHTTP.1','MICROSOFT.XMLHTTP'];for (var i=0;i<a.length;i++){try{xhr = new ActiveXObject(a[i]);break;}catch(e){}}}return xhr;}
function send_data(data,fun){showAlert(1,'数据保存中,请稍等……',null);var xhr=xHTTP();if(xhr){xhr.open("POST", "../../../common_save_date.asp", true);xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");xhr.onreadystatechange=function(){if(xhr.readyState==4){if(xhr.status==200){
if(xhr.responseText.split(",")[0]=='haveclassorno'){popclose();getObject("haveclassorno_div").style.display='none';}
else if(xhr.responseText.split(",")[0]=='biaoqingok'){popclose();getObject("biaoqing"+xhr.responseText.split(",")[1]+"_div").innerHTML=xhr.responseText.split(",")[2];}
else if(xhr.responseText.split(",")[0]=='guestaddok'){popclose();getList_info('user_class_pl.asp?shop_good_page=1&r='+Math.random()+'&class_id='+xhr.responseText.split(",")[1],'get_list_good_view');getObject("content").value="在此输入评论内容";showAlert(2,'发布成功……',null);}
else if(xhr.responseText.split(",")[0]=='use_card_ok'){popclose();Close_common_div_small();if(getObject("div_test_"+xhr.responseText.split(",")[1])){getList_info_text('../../../user_inpage_test_'+xhr.responseText.split(",")[1]+'_first.asp?r='+Math.random(),'div_test_'+xhr.responseText.split(",")[1])};if(getObject("card_nums_"+xhr.responseText.split(",")[1])){getObject("card_nums_"+xhr.responseText.split(",")[1]).innerHTML=xhr.responseText.split(",")[2]};getObject('ShowUseOk').style.display='';box_min('ShowUseOk','400','96');}
else if(xhr.responseText.split(",")[0]=='go_to_me_ok'){popclose();window.location.href="../../../u/"+xhr.responseText.split(",")[1];}
else if(xhr.responseText.split(",")[0]=='diary_ok'){popclose();if(getObject("diary_content")){getObject("diary_content").innerHTML=getObjValue("content")};Close_common_div_small();if(getObject("diary_s_"+xhr.responseText.split(",")[1])){getObject("diary_s_"+xhr.responseText.split(",")[1]).src='../../../images/diary_1.gif'};;getObject('ShowUseOk').style.display='';box_min('ShowUseOk','400','96');}
else if(xhr.responseText.split(",")[0]=='add_class_ask_ok'){popclose();Close_common_div_small();getList_info_text('../../../user_inpage_class_ask.asp?class_id='+xhr.responseText.split(",")[1]+'&r='+Math.random(),'class_info_show');getObject('ShowUseOk').style.display='';box_min('ShowUseOk','400','96');}
else if(xhr.responseText.split(",")[0]=='del_message_you_ok'){popclose();online('getList_info_text(\'../../../user_inpage_message_you.asp?r=\'+Math.random(),\'message_info_show\')');}
else if(xhr.responseText.split(",")[0]=='del_message_me_ok'){popclose();online('getList_info_text(\'../../../user_inpage_message_me.asp?r=\'+Math.random(),\'message_info_show\')');}
else if(xhr.responseText.split(",")[0]=='add_face_ok'){popclose();getObject("face_nums_"+xhr.responseText.split(",")[1]).innerHTML=xhr.responseText.split(",")[2]}
else if(xhr.responseText.split(",")[0]=='add_say_ok'){popclose();Close_common_div_small();showAlert(2,'发布成功……',null)}

else if(xhr.responseText.split(",")[0]=='test_ok'){popclose();if(getObject("div_test_"+xhr.responseText.split(",")[2])){getList_info_text('../../../user_inpage_test_ok_result.asp?test='+xhr.responseText.split(",")[2]+'&test_id='+xhr.responseText.split(",")[1]+'&r='+Math.random(),'div_test_'+xhr.responseText.split(",")[2])};}
else if(xhr.responseText.split(",")[0]=='guestbook_ok'){popclose();Close_common_div_small();getList_info_text('../../../user_inpage_guestbook_list.asp?base_uid='+xhr.responseText.split(",")[1]+'&'+Math.random(),'set_guestbook_show');}
else if(xhr.responseText.split(",")[0]=='add_message_ok'){popclose();online('getList_info_text(\'../../../user_inpage_message_me.asp?r=\'+Math.random(),\'message_info_show\')');css_click('message_view','message_view_3');}
else if(xhr.responseText.split(",")[0]=='test_qizhi_step_1'){popclose();if(getObject("div_test_6")){getList_info_text('../../../user_inpage_test_6.asp?'+xhr.responseText.split(",")[1]+'&r='+Math.random(),'div_test_6')};}
else if(xhr.responseText.split(",")[0]=='send_ok'){popclose();Close_common_div_small();if(getObject("card_nums_"+xhr.responseText.split(",")[1])){getObject("card_nums_"+xhr.responseText.split(",")[1]).innerHTML=xhr.responseText.split(",")[2]};getObject('ShowUseOk').style.display='';box_min('ShowUseOk','400','96');}
else if(xhr.responseText.split(",")[0]=='ok_get_card'){popclose();showAlert(6,'操作成功！','reg_ok_urlto(\"'+xhr.responseText.split(",")[1]+'\")');}
else if(xhr.responseText.split(",")[0]=='test_nengli_step_1'){popclose();if(getObject("div_test_5")){getList_info_text('../../../user_inpage_test_5.asp?'+xhr.responseText.split(",")[1]+'&r='+Math.random(),'div_test_5')};}
else if(xhr.responseText==1){showAlert(2,'操作成功……',null)}
else{showAlert(3,xhr.responseText,null)}}else{showAlert(3,'网络传输错误,请重试……',null)}}};xhr.send(data);}}
function send_data_text(data,fun){;var xhr=xHTTP();if(xhr){xhr.open("POST", "../../../common_save_date.asp", true);xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");xhr.onreadystatechange=function(){if(xhr.readyState==4){if(xhr.status==200){
if(xhr.responseText.split(",")[0]=='haveclassorno'){popclose();getObject("haveclassorno_div").innerHTML="<IMG SRC='new_css/shoye/new_84.gif'>";}
else if(xhr.responseText.split(",")[0]=='test_ok'){popclose();if(getObject("div_test_"+xhr.responseText.split(",")[2])){getList_info_text('../../../user_inpage_test_ok_result.asp?test='+xhr.responseText.split(",")[2]+'&test_id='+xhr.responseText.split(",")[1]+'&r='+Math.random(),'div_test_'+xhr.responseText.split(",")[2])};getObject("test_icon_ok").src='../../../images/test_ok_1.gif'}
else if(xhr.responseText.split(",")[0]=='test_qizhi_step_1'){popclose();if(getObject("div_test_6")){getList_info_text('../../../user_inpage_test_6.asp?'+xhr.responseText.split(",")[1]+'&r='+Math.random(),'div_test_6')};getObject("test_icon_"+xhr.responseText.split(",")[2]).style.backgroundImage='url(../../../images/0360.gif)'}
else if(xhr.responseText.split(",")[0]=='test_nengli_step_1'){popclose();if(getObject("div_test_5")){getList_info_text('../../../user_inpage_test_5.asp?'+xhr.responseText.split(",")[1]+'&r='+Math.random(),'div_test_5')};getObject("test_icon_"+xhr.responseText.split(",")[2]).style.backgroundImage='url(../../../images/0355.gif)';}
else if(xhr.responseText==1){showAlert(2,'操作成功……',null)}
else{showAlert(3,xhr.responseText,null)}}else{showAlert(3,'网络传输错误,请重试……',null)}}};xhr.send(data);}}

function send_data_save(data,fun) {showAlert(1,'数据保存中,请稍等……',null);var xhr=xHTTP();if(xhr){
xhr.open("POST", "common_save_date_nologin.asp", true);xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");xhr.onreadystatechange=function(){if(xhr.readyState==4){if(xhr.status==200){
if(xhr.responseText.split(",")[0]=='ok_get_card'){popclose();showAlert(2,'为【'+xhr.responseText.split(",")[1]+'】成功充值！',null);}
else if(xhr.responseText.split(",")[0]=='reg_ok'){popclose();showAlert(6,'恭喜您注册成功！！','reg_ok_urlto(\"'+xhr.responseText.split(",")[1]+'\")');}

else if(xhr.responseText.split(",")[0]=='ok_money_yinhang_1'){popclose();getList_info('common_service_chongzhi_online_2.asp?uname='+xhr.responseText.split(",")[1]+'&uemail='+xhr.responseText.split(",")[2]+'&money='+xhr.responseText.split(",")[3]+'&r='+Math.random(),'show_info');}
else if(xhr.responseText.split(",")[0]=='money_yinhang_alipay_1'){popclose();getList_info('common_service_chongzhi_alipay_2.asp?uname='+xhr.responseText.split(",")[1]+'&uemail='+xhr.responseText.split(",")[2]+'&money='+xhr.responseText.split(",")[3]+'&r='+Math.random(),'show_info');}
else if(xhr.responseText.split(",")[0]=='showyue_ling_ok'){popclose();showAlert(2,'您宝宝月龄为【'+xhr.responseText.split(",")[1]+'】！',null);}
else if(xhr.responseText==1){showAlert(2,'操作成功……',null)}else{showAlert(3,xhr.responseText,null)}}else{showAlert(3,'网络传输错误,请重试……',null)}}};xhr.send(data);}}
function xHTTP(){var a=null;if(window.ActiveXObject){a=new ActiveXObject("Msxml2.XMLHTTP");if(!a){a=new ActiveXObject("Microsoft.XMLHTTP")}}else if(window.XMLHttpRequest){a=new XMLHttpRequest()}return a}
function getList_info(info_url,div_id){showAlert(1,'数据加载中，请耐心等待……');var xhr=xHTTP();xhr.open("GET", info_url, true);xhr.onreadystatechange=function(){if(xhr.readyState==4){if(xhr.status==200){popclose();getObject(div_id).innerHTML=xhr.responseText;}else{showAlert(3,'获取信息失败,请重新操作……')}}};xhr.send(null);}
function getList_div(info_url,div_id,div_show){showAlert(1,'数据加载中，请耐心等待……');var xhr=xHTTP();xhr.open("GET", info_url, true);xhr.onreadystatechange=function(){if(xhr.readyState==4){if(xhr.status==200){popclose();getObject(div_id).innerHTML=xhr.responseText;getObject(div_show).style.display=""}else{showAlert(3,'获取信息失败,请重新操作……')}}};xhr.send(null);}
function GetCookie(name){var arg = name + "=";var alen = arg.length;var clen = document.cookie.length;var i = 0;while (i<clen){var j = i + alen;if (document.cookie.substring(i, j) == arg)return getCookieVal (j);i = document.cookie.indexOf(" ", i) + 1;if (i == 0) break;}return null;}
function getCookieVal(offset){var endstr = document.cookie.indexOf (";", offset);if (endstr == -1)endstr = document.cookie.length;return unescape(document.cookie.substring(offset, endstr));}
function getWinSize(_target){var windowWidth,windowHeight;if(_target) target = _target.document;else target = document;	if (self.innerHeight){if(_target) target = _target.self;else target = self;windowWidth = target.innerWidth;windowHeight = target.innerHeight;} else if (target.documentElement && target.documentElement.clientHeight){windowWidth = target.documentElement.clientWidth;windowHeight = target.documentElement.clientHeight;} else if (target.body) {windowWidth = target.body.clientWidth;windowHeight = target.body.clientHeight;}return {width:parseInt(windowWidth),height:parseInt(windowHeight)};}
function box_min(box,w,h){getObject(box).style.top=(getWinSize().height-h)/2 + document.body.scrollTop+'px';getObject(box).style.left=(getWinSize().width-w)/2+'px';}
function showAlert(type,msg,fun)
        {
	var txt_innerHTML="";
	switch (type){
case 1:txt_innerHTML = "<table width=380 border=0 cellpadding=10 cellspacing=0  height=80><tr><td width=60 align=center><img src='../../../images/alert_loading.gif' width=32 height=32 ></td><td align=left><span style='font-weight:bold;color:#000000;font-size:12px;'>"+ msg +"</span></td></tr></table>";break;
case 2:txt_innerHTML = "<table width=380 border=0 cellpadding=0 cellspacing=0  height=80><tr><td ROWSPAN=2 align=center width=80><img src='../../../images/alert_ok.gif'></td><td align=left><span style='font-weight:bold;color:#000000;font-size:12px;'>"+ msg +"</span></td></tr><tr><td align=right height=24><IMG SRC=../../../images/alert_bot_ok.gif onmouseover='this.src=\"../../../images/alert_bot_ok_on.gif\"' onmouseout='this.src=\"../../../images/alert_bot_ok.gif\"' STYLE='cursor:hand'  ONCLICK='popclose();'>&nbsp;</td></tr></table>";break;
case 3:txt_innerHTML = "<table width=380 border=0 cellpadding=0 cellspacing=0  height=80><tr><td ROWSPAN=2 align=center width=80><img src='../../../images/alert_error.gif'></td><td align=left><span style='font-weight:bold;color:#000000;font-size:12px;'>"+ msg +"</span></td></tr><tr><td align=right height=24><IMG SRC=../../../images/alert_bot_ok.gif  STYLE='cursor:hand'  onmouseover='this.src=\"../../../images/alert_bot_ok_on.gif\"' onmouseout='this.src=\"../../../images/alert_bot_ok.gif\"' ONCLICK='popclose();'>&nbsp;</td></tr></table>";break;
case 4:txt_innerHTML = "<table width=380 border=0 cellpadding=0 cellspacing=0  height=80><tr><td ROWSPAN=2 align=center width=80><img src='../../../images/alert_ask.gif'></td><td align=left><span style='font-weight:bold;color:#000000;font-size:12px;'>"+ msg +"</span></td></tr><tr><td align=right height=24><IMG SRC=../../../images/alert_bot_ok.gif  onmouseover='this.src=\"../../../images/alert_bot_ok_on.gif\"' onmouseout='this.src=\"../../../images/alert_bot_ok.gif\"' STYLE='cursor:hand'  ONCLICK="+fun+";popclose();>&nbsp;<IMG SRC=../../../images/alert_bot_no.gif WIDTH=69 HEIGHT=24 STYLE='cursor:hand'  onmouseover='this.src=\"../../../images/alert_bot_no_on.gif\"' onmouseout='this.src=\"../../../images/alert_bot_no.gif\"' ONCLICK='popclose();'>&nbsp;</td></tr></table>";break;
case 5:txt_innerHTML = "<table width=380 border=0 cellpadding=0 cellspacing=0  height=80><tr><td ROWSPAN=2 align=center width=80><img src='../../../images/alert_error.gif'></td><td align=left><span style='font-weight:bold;color:#000000;font-size:12px;'>"+ msg +"</span></td></tr><tr><td align=right height=24><IMG SRC=../../../images/alert_bot_ok.gif  STYLE='cursor:hand'  onmouseover='this.src=\"../../../images/alert_bot_ok_on.gif\"' onmouseout='this.src=\"../../../images/alert_bot_ok.gif\"' ONCLICK="+fun+";popclose();>&nbsp;</td></tr></table>";break;
case 6:txt_innerHTML = "<table width=380 border=0 cellpadding=0 cellspacing=0  height=80><tr><td ROWSPAN=2 align=center width=80><img src='../../../images/alert_ok.gif'></td><td align=left><span style='font-weight:bold;color:#000000;font-size:12px;'>"+ msg +"</span></td></tr><tr><td align=right height=24><IMG SRC=../../../images/alert_bot_ok.gif  STYLE='cursor:hand'  onmouseover='this.src=\"../../../images/alert_bot_ok_on.gif\"' onmouseout='this.src=\"../../../images/alert_bot_ok.gif\"' ONCLICK="+fun+";popclose();>&nbsp;</td></tr></table>";break;

}
getObject('divalert').innerHTML=txt_innerHTML;		 
getObject('divalert').style.display='';
box_min('divalert','410','110');}
function popclose(){getObject('divalert').style.display='none';}
function copyText(obj){clipboardData.setData('text', obj);showAlert(4,'地址复制成功，请发送给你的MSN或者QQ等的朋友！',null)}
function bookmarkit(urls,names){window.external.addFavorite(urls,names);}
function css_over(style,id){getObject(id).className=style+"_on"}
function css_out(style,id){getObject(id).className=style+"_off";getObject(getObjValue(style)).className=style+"_on";}
function css_click(style,id){getObject(getObjValue(style)).className=style+"_off";getObject(style).value=id;getObject(id).className=style+"_on"}
function get_reg_info(){send_data_save('act=get_reg_ok&space_url='+ecode(getObjValue('space_url'))+'&name='+ecode(getObjValue('name'))+'&agent_id='+ecode(getObjValue('agent_id'))+'&psd='+ecode(getObjValue('psd'))+'&rpsd='+ecode(getObjValue('rpsd'))+'&xingming='+ecode(getObjValue('xingming'))+'&sex='+ecode(getObjValueRadio('sex'))+'&bir_y='+ecode(getObjValue('bir_y'))+'&bir_m='+ecode(getObjValue('bir_m'))+'&bir_d='+ecode(getObjValue('bir_d'))+'&weekvalue='+ecode(getObjValueRadio('weekvalue'))+'&tuijianren='+ecode(getObjValue('tuijianren'))+'&tel='+ecode(getObjValue('tel'))+'&City='+ecode(getObjValue('City'))+'&qq='+ecode(getObjValue('qq'))+'&teacher_id='+ecode(getObjValue('teacher_id')))}
function get_reg_info_music(){send_data_save_music('act=get_reg_ok&space_url='+ecode(getObjValue('space_url'))+'&name='+ecode(getObjValue('name'))+'&agent_id='+ecode(getObjValue('agent_id'))+'&psd='+ecode(getObjValue('psd'))+'&rpsd='+ecode(getObjValue('rpsd'))+'&xingming='+ecode(getObjValue('xingming'))+'&sex='+ecode(getObjValueRadio('sex'))+'&bir_y='+ecode(getObjValue('bir_y'))+'&bir_m='+ecode(getObjValue('bir_m'))+'&bir_d='+ecode(getObjValue('bir_d'))+'&weekvalue='+ecode(getObjValueRadio('weekvalue'))+'&tuijianren='+ecode(getObjValue('tuijianren'))+'&tel='+ecode(getObjValue('tel'))+'&City='+ecode(getObjValue('City'))+'&qq='+ecode(getObjValue('qq'))+'&teacher_id='+ecode(getObjValue('teacher_id')))}
function send_data_save_music(data,fun) {showAlert(1,'数据保存中,请稍等……',null);var xhr=xHTTP();if(xhr){
xhr.open("POST", "common_save_date_nologin.asp", true);xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");xhr.onreadystatechange=function(){if(xhr.readyState==4){if(xhr.status==200){
if(xhr.responseText.split(",")[0]=='reg_ok'){popclose();alert('恭喜您申请成功！');window.location.href="../../../u/"+xhr.responseText.split(",")[1];}
else if(xhr.responseText==1){showAlert(2,'操作成功……',null)}else{popclose();alert(xhr.responseText)}}else{showAlert(3,'网络传输错误,请重试……',null)}}};xhr.send(data);}}

function reg_ok_urlto(url){window.location.href="../../../u/"+url;}
function get_card_year(){online('send_data(\'act=get_card_year&code=\'+ecode(getObjValue(\'code\'))+\'&card_number=\'+ecode(getObjValue(\'card_number\'))+\'&card_psd=\'+ecode(getObjValue(\'card_psd\')))')}
function get_card_part(){online('send_data(\'act=get_card_part&code=\'+ecode(getObjValue(\'code\'))+\'&card_number=\'+ecode(getObjValue(\'card_number\'))+\'&card_psd=\'+ecode(getObjValue(\'card_psd\')))')}
function get_card_shop(){online('send_data(\'act=get_card_shop&card_shop=\'+ecode(getObjValue(\'card_shop\')))')}
function ecode(str){str=(str == null ? "":encodeURIComponent(str));str=(str == null ? "":encodeURIComponent(str));return str;}
function Show_common_div(n,t) {getObject("common_divs_title").innerHTML="&nbsp;&nbsp;"+t+"&nbsp;&nbsp;";getObject("common_divs").style.display="";box_min('common_divs',"816","516");getList_info_text(n+"r="+Math.random(),"common_divs_content");}
function getList_info_text(info_url,div_id){getObject(div_id).innerHTML='<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0" HEIGHT="100%"><TR><TD ALIGN="CENTER" VALIGN="MIDDLE"><IMG SRC="../../../images/loading.gif" WIDTH="32" HEIGHT="32"></TD></TR></TABLE>';var xhr=xHTTP();xhr.open("GET", info_url, true);xhr.onreadystatechange=function(){if(xhr.readyState==4){if(xhr.status==200){popclose();getObject(div_id).innerHTML=xhr.responseText;eval(getObjValue('act_fun'));getObject('act_fun').value="null";}else{getObject(div_id).innerHTML="……获取信息失败,请重新操作……";getObject(div_id).innerHTML='获取信息失败,请重新操作……'}}};xhr.send(null);}
function Close_common_div() {getObject("common_divs").style.display="none";getObject("common_divs_content").innerHTML='';getObject("ttmask").style.display="none"}
function Show_common_div_small(n,t) {getObject("common_divs_small_title").innerHTML="&nbsp;&nbsp;"+t+"&nbsp;&nbsp;";getObject("common_divs_small").style.display="";box_min('common_divs_small',"480","416");getList_info_text(n+"r="+Math.random(),"common_divs_small_content");}
function Close_common_div_small() {getObject("common_divs_small").style.display="none";getObject("common_divs_small_content").innerHTML='';getObject("ttmask_small").style.display="none"}
function showlogin(){getObject("showloginscss").style.display="";}
function Closelogin(){getObject("showloginscss").style.display="none";}
function user_login(a) {
showAlert(1,'正在验证您的身份信息,请您耐心等待……',null)
	var xhr=xHTTP();
	if(xhr){
		xhr.open("POST", "../../../../common_save_date_nologin.asp", true);
		xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
		xhr.onreadystatechange=function(){
			if(xhr.readyState==4){
				if(xhr.status==200){
					if(xhr.responseText==1){
popclose();close_login();eval(getObjValue('temp_funs'))}
else{showAlert(3,xhr.responseText,null)}
					
					
				}else{
						showAlert(3,'网络传输错误,请重试……',null)	
				}
			}	
		};
    	xhr.send("act=user_login&psd="+ecode(getObjValue('psd_user'))+"&name="+ecode(getObjValue('name_user')));
  	}
}
function use_card_fun(funs){send_data('act=use_card_'+funs);}
function online(fun_name){
	var xhr=xHTTP();
	xhr.open("GET","../../../common_save_date_nologin.asp?act=check_login&r="+Math.random(), true);
	xhr.onreadystatechange=function(){
		if(xhr.readyState==4){
		
			if(xhr.status==200){
if(xhr.responseText=='yes')eval(fun_name)
			else{show_login(fun_name);}
			}else{
				  showAlert(3,'获取信息失败,请重新操作……')
			}
		}
		
	}
	xhr.send(null);
}
function show_login(funs)
{
getObject('common_login').style.display="";
box_min('common_login','482','300')
getObject("temp_funs").value=funs
}
function close_login(){getObject('common_login').style.display="none";getObject("ttmask").style.display="none";getObject("ttmask_small").style.display="none"}

function ecode(str){str=(str == null ? "":encodeURIComponent(str));str=(str == null ? "":encodeURIComponent(str));return str;}
function good_send_to(){send_data('act=good_send&uid_to='+ecode(getObjValue('uid_to'))+'&good_num='+ecode(getObjValue('good_num'))+'&good_id='+ecode(getObjValue('good_id')))}
function ttmask(m) 
{
     getObject(m).style.display = "";
    _scrollWidth = Math.max(document.body.scrollWidth,document.documentElement.scrollWidth);
    _scrollHeight = Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);
 getObject(m).style.height = _scrollHeight + "px";
    

}
function Show_pd_div(class_id,t) {getObject("common_pd_title").innerHTML="&nbsp;&nbsp;"+t+"&nbsp;&nbsp;";getObject("common_pd").style.display="";box_min('common_pd',"486","421");
var class_pd = new SWFObject('../../../common_video_tt.swf','player_pd_id','420','356','9','#FFFFFF');
class_pd.addParam('allowfullscreen','true');
class_pd.addVariable('file','../../../tt_file/class_gymnastics/'+class_id+'.flv');
class_pd.addVariable('backcolor','0xffffff');
class_pd.write('common_pd_content');
ttmask('ttmask_class');
}
function Close_pd_div() {getObject("common_pd").style.display="none";getObject("common_pd_content").innerHTML='';getObject("ttmask_class").style.display="none"}
//鼠标经过提示栏
function showToolTip(msg){
   getObject("toolTip").innerHTML = "<TABLE WIDTH='240' BORDER='5' CELLSPACING='0' CELLPADDING='5' BORDERCOLOR='#FFFFFF'><TR><TD BORDERCOLOR='#000000' BGCOLOR='#FFFF00' style='line-height:20px'>"+msg+"</TD></TR></TABLE>";
   getObject("toolTip").style.top = parseInt(event.clientY+document.body.scrollTop)+10 + "px";
   getObject("toolTip").style.left = parseInt(event.clientX)+10 + "px";
   getObject("toolTip").style.display = "";
   
}

function hideToolTip(){getObject("toolTip").innerHTML ="";getObject("toolTip").style.display = "none";}
function del_message_you(id){send_data('act=del_message_you&message_id='+id);Close_common_div_small();}
function del_message_me(id){send_data('act=del_message_me&message_id='+id);Close_common_div_small();}
function del_guestbook(id){send_data('act=del_guestbook&id='+id)}
function begin_user(){box_min('begindiv','410','310');getObject("begindiv").style.display="";}
function scroll(n)
{temp=n;
getObject("story_emo_content_view").scrollTop=getObject("story_emo_content_view").scrollTop+temp;
if (temp==0) return;
setTimeout("scroll(temp)",80);
}

function g_m(m){
if(m=='')
{showAlert(3,'你尚未选择任何歌曲……')}
else
{
box_min('show_music','340','400');getObject('show_music').style.display='';getObject("mmList").innerHTML='<br><br>……正在读取播放列表，请稍后……';var xhr=xHTTP();xhr.open("GET",'../../../music_list.asp?t='+m+'&r='+Math.random(), true);xhr.onreadystatechange=function(){if(xhr.readyState==4){if(xhr.status==200){popclose();wmpStop();objMmInfo=null;eval(xhr.responseText);initttplayer();dspList();}else{getObject("mmList").innerHTML="……获取音乐列表失败,请重新操作……";getObject("mmList").innerHTML='……获取音乐列表失败,请重新操作……'}}};xhr.send(null);
}
}
function a_m(m){
if(m=='')
{showAlert(3,'你尚未选择任何歌曲……')}
else
{
box_min('show_music','340','400');getObject('show_music').style.display='';getObject("mmList").innerHTML='<br><br>……正在读取播放列表，请稍后……';var xhr=xHTTP();xhr.open("GET",'../../../music_list.asp?t='+m+'&r='+Math.random(), true);xhr.onreadystatechange=function(){if(xhr.readyState==4){if(xhr.status==200){popclose();eval(xhr.responseText);initttplayer();dspList();}else{getObject("mmList").innerHTML="……获取音乐列表失败,请重新操作……";getObject("mmList").innerHTML='……获取音乐列表失败,请重新操作……'}}};xhr.send(null);
}
}
