document.writeln("<!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.01 Transitional\/\/EN\">");
document.writeln("<html>");
document.writeln("	<head>");
document.writeln("		<meta http-equiv=\"content-type\" content=\"text\/html; charset=utf-8\">");
document.writeln("		<style type=\"text/css\">");
document.writeln("			body{background-color: transparent;}");
document.writeln("			.common_color{color:#000000;}");
document.writeln("		</style>");
document.writeln("		<!--[if IE 6]>");
document.writeln("			<script type=\"text\/javascript\" src=\"http:\/\/" + parent.hostPath + "\/umservice\/dd_belatedpng.js\" ><\/script>");
document.writeln("		<![endif]-->");
document.writeln("		<title>联信UM - 修改在线状态<\/title>");
document.writeln("		<script src=\"http:\/\/" + parent.hostPath + "\/umservice\/shared.js\" charset=\"utf-8\"><\/script>");
document.writeln("		<script src=\"http:\/\/" + parent.hostPath + "\/umservice\/switchStyle.js\" charset=\"utf-8\"><\/script>");
document.writeln("		<script>");
document.writeln("		    <!--");
document.writeln("				var jid;");
document.writeln("				var srcW; \/\/ the source window with necessary data");
document.writeln("				");
document.writeln("				function doSubmit() {");
document.writeln("				  var newstat, away;");
document.writeln("				  ");
document.writeln("				  for (var el=0;el<document.statF.status.length;el++) {");
document.writeln("				    if (document.statF.status[el].checked) {");
document.writeln("				      newstat = document.statF.status[el].value;");
document.writeln("				      break;");
document.writeln("				    }");
document.writeln("				  }");
document.writeln("				");
document.writeln("				  if (document.statF.msg.value && document.statF.msg.value != \'\')");
document.writeln("				    away = document.statF.msg.value;");
document.writeln("				  else");
document.writeln("				    away = srcW.onlstatus[newstat];");
document.writeln("				");
document.writeln("					if (typeof(jid) != \'undefined\' && jid != \'\')");
document.writeln("						srcW.sendCustomPresence(jid,newstat,away);");
document.writeln("					else");
document.writeln("						srcW.changeStatus(newstat,away);");
document.writeln("				  srcW.windowMinimize(\'openStatus\');");
document.writeln("				  return false;");
document.writeln("				}");
document.writeln("				");
document.writeln("				var jid;");
document.writeln("				function init() {");
document.writeln("				if(typeof(DD_belatedPNG) != \'undefined\'){DD_belatedPNG.fix(\'span\');}");
document.writeln("					srcW=top;");
document.writeln("					getArgs();");
document.writeln("					jid = passedArgs[\'jid\'];");
document.writeln("					var presence = (typeof(jid)!=\'undefined\')?top.roster.getUserByJID(jid).status:top.onlstat;");
document.writeln("				  for (var el=0;el<document.statF.status.length;el++) {");
document.writeln("				    if (document.statF.status[el].value == presence) {");
document.writeln("				      document.statF.status[el].checked = true;");
document.writeln("				      break;");
document.writeln("				    }");
document.writeln("				  }");
document.writeln("				  if (typeof(top.pass)==\'undefined\')");
document.writeln("				    document.getElementById(\'offline\').style.display = \'none\';");
document.writeln("				");
document.writeln("				}");
document.writeln("				function keyPressed(e) {");
document.writeln("				  if (e.ctrlKey && e.keyCode == 13)");
document.writeln("				    doSubmit();");
document.writeln("				  else if (e.keyCode == 27)");
document.writeln("					  srcW.windowMinimize(\'openStatus\');");
document.writeln("				}");
document.writeln("				onload = init;");
document.writeln("		    \/\/-->");
document.writeln("		  <\/script>");
document.writeln("	<\/head>");
document.writeln("	<body onkeydown=\"keyPressed(event);\">");
document.writeln("		<form name=\"statF\" style=\"margin:0px;\" >");
document.writeln("			<table width=\"100%\" height=\"100%\" border=0 cellpadding=0 cellspacing=0>");
document.writeln("				<tr><td height=\"100%\" class=\"menuWindowColor\">");
document.writeln("					<table width=\"100%\" height=\"100%\" border=0 cellpadding=0");
document.writeln("						cellspacing=0>");
document.writeln("						<tr>");
document.writeln("							<td>");
document.writeln("								<input type=radio name=\"status\" value=\"available\" id=\"available\">");
document.writeln("								<label for=\"available\">");
document.writeln("									<img src=\"http:\/\/" + parent.hostPath + "\/umservice\/images\/available.png\">");
document.writeln("									在线");
document.writeln("								<\/label>");
document.writeln("							<\/td>");
document.writeln("							<td>");
document.writeln("								<input type=radio name=\"status\" value=\"xa\" id=\"xa\">");
document.writeln("								<label for=\"xa\">");
document.writeln("									<img src=\"http:\/\/" + parent.hostPath + "\/umservice\/images\/xa.png\">");
document.writeln("									不可用");
document.writeln("								<\/label>");
document.writeln("							<\/td>");
document.writeln("						<\/tr>");
document.writeln("						<tr>");
document.writeln("							<td>");
document.writeln("								<input type=radio name=\"status\" value=\"chat\" id=\"chaty\">");
document.writeln("								<label for=\"chaty\">");
document.writeln("									<img src=\"http:\/\/" + parent.hostPath + "\/umservice\/images\/chat.png\">");
document.writeln("									欢迎聊天");
document.writeln("								<\/label>");
document.writeln("							<\/td>");
document.writeln("							<td>");
document.writeln("								<input type=radio name=\"status\" value=\"dnd\" id=\"dnd\">");
document.writeln("								<label for=\"dnd\">");
document.writeln("									<img src=\"http:\/\/" + parent.hostPath + "\/umservice\/images\/dnd.png\">");
document.writeln("									忙碌");
document.writeln("								<\/label>");
document.writeln("							<\/td>");
document.writeln("						<\/tr>");
document.writeln("						<tr>");
document.writeln("							<td colspan=\"2\">");
document.writeln("								<input type=radio name=\"status\" value=\"away\" id=\"away\">");
document.writeln("								<label for=\"away\">");
document.writeln("									<img src=\"http:\/\/" + parent.hostPath + "\/umservice\/images\/away.png\">");
document.writeln("									离开");
document.writeln("								<\/label>");
document.writeln("							<\/td>");
document.writeln("							<!--<td>");
document.writeln("								<input type=radio name=\"status\" value=\"unavailable\"");
document.writeln("									id=\"unavailable\">");
document.writeln("								<label for=\"unavailable\">");
document.writeln("									<img src=\"http:\/\/" + parent.hostPath + "\/umservice\/images\/invisible.png\">");
document.writeln("									隐身");
document.writeln("								<\/label>");
document.writeln("							<\/td>-->");
document.writeln("						<\/tr>");
document.writeln("						<tr id=\"offline\">");
document.writeln("							<td>");
document.writeln("								&nbsp;");
document.writeln("							<\/td>");
document.writeln("							<td>");
document.writeln("								<!--<input type=radio name=\"status\" value=\"offline\" id=\"offl\">");
document.writeln("								<label for=\"offl\">");
document.writeln("									<img src=\"http:\/\/" + parent.hostPath + "\/umservice\/images\/unavailable.png\">");
document.writeln("									离线");
document.writeln("								<\/label>-->&nbsp;");
document.writeln("							<\/td>");
document.writeln("						<\/tr>");
document.writeln("						<tr style=\"display:none;\">");
document.writeln("							<td colspan=2>");
document.writeln("								<b>状态提示语:<\/b>");
document.writeln("							<\/td>");
document.writeln("						<\/tr>");
document.writeln("						<tr>");
document.writeln("							<td colspan=2 height=\"100%\">&nbsp;");
document.writeln("								<textarea style=\"display:none;\" id=\"msg\" wrap=\"physical\" class=\"msgBox\"><\/textarea>");
document.writeln("							<\/td>");
document.writeln("						<\/tr>");
document.writeln("					<\/table>");
document.writeln("				<\/td><\/tr>");
document.writeln("				<tr><td align=\"right\" id=\"buttonbox\" style=\"padding-top:4px;\">");
document.writeln("					<span style=\"background-image:url(http://" + parent.hostPath + "/umservice/images/btn_chat.png);margin-right:4px;\"");
document.writeln("						onmouseover=\"this.style.backgroundImage=\'url(http://" + parent.hostPath + "/umservice/images/btn_chat_over.png)\';\"");
document.writeln("						onmouseout=\"this.style.backgroundImage=\'url(http://" + parent.hostPath + "/umservice/images/btn_chat.png)\';\" class=\"wrap_span\" onClick=\"return doSubmit();\"><div class=\"wrap_btn common_color\">设置<\/div></span>");
document.writeln("					<span style=\"background-image:url(http://" + parent.hostPath + "/umservice/images/btn_chat.png);\"");
document.writeln("						onmouseover=\"this.style.backgroundImage=\'url(http://" + parent.hostPath + "/umservice/images/btn_chat_over.png)\';\"");
document.writeln("						onmouseout=\"this.style.backgroundImage=\'url(http://" + parent.hostPath + "/umservice/images/btn_chat.png)\';\" class=\"wrap_span\" onClick=\"srcW.windowMinimize(\'openStatus\');return false;\"><div class=\"wrap_btn common_color\">取消<\/div></span>");
document.writeln("				<\/td><\/tr>");
document.writeln("			<\/table>");
document.writeln("		<\/form>");
document.writeln("	<\/body>");
document.writeln("<\/html>");
document.writeln("");