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=gbk\">");
document.writeln("    <title>联信UM - 个人信息 - <\/title>");
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_gbk\/dd_belatedpng.js\" ><\/script>");
document.writeln("		<![endif]-->");
document.writeln("    <script src=\"http:\/\/" + parent.hostPath + "\/umservice_gbk\/shared.js\" charset=\"gbk\"><\/script>");
document.writeln("    <script src=\"http:\/\/" + parent.hostPath + "\/umservice_gbk\/switchStyle.js\" charset=\"gbk\"><\/script>");
document.writeln("    <script src=\"http:\/\/" + parent.hostPath + "\/umservice_gbk\/jsjac.js\" charset=\"gbk\"><\/script>");
document.writeln("    <script src=\"http:\/\/" + parent.hostPath + "\/umservice_gbk\/datescript.js\" charset=\"gbk\"><\/script>");
document.writeln("    <script>");
document.writeln("      <!--");
document.writeln("var vcard;");
document.writeln("var srcW; \/\/ the source window with necessary data");
document.writeln("var temp=new Object();");
document.writeln("");
document.writeln("function sendSub() {");
document.writeln("	var iq = new JSJaCIQ();");
document.writeln("	iq.setType(\'set\');");
document.writeln("	try{");
document.writeln("		var vCard = iq.getNode().appendChild(iq.getDoc().createElementNS(\'vcard-temp\',\'vCard\'));");
document.writeln("	}catch(e){");
document.writeln("		var vCard = iq.getNode().appendChild(iq.getDoc().createElement(\'vCard\'));");
document.writeln("		vCard.setAttribute(\'xmlns\',\'vcard-temp\');");
document.writeln("	}");
document.writeln("	for (var i=0; i<document.forms[0].elements.length; i++) {");
document.writeln("		var item = document.forms[0].elements[i];");
document.writeln("		if (item.id == \'\') continue;");
document.writeln("		if (item.value == \'\' ) continue;");
document.writeln("		if (item.id.indexOf(\'.\') != -1) {");
document.writeln("			var tagname = item.id.substring(0,item.id.indexOf(\'.\'));");
document.writeln("			var aNode;");
document.writeln("			if (vCard.getElementsByTagName(tagname).length > 0)");
document.writeln("				aNode = vCard.getElementsByTagName(tagname).item(0);");
document.writeln("			else");
document.writeln("				aNode = vCard.appendChild(iq.getDoc().createElement(tagname));");
document.writeln("			aNode.appendChild(iq.getDoc().createElement(item.id.substring(item.id.indexOf(\'.\')+1))).appendChild(iq.getDoc().createTextNode(item.value));");
document.writeln("		} else {");
document.writeln("			vCard.appendChild(iq.getDoc().createElement(item.id)).appendChild(iq.getDoc().createTextNode(item.value));");
document.writeln("		}");
document.writeln("	}");
document.writeln("	for(var n in temp){");
document.writeln("		var item=temp[n];");
document.writeln("		if(typeof item==\"function\"){");
document.writeln("	    	continue;");
document.writeln("	    }");
document.writeln("		if (n.indexOf(\'.\') != -1) {");
document.writeln("			var tagname = n.substring(0,n.indexOf(\'.\'));");
document.writeln("			var aNode;");
document.writeln("			if (vCard.getElementsByTagName(tagname).length > 0)");
document.writeln("				aNode = vCard.getElementsByTagName(tagname).item(0);");
document.writeln("			else");
document.writeln("				aNode = vCard.appendChild(iq.getDoc().createElement(tagname));");
document.writeln("			aNode.appendChild(iq.getDoc().createElement(n.substring(n.indexOf(\'.\')+1))).appendChild(iq.getDoc().createTextNode(item));");
document.writeln("		} else {");
document.writeln("			vCard.appendChild(iq.getDoc().createElement(n)).appendChild(iq.getDoc().createTextNode(item));");
document.writeln("		}");
document.writeln("	}");
document.writeln("	srcW.Debug.log(iq.getDoc().xml,3);");
document.writeln("	srcW.con.send(iq);");
document.writeln("	srcW.windowClose(\'openInfo\');");
document.writeln("}");
document.writeln("");
document.writeln("function init() {");
document.writeln("	if(typeof(DD_belatedPNG) != \'undefined\'){DD_belatedPNG.fix(\'span\');}");
document.writeln("  srcW = parent;");
document.writeln("  ");
document.writeln("  document.title += jid;");
document.writeln("  ");
document.writeln("  if (cutResource(jid) != srcW.cutResource(srcW.jid)){");
document.writeln("		document.getElementById(\"savebox\").style.display = \'none\';");
document.writeln("		for (var i=0; i<document.forms[0].elements.length; i++) {");
document.writeln("			var item = document.forms[0].elements[i];");
document.writeln("			if(typeof item.id == \'undefined\' || item.id == \'\'){continue;}");
document.writeln("			if(item.nodeName.toLowerCase() == \'button\'){continue;}");
document.writeln("			item.value = \'\'");
document.writeln("      	item.readOnly = true;");
document.writeln("		}");
document.writeln("  }else{");
document.writeln("		for (var i=0; i<document.forms[0].elements.length; i++) {");
document.writeln("			var item = document.forms[0].elements[i];");
document.writeln("			if(typeof item.id == \'undefined\' || item.id == \'\'){continue;}");
document.writeln("			if(item.nodeName.toLowerCase() == \'button\'){continue;}");
document.writeln("			item.value = \'\'");
document.writeln("		}");
document.writeln("      document.getElementById(\"BDAY\").style.background=\"url(http:\/\/" + parent.hostPath + "\/umservice_gbk\/images\/design2009\/main\/arrow_down.gif) no-repeat scroll top right #ffffff\";");
document.writeln("      document.getElementById(\"BDAY\").style.cursor=\"pointer\";");
document.writeln("      document.getElementById(\"BDAY\").onclick=function(){");
document.writeln("      	showCalendar(\'BDAY\',\'y-mm-dd\')");
document.writeln("      }");
document.writeln("  }");
document.writeln("  \/\/ request vcard");
document.writeln("  var iq = new JSJaCIQ();");
document.writeln("  iq.setType(\'get\');");
document.writeln("  iq.setTo(jid);");
document.writeln("	try{");
document.writeln("		var vCard = iq.getNode().appendChild(iq.getDoc().createElementNS(\'vcard-temp\',\'vCard\'));");
document.writeln("	}catch(e){");
document.writeln("		var vCard = iq.getNode().appendChild(iq.getDoc().createElement(\'vCard\'));");
document.writeln("		vCard.setAttribute(\'xmlns\',\'vcard-temp\');");
document.writeln("	}");
document.writeln("  me = this;");
document.writeln("  srcW.con.send(iq,me.handleVCard);");
document.writeln("}");
document.writeln("");
document.writeln("function handleVCard(iq) {");
document.writeln("	if (!iq) {");
document.writeln("		srcW.Debug.log(\'got empty iq result\',1);");
document.writeln("		return;");
document.writeln("	}");
document.writeln("	srcW.Debug.log(iq.getDoc().xml,3);");
document.writeln("	if (iq.getNode().getElementsByTagName(\'vCard\').item(0)) {");
document.writeln("		for (var i=0; i<iq.getNode().getElementsByTagName(\'vCard\').item(0).childNodes.length; i++) {");
document.writeln("			var token = iq.getNode().getElementsByTagName(\'vCard\').item(0).childNodes.item(i);");
document.writeln("			tokenname = token.nodeName;");
document.writeln("			if (token.firstChild && token.firstChild.nodeType != 3) { \/\/ found a container");
document.writeln("				for (var j=0; j<token.childNodes.length; j++) {");
document.writeln("					if (typeof(document.forms[0].elements[tokenname+\".\"+token.childNodes.item(j).nodeName]) != \'undefined\' && token.childNodes.item(j).firstChild){");
document.writeln("						document.forms[0].elements[tokenname+\".\"+token.childNodes.item(j).nodeName].value = token.childNodes.item(j).firstChild.nodeValue;");
document.writeln("					}else if(token.childNodes.item(j).firstChild){");
document.writeln("						temp[tokenname+\".\"+token.childNodes.item(j).nodeName]=token.childNodes.item(j).firstChild.nodeValue;");
document.writeln("					}");
document.writeln("				}");
document.writeln("	");
document.writeln("      		} else{");
document.writeln("				if (typeof(document.forms[0].elements[tokenname]) != \'undefined\' && token.firstChild){");
document.writeln("					document.forms[0].elements[tokenname].value = token.firstChild.nodeValue;");
document.writeln("				}else if(token.firstChild){");
document.writeln("					temp[tokenname]=token.firstChild.nodeValue;");
document.writeln("				}");
document.writeln("			}");
document.writeln("		}");
document.writeln("	}");
document.writeln("  document.forms[0].elements[\"N.FAMILY\"].value += document.forms[0].elements[\"N.GIVEN\"].value");
document.writeln("  document.forms[0].elements[\"N.GIVEN\"].value = \"\"");
document.writeln("}");
document.writeln("");
document.writeln("function keyPressed(e) {");
document.writeln("  if (e.keyCode == 27)");
document.writeln("    srcW.windowClose(\'openInfo\');");
document.writeln("}");
document.writeln("onkeydown = keyPressed;");
document.writeln("onload = init;");
document.writeln("\/\/-->");
document.writeln("<\/script>");
document.writeln("<script for=\"document\" event=\"onkeydown()\" language=\"JScript\">");
document.writeln("<!--");
document.writeln(" if (window.event.keyCode == 27)");
document.writeln("  srcW.windowClose(\'openInfo\');");
document.writeln("\/\/-->");
document.writeln("<\/script>");
document.writeln("<style type=\"text\/css\">");
document.writeln("\/*<![CDATA[*\/");
document.writeln(" th { ");
document.writeln("  font-family: sans-serif;");
document.writeln("  font-size: 12px;");
document.writeln("    text-align: right;");
document.writeln("}");
document.writeln("\/*]]>*\/");
document.writeln("<\/style>");
document.writeln("<\/head>");
document.writeln("<body>");
document.writeln("	<form style=\"margin:0px;\">");
document.writeln("		<table width=\"100%\" height=\"100%\" border=0 cellpadding=0 cellspacing=0>");
document.writeln("			<tr height=\"100%\"><td class=\"menuWindowColor\">");
document.writeln("				<table width=\"100%\" height=\"100%\" border=0 cellpadding=0 cellspacing=5 style=\"padding:0 5px\">");
document.writeln("					<tr>");
document.writeln("						<th nowrap>");
document.writeln("							姓名:");
document.writeln("						<\/th>");
document.writeln("						<td width=\"50%\">");
document.writeln("							<input type=text id=\"N.FAMILY\" class=\"vcardBoxEditable\">");
document.writeln("							<input type=text id=\"N.GIVEN\" class=\"vcardBoxEditable\" style=\"display:none;\">");
document.writeln("						<\/td>");
document.writeln("						<th nowrap>");
document.writeln("							称呼:");
document.writeln("						<\/th>");
document.writeln("						<td width=\"50%\">");
document.writeln("							<input type=text id=\"NICKNAME\" class=\"vcardBoxEditable\">");
document.writeln("						<\/td>");
document.writeln("					<\/tr>");
document.writeln("					<tr>");
document.writeln("						<th nowrap>");
document.writeln("							职位:");
document.writeln("						<\/th>");
document.writeln("						<td>");
document.writeln("							<input type=text id=\"TITLE\" class=\"vcardBoxEditable\">");
document.writeln("						<\/td>");
document.writeln("						<th nowrap>");
document.writeln("							部门:");
document.writeln("						<\/th>");
document.writeln("						<td>");
document.writeln("							<input type=text id=\"ORG.ORGUNIT\" class=\"vcardBoxEditable\">");
document.writeln("						<\/td>");
document.writeln("					<\/tr>");
document.writeln("					<tr>");
document.writeln("						<th nowrap>");
document.writeln("							单位:");
document.writeln("						<\/th>");
document.writeln("						<td colspan=\"3\">");
document.writeln("							<input type=text id=\"ORG.ORGNAME\" class=\"vcardBoxEditable\">");
document.writeln("						<\/td>");
document.writeln("					<\/tr>");
document.writeln("						<th nowrap>");
document.writeln("							地址:");
document.writeln("						<\/th>");
document.writeln("						<td>");
document.writeln("							<input type=text id=\"Street_Add\" class=\"vcardBoxEditable\">");
document.writeln("						<\/td>");
document.writeln("						<th nowrap>");
document.writeln("							邮编:");
document.writeln("						<\/th>");
document.writeln("						<td>");
document.writeln("							<input type=text id=\"Zip_Add\" class=\"vcardBoxEditable\">");
document.writeln("						<\/td>");
document.writeln("					<\/tr>");
document.writeln("					<tr>");
document.writeln("						<th nowrap>");
document.writeln("							电话:");
document.writeln("						<\/th>");
document.writeln("						<td>");
document.writeln("							<input type=text id=\"Voice_Add\" class=\"vcardBoxEditable\">");
document.writeln("						<\/td>");
document.writeln("						<th nowrap>");
document.writeln("							传真:");
document.writeln("						<\/th>");
document.writeln("						<td>");
document.writeln("							<input type=text id=\"Fax_Add\" class=\"vcardBoxEditable\">");
document.writeln("						<\/td>");
document.writeln("					<\/tr>");
document.writeln("					<tr>");
document.writeln("						<th nowrap>");
document.writeln("							手机:");
document.writeln("						<\/th>");
document.writeln("						<td>");
document.writeln("							<input type=text id=\"Mobile_Add\" class=\"vcardBoxEditable\">");
document.writeln("						<\/td>");
document.writeln("						<th nowrap>");
document.writeln("							邮箱:");
document.writeln("						<\/th>");
document.writeln("						<td>");
document.writeln("							<input type=text id=\"EMAIL\" class=\"vcardBoxEditable\">");
document.writeln("						<\/td>");
document.writeln("					<\/tr>");
document.writeln("					<tr>");
document.writeln("						<th nowrap>");
document.writeln("							网址:");
document.writeln("						<\/th>");
document.writeln("						<td colspan=\"3\">");
document.writeln("							<input type=text id=\"URL\" class=\"vcardBoxEditable\">");
document.writeln("						<\/td>");
document.writeln("					<\/tr>");
document.writeln("					<tr>");
document.writeln("						<th nowrap>");
document.writeln("							毕业院校:");
document.writeln("						<\/th>");
document.writeln("						<td>");
document.writeln("							<input type=text id=\"College_Add\" class=\"vcardBoxEditable\">");
document.writeln("						<\/td>");
document.writeln("						<th nowrap>");
document.writeln("							学历:");
document.writeln("						<\/th>");
document.writeln("						<td>");
document.writeln("							<input type=text id=\"Education_Add\" class=\"vcardBoxEditable\">");
document.writeln("						<\/td>");
document.writeln("					<\/tr>");
document.writeln("					<tr>");
document.writeln("						<th nowrap>");
document.writeln("							生日:");
document.writeln("						<\/th>");
document.writeln("						<td>");
document.writeln("							<input type=text id=\"BDAY\" class=\"vcardBoxEditable\">");
document.writeln("						<\/td>");
document.writeln("						<th nowrap>");
document.writeln("							民族:");
document.writeln("						<\/th>");
document.writeln("						<td>");
document.writeln("							<input type=text id=\"National_Add\" class=\"vcardBoxEditable\">");
document.writeln("						<\/td>");
document.writeln("					<\/tr>");
document.writeln("					<tr>");
document.writeln("						<th nowrap>");
document.writeln("							经营目标:");
document.writeln("						<\/th>");
document.writeln("						<td>");
document.writeln("							<select id=\"Business_Type_Add\" class=\"vcardBoxEditable\">");
document.writeln("								<option value=\"采购\">");
document.writeln("									采购");
document.writeln("								<\/option>");
document.writeln("								<option value=\"销售\">");
document.writeln("									销售");
document.writeln("								<\/option>");
document.writeln("								<option value=\"两者皆是\">");
document.writeln("									两者皆是");
document.writeln("								<\/option>");
document.writeln("							<\/select>");
document.writeln("						<\/td>");
document.writeln("						<th nowrap>");
document.writeln("							性别:");
document.writeln("						<\/th>");
document.writeln("						<td>");
document.writeln("							<select id=\"Sex_Add\" class=\"vcardBoxEditable\">");
document.writeln("								<option value=\"男\">");
document.writeln("									男");
document.writeln("								<\/option>");
document.writeln("								<option value=\"女\">");
document.writeln("									女");
document.writeln("								<\/option>");
document.writeln("								<option value=\"\">");
document.writeln("									-");
document.writeln("								<\/option>");
document.writeln("							<\/select>");
document.writeln("						<\/td>");
document.writeln("					<\/tr>");
document.writeln("					<tr>");
document.writeln("						<th>");
document.writeln("							<nobr>");
document.writeln("								描述:");
document.writeln("							<\/nobr>");
document.writeln("						<\/th>");
document.writeln("						<td colspan=3>");
document.writeln("							<textarea id=\"ORG.DESC\" class=\"vcardBoxEditable\"");
document.writeln("								style=\"width:100%;\" rows=4 wrap=virtual><\/textarea>");
document.writeln("						<\/td>");
document.writeln("					<\/tr>");
document.writeln("				<\/table>");
document.writeln("			<\/td><\/tr>");
document.writeln("			<tr><td align=\"right\" id=\"savebox\" style=\"padding-top:4px;\">");
document.writeln("				<span style=\"background-image:url(http://" + parent.hostPath + "/umservice_gbk/images/btn_chat.png);margin-right:4px;\"");
document.writeln("					onmouseover=\"this.style.backgroundImage=\'url(http://" + parent.hostPath + "/umservice_gbk/images/btn_chat_over.png)\';\"");
document.writeln("					onmouseout=\"this.style.backgroundImage=\'url(http://" + parent.hostPath + "/umservice_gbk/images/btn_chat.png)\';\" class=\"wrap_span\"  onClick=\"return sendSub();\"><div class=\"wrap_btn common_color\">设置<\/div></span>");
document.writeln("				<span style=\"background-image:url(http://" + parent.hostPath + "/umservice_gbk/images/btn_chat.png);\"");
document.writeln("					onmouseover=\"this.style.backgroundImage=\'url(http://" + parent.hostPath + "/umservice_gbk/images/btn_chat_over.png)\';\"");
document.writeln("					onmouseout=\"this.style.backgroundImage=\'url(http://" + parent.hostPath + "/umservice_gbk/images/btn_chat.png)\';\" class=\"wrap_span\" onClick=\"srcW.windowClose(\'openInfo\');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("")