function OpenNewsWindow(theURL) {
  var x=(screen.availWidth-440)/2; var y=(screen.availHeight-340)/2;
  window.open(theURL,"YJSBNews","left="+x+",top="+y+",width=440,height=340");
}

function set(c){
	document.getElementById("b1").style.background=c;
	document.getElementById("b2").style.background=c;
	document.getElementById("b3").style.background=c;
	document.getElementById("b4").style.background=c;
	document.getElementById("b5").style.background=c;
	Bgcolor=c;
	pathname = location.pathname;
    myDomain = pathname.substring(0,pathname.lastIndexOf('/')) +'/';
	var largeExpDate = new Date ();
	largeExpDate.setTime(largeExpDate.getTime() + (7*24*3600*1000));
	SetCookie('Bgcolor',Bgcolor,largeExpDate,myDomain);
}

var currentpos,timer;
function initialize(){timer=setInterval("scrollwindow()",40);}

function sc(){clearInterval(timer);}
	
function scrollwindow(){
	currentpos=document.body.scrollTop;
	window.scroll(0,++currentpos);
	if (currentpos != document.body.scrollTop)
	clearInterval(timer);
}
document.onmousedown=sc
document.ondblclick=initialize

function adfv(){window.external.addFavorite('/Index.asp','上海大学研究生部')}

function menu(txt,url)
	{document.write("<div align=center><a href="+url+" target=_blank onfocus='this.blur()'>"+txt+"</a></div>")
	}

function mnuLeft(txt,url){document.write("<div><a href="+url+" target=_blank onfocus='this.blur()'>"+txt+"</a></div>")}

function TuiJianlink(){
	menu("【人民日报】","http://www.peopledaily.com.cn/");
	menu("【央视国际】","http://www.cctv.com");
	menu("【雅虎中国】","http://cn.yahoo.com/");
	menu("【驱动之家】","http://www.mydrivers.com");
	menu("【中国研究生】","http://www.postgraduates.com.cn");
	menu("【国家图书馆】","http://www.nlc.gov.cn/");
	menu("【维普期刊网】","http://202.120.121.201/");
	menu("【中国期刊网】","http://202.120.121.196:81/");
	menu("【中国科学院】","http://www.cashq.ac.cn/");
	menu("【社会科学院】","http://www.cass.net.cn/");
	}

function YouQinlink(){
	menu("【教 育 部】","http://www.moe.edu.cn/");
	menu("【上海大学】","http://www.shu.edu.cn");
	menu("【教 务 处】","http://www.jwc.shu.edu.cn/");
	menu("【图 书 馆】","http://202.120.121.193/");
	menu("【MBA 中心】","http://www.shumba.shu.edu.cn/");
	menu("【上大就业网】","http://zbb.shu.edu.cn/graduateweb/main.asp");
	menu("【中华英才网】","http://campus.chinahr.com/");
	menu("【人才市场报】","http://www.china91.com");
	menu("【就业协作网】","http://www.91job.net.cn");
	menu("【就业指导中心】","http://www.firstjob.com.cn/");
	menu("【研究生人才网】","http://www.91student.com/");
	}
	
function WriteTitleBox(sTitle,sLink,sStyle)
	{document.write("<table border=0 cellpadding=0 cellspacing=0 width=100>");
	 if (sLink=="")document.write("<tr><td class='bord' align=center "+sStyle+">"+sTitle+"</td></tr>");
	 else document.write("<tr><td class='bord' align=center "+sStyle+"><a target=_Blank href='"+sLink+"'>"+sTitle+"</a></td></tr>");
     document.write("</table>")
     }

/***网页信息****/
	
function info()
	{document.write("<font color=green>主页面最后更新日期:" + document.lastModified + "</font>")}
	
function Foot()
	{document.write("<div align=center> Copyright (C) 2002&nbsp; 上海大学研究生部, 保留所有权利<br>")
	document.write("联系我们: <a href=mailto:%68%62%79%75%61%6E%40%6D%61%69%6C%2E%73%68%75%2E%65%64%75%2E%63%6E onfocus=this.blur()>ｈｂｙｕａｎ＠ｍａｉｌ.ｓｈｕ.ｅｄｕ.ｃｎ</a></div>")
	}

