﻿document.write("<script type='text/javascript' src='/js/AC_RunActiveContent.js'></script>");  

var jiegou=[{id:"title_xinxigongkai",item:[
{title:"就业程序",url:"/xxgkml/index.jsp"},
{title:"政策法规",url:"/xxgkml/index.jsp"}]},{id:"title_daxueshengxinxika",
item:[{title:"用人单位入口",url:"/danweilogin.jsp"},{title:"学生入口",url:"/studentlogin.jsp"}]},{id:"title_jieyezixun",item:[{title:"常见问题",url:"/advice/frequentlist.jsp"},{title:"网上咨询",url:"/advice/questionlist.jsp"},
                                                                                                                    {title:"在线访谈直播",url:"/system/zxft/liveViewList.jsp"}]},{id:"title_wangshangbanshi",
item:[{title:"非上海生源户籍受理查询",url:"/gic_web/studentbluequerymain.jsp"},{title:"企业信息登记查询",url:"/gic_web/enterprisequerymain.jsp"},{title:"档案查询",url:"/gic_web/archivesquerymain.jsp"},{title:"户籍证明申请",url:"/gic_web/residentcertificateapplymain.jsp"},{title:"待就业学生登记",url:"/gic_web/studentEdit.jsp"},{title:"非上海生源居住证受理查询",url:"/gic_web/studentjzzquerymain.jsp"},{title:"二代证查询",url:"/gic_web/studentsecidcardquerymain.jsp"}]},{id:"title_jiuyecujinhui",item:[{title:"就业促进会",url:"/promote/index.jsp"}]},{id:"title_dangyuanzijia",item:[
{title:"动态报道",url:"/party/index.jsp"},
{title:"流动党建",url:"/party/index.jsp"},
{title:"员工党建",url:"/party/index.jsp"},
{title:"党员风采",url:"/party/index.jsp"},
{title:"下载专栏",url:"/party/index.jsp"}
]},{id:"title_xiazaizhongxin",item:[{title:"下载中心",url:"/download/index.jsp"}]},{id:"title_guanyuwomen",item:[{title:"关于我们",url:"/about/about.jsp"}]},{id:"title_shouye",item:[{title:"首页",url:"/index.jsp"}]}];//网上办事常见
function openNewWindow(theSelect)
{document.location=theSelect;
}
function existCheckedRadioButton(radioButtonGroupToCheck)
{
	var blnExistCheckedRadioButton; //是否有一个单选按钮被选中了
	
	blnExistCheckedRadioButton = false;
	for (var intCounter = 0; intCounter < radioButtonGroupToCheck.length; intCounter ++)
	{
		if (radioButtonGroupToCheck[intCounter].checked)
		{
			blnExistCheckedRadioButton = true;
			break;
		}
	}

	return (blnExistCheckedRadioButton);
}
function isInt(Str){
	var RInt="[^0-9]"
	var fLetter=/^[1-9]/
    var NumRule = new RegExp(RInt)
	if(Str==null || Str=="")
		return false
	if(Str.search(NumRule)!=-1 || !fLetter.test(Str))
		return false
	else
		return true
}
function searchRecruitment()
{
	var strDocumentUrl;
	var strWindowName;
	var strWindowFeatures;
	strDocumentUrl = "/student/searchRecruitmentResult.jsp?txtSearchType=1";
	strDocumentUrl += "&txtCorporationPropertyIds=" + document.frmsearch.txtCorporationPropertyIds.value;
	strDocumentUrl += "&txtCorporationTradeIds=" + document.frmsearch.txtCorporationTradeIds.value;
	strDocumentUrl += "&txtPostTypeIds=" + document.frmsearch.txtPostTypeIds.value;
	strDocumentUrl += "&txtPostPublishDateRangeId=" + document.frmsearch.txtPostPublishDateRangeId.value;
	strDocumentUrl += "&txtPostName=" + encodeURI(encodeURI( document.frmsearch.postName.value));
	strDocumentUrl += "&txtCorporationName=" + encodeURI(encodeURI(document.frmsearch.corpName.value));
	

	//strWindowName = "recruitmentList";
	//strWindowFeatures = "toolbar=yes,location=no,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,left=50, height=50, width=750, height=600";
	showInfo((strDocumentUrl), strWindowName, strWindowFeatures);
}
function showInfo(urlString){
	//window.open(urlString,'_Info','toolbar=no location=no directories=no status=no menubar=no scrollbars=yes top=0 left=0 width=650 height=500');
	//zny 20060804 弹出窗口应该和正常窗口一样
	 var a = document.createElement("A");
	 a.href=urlString;
	 a.target="_blank";
	
	 document.getElementsByTagName("BODY")[0].appendChild(a);  
	  a.click();
	//window.open(urlString,"_blank","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,top=0,left=0,width="+screen.width+",height="+screen.height);
	//window.open(urlString,"_blank","");
	   
}
	$(document).ready(function() {
	initLinkClick ();
/*
   $("span[@id^=title_]").click(function(){

		for(var i=0;i<jiegou.length;i++)
		{
				if(this.id==jiegou[i].id)
				{
				var html="";
							for(var j=0;j<jiegou[i].item.length;j++)
							{
							html+="<a class='STYLE37' href='"+jiegou[i].item[j].url+"' >"+jiegou[i].item[j].title+"</a> | ";
							}
				
				zixiang.innerHTML=html;
				}
		
		}
   });
*/

$("td[@id^=title_]").hover(function(){
var obj=this;
$("td[@id^=title_]").each(function(i){

if(this!=obj)
{
if(this.style.background!="url(/images/index_bg1.gif)")
this.style.background="url(/images/index_bg1.gif)";
}
else
{
this.style.background="url(/images/index_bg red.gif)";
}
});



		for(var i=0;i<jiegou.length;i++)
		{
				if(this.id==jiegou[i].id)
				{
				var html="";
							for(var j=0;j<jiegou[i].item.length;j++)
							{
							html+="<a  href='"+jiegou[i].item[j].url+"' ><span class='STYLE79'>"+jiegou[i].item[j].title+"</span></a> | ";
							}
			try{
			
				zixiang.innerHTML=html;
				}catch(e)
				{}
				}
		
		}
   },function(){});


$("td[@id^=tab_]").hover(function(){

	var content_id=this.id.replace("tab_", "content_");

 var contents=content_id.split("_")[0]+"_"+content_id.split("_")[1];

$("span[@id^="+contents+"]").css("display","none");

$("span[@id^="+content_id+"]").css("display","inline");
},function(){});
	
	
	$("img[@id^=tab_news]").hover(function(){
	var content_id=this.id.replace("tab_", "content_");

 var contents=content_id.split("_")[0]+"_"+content_id.split("_")[1];
	
    $("img[@id^=tab_news]").each(function(i){
	 this.src=this.src.replace("show","hide");

	 }
	 );
$("span[@id^="+contents+"]").css("display","none");

$("span[@id^="+content_id+"]").css("display","inline");
	this.src=this.src.replace("hide","show");
	if(this.id.indexOf("_0")<0)
	{
	//$("#news_line")[0].style.visibility="hidden";
	}
	else
	{
	//$("#news_line")[0].style.visibility="visible";
	}
	},function(){});
	
	
	
	
	
	$("img[@id^=tab_news]").click(function(){
  
	
	
	$("img[@id^=tab_news]").each(function(i){
	 this.src=this.src.replace("show","hide");
	// alert(this.src);
	 }
	 );
	 
	this.src=this.src.replace("hide","show");
	if(this.id.indexOf("_0")<0)
	{
	//$("#news_line")[0].style.visibility="hidden";
	}
	else
	{
	//$("#news_line")[0].style.visibility="visible";
	}

	


/*var content_id=this.id.replace("tab_", "content_");

 var contents=content_id.split("_")[0]+"_"+content_id.split("_")[1];

$("div[@id^="+contents+"]").css("display","none");


$("div[@id^="+content_id+"]").css("display","inline");*/
});

});
function bothTrim(stringToTrim)
{
	var strStringToTrim; //要进行清除空格操作的字符串
	var strStringTrimmed; //已经进行完清除空格操作的字符串

	strStringToTrim = stringToTrim;
	strStringTrimmed = rightTrim(leftTrim(strStringToTrim));


	return (strStringTrimmed);
}
function rightTrim(stringToTrim)
{
	var strStringToTrim; //要进行清除空格操作的字符串
	var strStringTrimmed; //已经进行完清除空格操作的字符串
	var intCounter; //计数器
	var intStringLength; //要进行清除空格操作的字符串的长度

	strStringToTrim = stringToTrim;
	strStringTrimmed = "";
	intStringLength = strStringToTrim.length;

	for (intCounter = intStringLength - 1; intCounter >= 0; intCounter --)
	{
		//当遇到右边第一个非空格字符后
		//将从该字符起至最左的子字符串作为结果并中止循环
		if (strStringToTrim.charAt(intCounter) != " ")
		{
			strStringTrimmed = strStringToTrim.substring(0, intCounter + 1);
			break;
		}
	}


	return (strStringTrimmed);
}
function leftTrim(stringToTrim)
{
	var strStringToTrim; //要进行清除空格操作的字符串
	var strStringTrimmed; //已经进行完清除空格操作的字符串
	var intCounter; //计数器
	var intStringLength; //要进行清除空格操作的字符串的长度

	strStringToTrim = stringToTrim;
	strStringTrimmed = "";
	intStringLength = strStringToTrim.length;

	for (intCounter = 0; intCounter < intStringLength; intCounter ++)
	{
		//当遇到左边第一个非空格字符后
		//将从该字符起至最右的子字符串作为结果并中止循环
		if (strStringToTrim.charAt(intCounter) != " ")
		{
			strStringTrimmed = strStringToTrim.substring(intCounter, intStringLength);
			break;
		}
	}


	return (strStringTrimmed);
}


function linkClick () {
　　 var executeAction = true;
　　 if (this.onclick) {
　　 executeAction = this.onclick({type: 'click'});
　　 }
　　 if (executeAction) 
　　 open (this.href, this.target ? this.target : '_self');
　　}
　　function initLinkClick () {

　　 if ( document.links.length > 0&&document.links[0].constructor!=null)

　　 document.links[0].constructor.prototype.click = linkClick;
　　}

