//////////////////////// effect func below ////////////////////////

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function UrlConv(url)
{
	//if(url.href.indexOf("backdoor.jsp")>0)
		//url="http://www.chinaren.com";
	url = url + "";
	var m_url = url;
	var outstring = "";
	var x1 = 0;
	for(x1 = 0 ; x1 < (m_url.length) ; x1++)
	{
		chr = m_url.substr(x1,1);
		if(chr=='&')
		{
			outstring += "%26";
			continue;
		}
		if(chr=='?')
		{
			outstring += "%3F";
			continue;
		}
		if(chr==':')
		{
			outstring += "%3A";
			continue;
		}
		outstring += chr;
	}
	return outstring;
}

function showerror(erricon,errmsg) {
        top.document.location = "http://alumni.chinaren.com/error.jsp?erricon=" + erricon + "&errmsg=" + errmsg + "&url=" + UrlConv(top.window.location);
}

function ChkLogin() {
	if(document.FM.username.value.length<3 || document.FM.username.value.length>32) {
		alert('请输入用户名');
		return false;
	}
	if(document.FM.password.value.length<2 || document.FM.password.value.length>32) {
		alert('请输入密码');
		return false;
	}
	if(document.FM.us[1].checked) {
		document.ts.cn.value=document.FM.username.value;
		document.ts.pw.value=document.FM.password.value;
		document.ts.submit();
		return false;
	}
	if (document.FM.us[2]) {
		if (document.FM.us[2].checked) {
			if(document.FM.username.value.length != 11 || document.FM.username.value<13000000000 || document.FM.username.value>13999999999) {
				alert("请输入正确的11位手机号码!");
				document.FM.username.focus();
				return false;           
			}       
			document.ts.cn.value=document.FM.username.value;
			document.ts.pw.value=document.FM.password.value;
			document.ts.action = "http://sms.sohu.com/sms_login_chinaren.php";
			document.ts.submit();
			return false;
		}
	}
	return true;
}

function ChkLoginUrs() {
	if(document.FM.uid.value.length<3 || document.FM.uid.value.length>32) {
		alert('请输入用户名');
		return false;
	}
	if(document.FM.pwd.value.length<2 || document.FM.pwd.value.length>32) {
		alert('请输入密码');
		return false;
	}
	return true;
}

function trim(str) {
	regExp1 = /^ */;
	regExp2 = / *$/;
	return str.replace(regExp1,'').replace(regExp2,'');
}


//////////////////////// emotion func below ////////////////////////

var emotion_shortcut = ":) #_# 8*) :D :-> :P B_) B_I ^_* :$ :| :( :.( :_( >:( :V *_* :^ :? :! =:| :% :O :X |-) :Z :9 :T :-* *_/ :#| :69 //shuang //qiang //ku //zan //heart //break //F //W //mail //strong //weak //share //phone //mobile //kiss //V //sun //moon //star (!) //TV //clock //gift //cash //coffee //rice //watermelon //tomato //pill //pig //football //shit";
var e_arr = emotion_shortcut.split(" ");

var Emotion_Num = e_arr.length;

var EmotionArray = new Array(Emotion_Num);

for (i=0; i<Emotion_Num; i++) {
	var idx = e_arr[i];
	EmotionArray[idx] = i;
}

var abs_path    =       "<img src=http://images.chinaren.com/product/alumni/htmledit/emotion3/";
var suffix      =       ".gif border=0>";

function getEmotion(idx) {
        document.write(abs_path + EmotionArray[idx] + suffix);
}

function doStr(src) {
	//src = src.replace(/script/i, "noscript");
	src = src.replace(/frame/ig, "noframe");
	src = src.replace(/(flash.tom.com)/ig, " $1");
	var quote = /(:\)|\#_\#|8\*\)|:->|:D|:P|B_\)|B_I|\^_\*|:\$|:\||:\(|:\.\(|:_\(|>:\(|:V|\*_\*|:\^|:\?|:\!|\=:\||:%|:O|:X|\|-\)|:Z|:9|:T|:-\*|\*_\/|:#\||:69|\/\/shuang|\/\/qiang|\/\/ku|\/\/zan|\/\/heart|\/\/break|\/\/F|\/\/W|\/\/mail|\/\/strong|\/\/weak|\/\/share|\/\/phone|\/\/mobile|\/\/kiss|\/\/V|\/\/sun|\/\/moon|\/\/star|\(\!\)|\/\/TV|\/\/clock|\/\/gift|\/\/cash|\/\/coffee|\/\/rice|\/\/watermelon|\/\/tomato|\/\/pill|\/\/pig|\/\/football|\/\/shit)/g;
	var src = src.replace(quote, "<script" + ">getEmotion('$1')</" + "script>");
	document.write(src);
}