function Nav(func,Color,s,url){
     document.write('<tr><td height=23 align=center style="cursor:hand;LINE-HEIGHT: 180%;font-size:11pt;color:#0033CC;"')
	 if(func!=""){document.write(' onClick=');document.write(func);}
	 document.write(' onMouseOver=this.style.backgroundColor="')
	 document.write(Color)
	 document.write('" onMouseOut=this.style.backgroundColor=""><b>')
	 if(url!=""){document.write('<a href=');document.write(url);document.write(' target=_blank>')}
	 document.write('<font color=#0033CC>')
	 document.write(s)
	 document.write('</font>')
	 if(url!=""){document.write('</a>')}
	 document.write('</b></td></tr>')
	}
	
function Status()
	{window.defaultStatus='欢迎光临上海大学研究生部----->http://yjsb.shu.edu.cn/'; return true;}

function Top_Right(){
	document.write('<center>')
	document.write('<table border=0 cellpadding=0 cellspacing=0 width=776 style="border-collapse: collapse" bordercolor=#99ccff')
	document.write('<tr>')
    document.write('<td width=10 class="top">')
    document.write('<td width=180 align=center class="top"><a target="_top" href=/><img border=0 src=/images/logo.gif></a></td>')
    document.write('<td width=480 class="top" align="center"><img border=0 src=/images/yjsb.gif></td>')
    document.write('<td width=100 class="top">')
    document.write('<p align=center>')
	document.write('｜<a target="_blank" href=http://yjsh.shu.edu.cn/>研究生会</a>｜<br>')
    document.write('｜<a target="_blank" href=/ZDLJ.htm>站点链接</a>｜<br>')
    document.write('｜<a target="_blank" href=/ZSOnline/Index.asp>招生热线</a>｜<br>')
    document.write('｜<a target="_blank" href=/NewsManage/Login.asp>新闻管理</a>｜</td>')
	document.write('</tr>')
	document.write('</table>')
	document.write('</center>')
	}

function Top_Right2(){
	document.write('<center>')
	document.write('<table border=0 cellpadding=0 cellspacing=0 width=776 style="border-collapse: collapse" bordercolor=#99ccff')
	document.write('<tr>')
    document.write('<td width=1 class="top">')
    document.write('<td width=180 align=center class="top"><a target="_top" href=/><img border=0 src=/images/logo.gif></a></td>')
    document.write('<td width=480 class="top" align="center"><img border=0 src=/images/60.jpg width=515></td>')
    document.write('<td width=100 class="top">')
    document.write('<p align=center>')
	document.write('｜<a target="_blank" href=http://yjsh.shu.edu.cn/>研究生会</a>｜<br>')
    document.write('｜<a target="_blank" href=/ZDLJ.htm>站点链接</a>｜<br>')
    document.write('｜<a target="_blank" href=/ZSOnline/Index.asp>招生热线</a>｜<br>')
    document.write('｜<a target="_blank" href=/NewsManage/Login.asp>新闻管理</a>｜</td>')
	document.write('</tr>')
	document.write('</table>')
	document.write('</center>')
	}

function Top_Right3(){
	document.write('<center>')
	document.write('<table border=0 cellpadding=0 cellspacing=0 width=776 style="border-collapse: collapse" bordercolor=#99ccff')
	document.write('<tr>')
    document.write('<td width=1 class="top">')
    document.write('<td width=180 align=center class="top"><a target="_top" href=/><img border=0 src=/images/logo.gif></a></td>')
    document.write('<td width=480 class="top" align="center"><img border=0 src=/images/yjsb.bmp width=520></td>')
    document.write('<td width=100 class="top">')
    document.write('<p align=center>')
	document.write('｜<a target="_blank" href=http://yjsh.shu.edu.cn/>研究生会</a>｜<br>')
    document.write('｜<a target="_blank" href=/ZDLJ.htm>站点链接</a>｜<br>')
    document.write('｜<a target="_blank" href=/ZSOnline/Index.asp>招生热线</a>｜<br>')
    document.write('｜<a target="_blank" href=/NewsManage/Login.asp>新闻管理</a>｜</td>')
	document.write('</tr>')
	document.write('</table>')
	document.write('</center>')
	}
