function $F(str){return document.getElementById(str);};function _(str){return document.getElementsByTagName(str);};function msg(boxtitle,boxtype,boxwidth,msg,url){var box=$F("msg_div_main");box.style.width=boxwidth;box.style.top="50%";box.style.left=document.body.scrollLeft+(document.body.clientWidth-parseInt(box.style.width))/2+"px";$F("msg_div_all").style.height=_("body")[0].offsetHeight+"px";var msg_div_main_but_tmp="<br /><br />"+"<button class='msg_div_main_but' id='msg_div_main_but' "+"onclick=\"msg_close_tmp_biyuan();"+url+"\">确 定</button>";switch(boxtype*1){case 1:$F("msg_div_main_content").innerHTML=msg+msg_div_main_but_tmp;break;case 2:$F("msg_div_main_content").innerHTML=msg+msg_div_main_but_tmp+"&nbsp;&nbsp;<button class='msg_div_main_but' "+"onclick='msg_close_tmp_biyuan();'>取 消</button>";break;case 3:$F("msg_div_main_content").innerHTML=msg;break;defualt:$F("msg_div_main_content").innerHTML=msg;break;};$F("msg_div_main_title").innerHTML=boxtitle;$F("msg_div_all").style.zIndex=100;box.style.zIndex=200;$F("msg_div_all").style.display="";box.style.display="";$F("msg_div_all").oncontextmenu=function(){return false;};box.oncontextmenu=function(){return false;};};function msg_close_tmp_biyuan(){$F('msg_div_all').style.display='none';$F('msg_div_main').style.display='none';};var msg_md=false,msg_mobj,msg_ox,msg_oy;function onMouseDown(evt){if(evt==null)evt=window.event;var obj=evt.srcElement?evt.srcElement:evt.target;if(typeof(obj.msg_canmove)=="undefined"){return;};if(obj.msg_canmove){msg_md=true;msg_mobj=$F(obj.msg_forid);msg_ox=msg_mobj.offsetLeft-evt.x;msg_oy=msg_mobj.offsetTop-evt.y;};};function onMouseUp(){msg_md=false;};function onMouseMove(evt){if(evt==null)evt=window.event;if(msg_md){msg_mobj.style.left=evt.x+msg_ox+"px";msg_mobj.style.top=evt.y+msg_oy+"px";};};document.onmousedown=onMouseDown;document.onmouseup=onMouseUp;document.onmousemove=onMouseMove;document.writeln("<div id='msg_div_all' style='display:none;'></div>"+"<div id='msg_div_main' style='display:none;'>"+"<table width='100%' height='29' border='0' cellspacing='0' cellpadding='0'>"+"<tr>"+"<td width='25'><img src='/images/msg_img/bg_01.gif' width='25' height='29' alt='' /></td><td background='/images/msg_img/bg_02.gif' width='3'></td>"+"<td background='/images/msg_img/bg_02.gif' msg_canmove='true' msg_forid='msg_div_main' id='msg_div_main_title'></td>"+"<td background='/images/msg_img/bg_02.gif' align='right' style='padding-top:4px'>"+"<img class='curHand' src='/images/msg_img/bg_05.gif' width='21' height='21' alt='关闭' "+"onMouseover=\"this.src='/images/msg_img/bg_13.gif'\" "+"onMouseout=\"this.src='/images/msg_img/bg_05.gif'\" onMouseup='msg_close_tmp_biyuan();' "+"onMousedown=\"this.src='/images/msg_img/bg_18.gif'\"></td>"+"<td width='6'><img src='/images/msg_img/bg_06.gif' width='6' height='29' alt='' /></td>"+"</tr>"+"</table>"+"<table width='100%' border='0' cellspacing='0' cellpadding='0'>"+"<tr>"+"<td width='3' background='/images/msg_img/bg_07.gif'></td>"+"<td bgcolor='#F7F7F7' align='center'><br /><span id='msg_div_main_content'></span><br /><br /></td>"+"<td width='3' background='/images/msg_img/bg_08.gif'></td>"+"</tr>"+"<tr>"+"<td width='3' height='3'><img src='/images/msg_img/bg_09.gif' width='3' height='3' alt='' /></td>"+"<td background='/images/msg_img/bg_11.gif'></td>"+"<td width='3' height='3'><img src='/images/msg_img/bg_10.gif' width='3' height='3' /></td>"+"</tr>"+"</table>"+"</div>");