function doFlatTxt(src, classuuid) {
	src = src.replace(/script/ig, "noscript");
	src = src.replace(/(flash.tom.com)/ig, " $1");
	if (src.indexOf("求学网")!=-1 || src.toLowerCase().indexOf("qiuxue")!=-1) {
		document.write("校友录提示: 该条留言是广告, 已被系统过滤!");
	} else {
		if (src.indexOf("手机留言:")==0) {
                        src = src.replace("手机留言:", "<a href=javascript:sms_sub_1(1,1,\"" + classuuid + "\") class=cla2>手机留言:</a>");
                }
		var quote = /(:\)|\#_\#|8\*\)|:->|:D|:P|B_\)|B_I|\^_\*|:\$|:\||:\(|:\.\(|:_\(|>:\(|:V|\*_\*|:\^|:\?|:\!|\=:\||:%|:O|:X|\|-\)|:Z|:9|:T|:-\*|\*_\/|:#\||:69|\/\/shuang|\/\/qiang|\/\/ku|\/\/zan|\/\/heart|\/\/break|\/\/F|\/\/W|\/\/mail|\/\/strong|\/\/weak|\/\/share|\/\/phone|\/\/mobile|\/\/kiss|\/\/V|\/\/sun|\/\/moon|\/\/star|\(\!\)|\/\/TV|\/\/clock|\/\/gift|\/\/cash|\/\/coffee|\/\/rice|\/\/watermelon|\/\/tomato|\/\/pill|\/\/pig|\/\/football|\/\/shit)/g;
		var src = src.replace(quote, "<script" + ">getEmotion('$1')</" + "script>");
		document.write(src);
	}
}
//////////////////////// Image to Symbol ////////////////////////

var imgToSymbol = new Array(Emotion_Num);

for (var i in EmotionArray) {
	var idx = "<IMG src=\"http://images.chinaren.com/product/alumni/htmledit/emotion3/" + EmotionArray[i] + ".gif\" border=0>";
	imgToSymbol[idx] = i;
}

function imgToSym(src) {
        var quote = /<IMG src=\"http:\/\/images\.sohu\.com\/product\/alumni\/htmledit\/emotion3\/([0-9][0-9]?)\.gif\" border=0>/g;
        var src = src.replace(quote, function ($1) {return imgToSymbol[$1];});
        return src;
}

//////////////////////// show func below ////////////////////////

function showSohuHead() {
	document.write("<style type='text/css'>");
	document.write(".jz {color:#000000;line-height:16px;font-family:'Arial';padding-left:4px;padding-right:5px;color:#000000;font-size:12px;}");
	document.write(".jz a:link {font-size: 12px;color: #000000;text-decoration: none;}");
	document.write(".jz a:visited {font-size: 12px;color:#000000;text-decoration: none;}");
	document.write(".jz a:hover {font-size: 12px;color: #000000;text-decoration: underline;}");
	document.write(".jz_pp {line-height:15px;font-family:'Arial';padding-left:4px;padding-right:5px;color:#FF1F1F;font-size:12px;}");
	document.write(".jz_pp a:link {font-size: 12px;color: #FF1F1F;text-decoration: none;}");
	document.write(".jz_pp a:visited {font-size: 12px;color:#FF1F1F;text-decoration: none;}");
	document.write(".jz_pp a:hover {font-size: 12px;color: #FF1F1F;text-decoration: underline;}");
	document.write("</style>");
	document.write("<table width=760 border=0 cellpadding=0 cellspacing=0>");
	document.write("<tr bgcolor=#FFDF08>");
	document.write("<td width=37><a href=http://www.sohu.com><img src=http://images.sohu.com/uiue/sohu_logo/2005/juzhen_logo.gif width=35 height=22 border=0 alt='搜狐网站'></a></td>");
	document.write("<td>");
	document.write("<table border=0 cellpadding=0 cellspacing=1 bgcolor=#ffb200>");
	document.write("<tr>");
	document.write("<td align=center>");
	document.write("<table border=0 cellpadding=0 cellspacing=0>");
	document.write("<tr><td bgcolor=#ffffff width=1></td>");
	document.write("<td height=16 valign=bottom background=http://images.sohu.com/uiue/sohu_logo/2005/juzhen_bg.gif class=jz_pp><a href=http://alumni.sohu.com/>ChinaRen校友录</a></td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("</td></tr>");
	document.write("</table>");
	document.write("</td>");
	document.write("<td class=jz align=right><a href=http://www.sohu.com>搜狐</a><span style='padding-left:6px;'></span><a href=http://www.chinaren.com/>ChinaRen</a><span style='padding-left:6px;'></span><a href=http://www.17173.com/>17173</a><span style='padding-left:6px;'></span><a href=http://www.focus.cn/>焦点房地产</a><span style='padding-left:6px;'></span><a href=http://www.goodfeel.com.cn/>GoodFeel</a><span style='padding-left:6px;'></span><a href=http://www.sogou.com/>搜狗</a><span style='padding-left:6px;'></span><a href=http://store.sohu.com/>商城</a></td>");
	document.write("</tr>");
	document.write("</table>");

	document.write("<style type=text/css>");
	document.write(".ui_top{color:#000000;font-size:12px;line-height:18px;}");
	document.write(".ui_top a:link{color:#000000;text-decoration:none;}");
	document.write(".ui_top a:visited{color:#000000;text-decoration:none;}");
	document.write(".ui_top a:hover {color:#000000;text-decoration:underline;}");
	document.write(".up1 {color:656565;line-height:18px;font-size:12px}");
	document.write(".up1 td{color:#656565;line-height:18px;font-size:12px}");
	document.write(".up1 A:link {color:#656565;text-decoration:none;line-height:18px;font-size:12px}");
	document.write(".up1 A:Visited {color:#656565;text-decoration:none;}");
	document.write(".up1 A:Hover {color:#656565;TEXT-DECORATION: underline;}");
	document.write("</style>");
	document.write("<img src=http://images.sohu.com/ccc.gif width=1 height=5><br>");
	document.write("<TABLE cellSpacing=0 cellPadding=0 width=760 border=0>");
	document.write("<TR bgColor=#ffffff>");
	document.write("<TD width=148><A href='http://www.sohu.com'><IMG height=21 alt='搜狐首页' src='http://images.sohu.com/uiue/sohu_logo/sohu_logo.gif' border=0></A></TD>");
	document.write("<TD class=ui_top vAlign=bottom align=right><A href='http://www.sohu.com/'>搜狐首页</A><FONT style='FONT-SIZE: 4px'> </FONT> </FONT>-<FONT style='FONT-SIZE: 4px'> </FONT><A href='http://news.sohu.com/'>新闻</A><FONT style='FONT-SIZE: 4px'> </FONT>-<FONT style='FONT-SIZE: 4px'> </FONT> </FONT><A href='http://sports.sohu.com/'><font color=#ff0000>体育</font></A><FONT style='FONT-SIZE: 4px'> </FONT> </FONT>-<FONT style='FONT-SIZE: 4px'> </FONT><A href='http://yule.sohu.com/'>娱乐圈</A><FONT style='FONT-SIZE: 4px'> </FONT>-<FONT style='FONT-SIZE: 4px'> </FONT> </FONT><A href='http://business.sohu.com/'>财经</A><FONT style='FONT-SIZE: 4px'> </FONT>-<FONT style='FONT-SIZE: 4px'> </FONT> </FONT><A href='http://it.sohu.com/'>IT</A><FONT style='FONT-SIZE: 4px'> </FONT> </FONT>-<FONT style='FONT-SIZE: 4px'> </FONT><A href='http://auto.sohu.com/'>汽车</A><FONT style='FONT-SIZE: 4px'> </FONT>-<FONT style='FONT-SIZE: 4px'> </FONT> </FONT><A href='http://house.sohu.com/'>房产</A><FONT style='FONT-SIZE: 4px'> </FONT> </FONT>-<FONT style='FONT-SIZE: 4px'> </FONT><A href='http://women.sohu.com/'>女人</A><FONT style='FONT-SIZE: 4px'> </FONT><FONT style='FONT-SIZE: 4px'></FONT>-<FONT style='FONT-SIZE: 4px'> </FONT><A href='http://sms.sohu.com/'>短信</A><FONT style='FONT-SIZE: 4px'> </FONT>-<FONT style='FONT-SIZE: 4px'> </FONT> <FONT style='FONT-SIZE: 4px'> </FONT> </FONT><A href='http://www.chinaren.com'><font color=#ff0000>ChinaRen</font></A><FONT style='FONT-SIZE: 4px'> </FONT>-<FONT style='FONT-SIZE: 4px'> </FONT> </FONT><A href='http://login.mail.sohu.com/'>邮件</A><FONT style='FONT-SIZE: 4px'> </FONT> </FONT>-<FONT style='FONT-SIZE: 4px'> </FONT><A href='http://store.sohu.com/'>商城</A>-<FONT style='FONT-SIZE: 4px'> </FONT><A href='http://blog.sohu.com/'>博客</A><FONT style='FONT-SIZE: 4px'> </FONT> </FONT>-<FONT style='FONT-SIZE: 4px'> </FONT><A href='http://club.sohu.com/'>BBS</A><FONT style='FONT-SIZE: 4px'> </FONT>-<FONT style='FONT-SIZE: 4px'> </FONT> </FONT><A href='http://www.sogou.com/'><FONT color=#ff0000>搜狗</FONT></A><FONT style='FONT-SIZE: 4px'> </FONT> </FONT>&nbsp;</TD>");
	document.write("</TR>");
	document.write("<tr><td height=3 colspan=2><img src=http://images.sohu.com/ccc.gif width=1 height=1></td></tr>");
	document.write("</TABLE>");
	
	document.write("<!--sohu_top:end-->");
}

function showAlumniBanner(imghead, imgbody) {
	flashNav();
	//Xmas();
}

function flashNav() {
	document.write("<table width='760' height='55' border='0' cellpadding='0' cellspacing='0'>");
	document.write("<tr>");
	document.write("<td width='156' rowspan='2' valign='top'><img src='http://images.chinaren.com/cs/sms/alumni3/images/fl_top1.gif' width='156' height='55' border='0' usemap='#Map2'></td>");
	document.write("<td width='451' height='29' background='http://images.chinaren.com/cs/sms/alumni3/images/fl_top4.gif' align=center>");
	document.write("<table cellspacing=0 cellpadding=0 width=425 border=0>");
	document.write("<form name=searchForm method=get action=http://d.sogou.com/music target=_blank>");
	document.write("<tr><td><a href=http://www.sogou.com target=_blank><img src='http://images.chinaren.com/cs/sms/alumni3/images/bluenav_15.gif' border=0></a></td><td><input type=text name=query maxlength=100 size=30 id=query></td><td><input type=submit value=' 音乐搜索 ' class=so2></td></tr>");
	document.write("</form>");
	document.write("</table>");

	document.write("<script src=http://mis.sohu.net/inc/classmate.js><\/script>");

	document.write("</td>");
	document.write("<td width='153' valign='top'><img src='http://images.chinaren.com/cs/sms/alumni3/images/fl_top3.gif' width='153' height='29' border='0' usemap='#Map'></td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td height='26' colspan='2' valign='top' background='http://images.chinaren.com/cs/sms/alumni3/images/fl_top2.gif'><object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='604' height='26'>");
	document.write("<param name='movie' value='http://images.chinaren.com/cs/sms/alumni3/images/s3.swf'>");
	document.write("<param name='quality' value='best'>");
	document.write("<param name='wmode' value='transparent'>");
	document.write("<embed src='http://images.chinaren.com/cs/sms/alumni3/images/s3.swf' quality='best' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='604' height='26'></embed>");
	document.write("</object></td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("<map name='Map'>");
	document.write("<area shape='rect' coords='68,5,103,24' href='javascript:login()'>");
	document.write("<area shape='rect' coords='113,5,143,27' href='javascript:logout()'>");
	document.write("</map>");
	document.write("<map name='Map2'>");
	document.write("<area shape='rect' coords='25,8,135,52' href='http://alumni.chinaren.com/' target='_blank'>");
	document.write("</map>");
}

function Xmas() {
	document.write("<table width='760' height='55' border='0' cellpadding='0' cellspacing='0'>");
	document.write("<tr>");
	document.write("<td width='156' rowspan='2' valign='top'><img src='http://images.chinaren.com/cs/sms/alumni3/images/tops_8.gif' width='156' height='55' border='0' usemap='#_Map2'></td>");
	document.write("<td width='451' height='29' align=center background='http://images.chinaren.com/cs/sms/alumni3/images/tops_10.gif'>");
	document.write("<table cellspacing=0 cellpadding=0 width=425 border=0>");
	document.write("<form name=searchForm method=get action=http://d.sogou.com/music target=_blank>");
	document.write("<tr><td><a href=http://www.sogou.com target=_blank><img src='http://images.chinaren.com/cs/sms/alumni3/images/green_sogou.gif' border=0></a></td><td><input type=text name=query maxlength=100 size=30 id=query></td><td><input type=submit value=' 音乐搜索 ' class=so2></td></tr>");
	document.write("</form>");
	document.write("</table>");
	document.write("<script src=http://mis.sohu.net/inc/classmate.js><\/script>");
	document.write("</td>");
	document.write("<td width='153' valign='top'><img src='http://images.chinaren.com/cs/sms/alumni3/images/tops_9.gif' width='153' height='29' border='0' usemap='#_Map1'></td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td height='26' colspan='2' valign='top'><table width='604' height='26' border='0' cellpadding='0' cellspacing='0'>");
	document.write("<tr>");
	document.write("<td width='36'><img src='http://images.chinaren.com/cs/sms/alumni3/images/tops_1.gif' width='36' height='26'></td>");
	document.write("<td width='88'><a href='http://club.chinaren.com/' target='_blank'><img src='http://images.chinaren.com/cs/sms/alumni3/images/tops_2.gif' width='88' height='26' border='0'></a></td>");
	document.write("<td width='121'><a href='http://game.chinaren.com/game/index.jsp' target='_blank'><img src='http://images.chinaren.com/cs/sms/alumni3/images/tops_3.gif' width='121' height='26' border='0'></a></td>");
	document.write("<td width='101'><a href='http://alumni.chinaren.com/vip/vip_index.jsp' target='_blank'><img src='http://images.chinaren.com/cs/sms/alumni3/images/tops_4.gif' width='101' height='26' border='0'></a></td>");
	document.write("<td width='114'><a href='http://alumni.chinaren.com/mobile/sms_alumni.jsp' target='_blank'><img src='http://images.chinaren.com/cs/sms/alumni3/images/tops_5.gif' width='114' height='26' border='0'></a></td>");
	document.write("<td width='80'><a href='http://people.sogou.com/chr/search.html' target='_blank'><img src='http://images.chinaren.com/cs/sms/alumni3/images/tops_6.gif' width='107' height='26' border='0'></a></td>");
	document.write("<td width='89'><img src='http://images.chinaren.com/cs/sms/alumni3/images/tops_7.gif' width='37' height='26'></td>");
	document.write("</tr>");
	document.write("</table></td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("<map name='_Map1'>");
	document.write("<area shape='rect' coords='68,5,103,24' href='javascript:login()'>");
	document.write("<area shape='rect' coords='113,5,143,27' href='javascript:logout()'>");
	document.write("</map>");
	document.write("<map name='_Map2'>");
	document.write("<area shape='rect' coords='25,8,135,52' href='http://alumni.chinaren.com/' target='_blank'>");
	document.write("</map>");
}


function showCopyRight() {
	document.write("<table width=760 border=0 cellspacing=0 cellpadding=0>");
	document.write("  <tr>");
	document.write("    <td height=30><hr width=760 size=1 noshade></td>");
	document.write("  </tr>");
	document.write("  <tr>");
	document.write("   <td align=center class=cla1><a href=http://xiaonei.chinaren.com/zhaopin/ class=cla1 target=_blank><font color=red><b>诚聘英才</b></font></a> - <a href=http://www.chinaren.com class=cla1>ChinaRen首页</a> - <a href=http://club.chinaren.com class=cla1>ChinaRen社区</a> - <a href=http://profile.chinaren.com/zhs/register.jsp?group=alumni class=cla1>注册新用户</a> - <a href=mailto:alumni@contact.sohu.com class=cla1>联系校友录</a> - <a href=http://help.sohu.com/help_2.php?fatherid=3 class=cla1 target=_blank>帮助信息</a> - <a href=http://crm.chinaren.com class=cla1>客服论坛</a><br>");
	document.write("      Copyright &copy; 2009 Sohu.com Inc. All rights reserved. 搜狐公司 版权所有</td>");
	document.write("  </tr>");
	document.write("</table>");
	document.write("<table border=0 align=center cellpadding=0 cellspacing=0>");
	document.write("<tr><td><a href=http://www.hd315.gov.cn/beian/view.asp?bianhao=0102000111600001 target=_blank><img src=http://images.sohu.com/biaoshi.gif border=0></a></td>");
	document.write("<td style='border:1px solid #000000;border-right:0px'><a href=http://www.bj.cyberpolice.cn/alarm/alarm.htm target=_blank><img src=http://images.sohu.com/uiue/net110.gif border=0 width=40 height=40></a></td>");
	document.write("<td  style='line-height:16px;border:1px solid #000000;border-left:0px;padding:5px;'><a href=http://www.bj.cyberpolice.cn/alarm/alarm.htm class=black target=_blank>网络 110<br>报警服务</a></td></tr>");
	document.write("</table>")

	document.write("<script src=http://images.chinaren.com/product/aluclub/nnselect.js></" + "script>");

	var _domain = document.domain;
	if (_domain.equals("alumni.chinaren.com")) {
		var isv = GetCookie(GetCookie("CHINARENUSER") + "qoifals").length>0;
		if (isv) return;
		var uri = window.location.pathname;
		var bShowSogouUnionAds = true;
		switch (uri) {
			case "/":
			case "/index.jsp":
			case "/class/class_index.jsp":
			case "/class/class_leaveword.jsp":
				bShowSogouUnionAds = false;
				break;
		}

		if (bShowSogouUnionAds) {
			document.write("<script type='text/javascript'>");
			document.write("sogou_ad_pid = 'easy0123';");
			document.write("sogou_ad_sid = '-1';");
			document.write("sogou_ad_limit='12';");
			document.write("sogou_ad_type='010000';");
			document.write("<\/script>");
			document.write("<script src='http://images.sohu.com/cs/jsfile/js/SogouUnionAds.js'><\/script>");
		}
	}
}

String.prototype.equals = function(strTerm) {
	var strToSearch = this;
	strTerm = strTerm;
	if(strToSearch==strTerm)
		return true;
	else
		return false;
}

function showMap() {
	document.write("<table width=394 border=0 cellspacing=0 cellpadding=0>");
	document.write("  <tr> ");
	//document.write("    <td colspan=3><img src=http://images.chinaren.com/cs/sms/alumni3/images/cr_b4.gif width=394 height=270 border=0 usemap=#Map></td>");
	document.write("    <td colspan=3> ");
	document.write("    <object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='400' height='320' id='map' align='middle'>");
	document.write("    <param name='movie' value='http://images.chinaren.com/product/alumni3/map.swf'>");
	document.write("    <param name='quality' value='high'>");
	document.write("    <param name='bgcolor' value='#fffeef'>");
	document.write("    <embed src='http://images.chinaren.com/product/alumni3/map.swf' quality='high' bgcolor='#fffeef' width='400' height='320' name='map' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
	document.write("    </object>");
	document.write("    </td> ");
	document.write("  </tr>");
	document.write("  <tr bgcolor=FFFFEF> ");
	document.write("    <td width=20> ");
	document.write("    <td width=250 height=105 valign=top> <table width=168 border=0 cellpadding=4 cellspacing=1 bgcolor=C6C7BD>");
	document.write("        <tr> ");
	document.write("          <td bgcolor=#FFFFFF class=cr2><font color=#000000>其他地区</font><br> ");
	document.write("            <a href=/school/110/0/6/1.shtml class=cr2>日　本</a>　　<a href=/school/109/0/6/1.shtml class=cr2>韩　国</a>　　<a href=/school/108/0/6/1.shtml class=cr2>新加坡</a><br> ");
	document.write("            <a href=/school/107/0/6/1.shtml class=cr2>加拿大</a>　　<a href=/school/106/0/6/1.shtml class=cr2>美　国</a>　　<a href=/school/105/0/6/1.shtml class=cr2>亚　洲</a><br> ");
	document.write("            <a href=/school/104/0/6/1.shtml class=cr2>非　洲</a>　　<a href=/school/103/0/6/1.shtml class=cr2>大洋洲</a>　　<a href=/school/102/0/6/1.shtml class=cr2>南美洲</a><br> ");
	document.write("            <a href=/school/101/0/6/1.shtml class=cr2>欧　洲</a>　　<a href=/school/100/0/6/1.shtml class=cr2>东南亚</a></td>");
	document.write("        </tr>");
	document.write("      </table></td>");
	document.write("    <td width=124 valign=top><img src=http://images.chinaren.com/cs/sms/alumni3/images/cr_b41.gif width=41 height=54></td>");
	document.write("  </tr>");
	document.write("</table>");
	
	document.write("<map name=Map>");
	document.write("  <area shape=rect coords='316,36,361,47' href=/school/16/0/6/1.shtml>");
	document.write("  <area shape=rect coords='319,66,349,79' href=/school/6/0/6/1.shtml>");
	document.write("  <area shape=rect coords='302,88,332,100' href=/school/5/0/6/1.shtml>");
	document.write("  <area shape=rect coords='268,94,296,108' href=/school/1/0/6/1.shtml>");
	document.write("  <area shape=rect coords='297,111,329,124' href=/school/2/0/6/1.shtml>");
	document.write("  <area shape=rect coords='265,111,295,123' href=/school/3/0/6/1.shtml>");
	document.write("  <area shape=rect coords='282,126,311,139' href=/school/13/0/6/1.shtml>");
	document.write("  <area shape=rect coords='243,126,273,139' href=/school/4/0/6/1.shtml>");
	document.write("  <area shape=rect coords='202,99,248,111' href=/school/15/0/6/1.shtml>");
	document.write("  <area shape=rect coords='159,101,190,115' href=/school/29/0/6/1.shtml>");
	document.write("  <area shape=rect coords='82,88,116,102' href=/school/32/0/6/1.shtml>");
	document.write("  <area shape=rect coords='148,131,179,143' href=/school/30/0/6/1.shtml>");
	document.write("  <area shape=rect coords='191,131,222,144' href=/school/31/0/6/1.shtml>");
	document.write("  <area shape=rect coords='92,162,121,175' href=/school/27/0/6/1.shtml>");
	document.write("  <area shape=rect coords='180,166,208,177' href=/school/22/0/6/1.shtml>");
	document.write("  <area shape=rect coords='183,217,210,231' href=/school/26/0/6/1.shtml>");
	document.write("  <area shape=rect coords='216,247,244,261' href=/school/21/0/6/1.shtml>");
	document.write("  <area shape=rect coords='258,239,286,254' href=/school/34/0/6/1.shtml>");
	document.write("  <area shape=rect coords='294,231,324,243' href=/school/33/0/6/1.shtml>");
	document.write("  <area shape=rect coords='326,219,360,231' href=/school/24/0/6/1.shtml>");
	document.write("  <area shape=rect coords='260,222,289,234' href=/school/19/0/6/1.shtml>");
	document.write("  <area shape=rect coords='226,222,253,235' href=/school/20/0/6/1.shtml>");
	document.write("  <area shape=rect coords='292,202,324,217' href=/school/11/0/6/1.shtml>");
	document.write("  <area shape=rect coords='246,200,277,213' href=/school/18/0/6/1.shtml>");
	document.write("  <area shape=rect coords='215,201,242,213' href=/school/25/0/6/1.shtml>");
	document.write("  <area shape=rect coords='207,183,239,199' href=/school/23/0/6/1.shtml>");
	document.write("  <area shape=rect coords='312,183,343,197' href=/school/9/0/6/1.shtml>");
	document.write("  <area shape=rect coords='276,185,306,197' href=/school/12/0/6/1.shtml>");
	document.write("  <area shape=rect coords='254,173,255,174' href=#>");
	document.write("  <area shape=rect coords='249,168,280,183' href=/school/17/0/6/1.shtml>");
	document.write("  <area shape=rect coords='283,163,315,176' href=/school/10/0/6/1.shtml>");
	document.write("  <area shape=rect coords='320,164,349,176' href=/school/7/0/6/1.shtml>");
	document.write("  <area shape=rect coords='294,145,324,158' href=/school/8/0/6/1.shtml>");
	document.write("  <area shape=rect coords='259,145,287,159' href=/school/14/0/6/1.shtml>");
	document.write("  <area shape=rect coords='240,152,241,154' href=#>");
	document.write("  <area shape=rect coords='225,147,253,158' href=/school/28/0/6/1.shtml>");
	document.write("</map>");
}

function showProvincesList() {
	document.write("<select name=prov class=input2 style='width: 80px'>");
	//document.write("<option VALUE=0 >未知地区</option>");
	document.write("<option VALUE=1 selected>北京市</option>");
	document.write("<option VALUE=2>天津市</option>");
	document.write("<option VALUE=3>河北省</option>");
	document.write("<option VALUE=4>山西省</option>");
	document.write("<option VALUE=5>辽宁省</option>");
	document.write("<option VALUE=6>吉林省</option>");
	document.write("<option VALUE=7>上海市</option>");
	document.write("<option VALUE=8>江苏省</option>");
	document.write("<option VALUE=9>浙江省</option>");
	document.write("<option VALUE=10>安徽省</option>");
	document.write("<option VALUE=11>福建省</option>");
	document.write("<option VALUE=12>江西省</option>");
	document.write("<option VALUE=13>山东省</option>");
	document.write("<option VALUE=14>河南省</option>");
	document.write("<option VALUE=15>内蒙古自治区</option>");
	document.write("<option VALUE=16>黑龙江省</option>");
	document.write("<option VALUE=17>湖北省</option>");
	document.write("<option VALUE=18>湖南省</option>");
	document.write("<option VALUE=19>广东省</option>");
	document.write("<option VALUE=20>广西壮族自治区</option>");
	document.write("<option VALUE=21>海南省</option>");
	document.write("<option VALUE=22>四川省</option>");
	document.write("<option VALUE=23>重庆市</option>");
	document.write("<option VALUE=24>台湾省</option>");
	document.write("<option VALUE=25>贵州省</option>");
	document.write("<option VALUE=26>云南省</option>");
	document.write("<option VALUE=27>西藏自治区</option>");
	document.write("<option VALUE=28>陕西省</option>");
	document.write("<option VALUE=29>甘肃省</option>");
	document.write("<option VALUE=30>青海省</option>");
	document.write("<option VALUE=31>宁夏回族自治区</option>");
	document.write("<option VALUE=32>新疆维吾尔族自治区</option>");
	document.write("<option VALUE=33>香港特别行政区</option>");
	document.write("<option VALUE=34>澳门特别行政区</option>");

	document.write("<option VALUE=100>东南亚</option>");
	document.write("<option VALUE=101>欧　洲</option>");
	document.write("<option VALUE=102>南美洲</option>");
	document.write("<option VALUE=103>大洋洲</option>");
	document.write("<option VALUE=104>非　洲</option>");
	document.write("<option VALUE=105>亚　洲</option>");
	document.write("<option VALUE=106>美　国</option>");
	document.write("<option VALUE=107>加拿大</option>");
	document.write("<option VALUE=108>新加坡</option>");
	document.write("<option VALUE=109>韩　国</option>");
	document.write("<option VALUE=110>日　本</option>");

	document.write("</select>");
}

function showHello() {
	var welcomestring;
	var d = new Date();	
	h = d.getHours();
	if(h<6)
		welcomestring="凌晨好";
	else if (h<9)
		welcomestring="早上好";
	else if (h<12)
		welcomestring="上午好";
	else if (h<14)
		welcomestring="中午好";
	else if (h<17)
		welcomestring="下午好";
	else if (h<19)
		welcomestring="傍晚好";
	else if (h<22)
		welcomestring="晚上好";
	else
		welcomestring="夜里好";
	document.write(welcomestring);
}

function login() {
	var theHost = top.window.location.host;
	var theUrl = top.window.location.href;
	if (theHost.indexOf("alumni.sohu.com")>-1)
		theUrl = theUrl.replace(/alumni.sohu.com/gi, "alumni.chinaren.com");
	top.window.location = "http://profile.chinaren.com/zhs/loginTip.jsp?group=alumni&url=" + UrlConv(theUrl);
	//top.document.location = "http://profile.chinaren.com/zhs/login.jsp?group=alumni&url=" + UrlConv(top.window.location);
}

function logout() {
	//top.document.location = "http://profile.chinaren.com/zhs/backdoor.jsp?group=alumni&url=" + UrlConv(top.window.location);
	top.document.location = "http://profile.chinaren.com/zhs/backdoor.jsp?group=alumni&url=http://www.chinaren.com";
}

function logintourl(url) {
	top.document.location = "http://profile.chinaren.com/zhs/login.jsp?group=alumni&url=" + url;
}

function lr1(vv) {
	window.open(vv,"","top=3000, height=3000, width=0,height=0,scrollbars=no,resizable=no,center:yes");
}

function lr2(vv) {
	window.open(vv,"","width=333,height=360,scrollbars=no,resizable=no,center:yes");
}

function alert_inv()
{
	alert("您不是本班成员，或者您没有登录！");
}

function isEmail(email)
{
        invalidChars = " /;,:{}[]|*%$#!()`<>?";
        if (email == "")
        {
                return false;
        }
        for (i=0; i< invalidChars.length; i++)
        {
                badChar = invalidChars.charAt(i)
                if (email.indexOf(badChar,0) > -1)  {
                        return false;
                }
        }
        atPos = email.indexOf("@",1)
        if (atPos == -1)  {   return false;  }
        if (email.indexOf("@", atPos+1) != -1) {   return false;  }
        periodPos = email.indexOf(".",atPos)
        if(periodPos == -1) {
                return false;  // and at least one "." after the "@"
        }
        if ( atPos +2 > periodPos)  {
                return false;  // and at least one character between "@" and "."
        }
        if ( periodPos +3 > email.length)  {   return false;  }
        return true;
}

function getsmspwd(obj) {
	obj.value = trim(obj.value);
	if(obj.value.length != 11)
	{
		alert("请输入手机号码，或手机号码位数不对！");
		obj.focus();
		return;
	}

	window.open("http://register.mail.sohu.com/reg/SendPass.jsp?mobile=" + obj.value,"","width=200,height=200");
}

function GetCookie(sName) {
	var aCookie = document.cookie.split("; ");
	for (var i=0; i < aCookie.length; i++) {
		var aCrumb = aCookie[i].split("=");
		if (sName == aCrumb[0]) 
			return unescape(aCrumb[1]);
	}
	return "";
}

function loginTip(tip) {
	var theHost = top.window.location.host;
	var theUrl = top.window.location.href;
	if (theHost.indexOf("alumni.sohu.com")>-1)
		theUrl = theUrl.replace(/alumni.sohu.com/gi, "alumni.chinaren.com");
	top.document.location = "http://my.chinaren.com/zhs/loginTip.jsp?group=alumni&url=" + UrlConv(theUrl) + "&tip=" + encodeURI(tip);
}

