		var userAccountMsg="请输入6~64位英文字母、数字、下划线、中划线或.@字符组合的登录帐号！";
		var userPasswrodMsg="请输入6~20位英文字母、数字、下划线、中划线或.@字符组合的登录密码！";

		function showNotice()
		{
			var ids=Cookie.get("noticeId");
			JWebNotice.showNotice(ids,callback);
		}

		function callback(data){
		if(null!=data){
			var noTitle=data.noTitle;
			var sendDate=data.sendDate;
			var noContent=data.noContent;
			//noContent=noContent.replace(new RegExp("<p>","gm"),"<br>");
			//noContent=noContent.replace(new RegExp("</p>","gm"),"");
			var noSign=data.noSign;
			var winHeight=data.winHeight;
			var winWidth=data.winWidth;
			var noticeId=data.refrenceId;
			var checkbox="<input type='checkbox' name='showFlag' id='showFlag' value='"+noticeId+"' style='vertical-align:middle;'/>";
			var notice="<table width='100%' height='100%' cellspacing='1' cellpadding='1' border='0'><tbody><tr height='10'> <td style='text-align: center;' colspan='2'>";
			notice+=noTitle+"</td></tr><tr><td colspan='2'>"+noContent+"</td></tr><tr height='15'><td width='150'></td> <td style='text-align: center;'>";
			notice+=noSign+"</td> </tr><tr height='10'><td>&nbsp;</td><td style='text-align: center;'>"+sendDate+"</td></tr>";
			notice+="<tr height='10'><td >&nbsp;&nbsp;&nbsp;"+checkbox+"&nbsp;&nbsp;不再显示此公告</td><td></td></tr></tbody></table>";
			ymPrompt.win({message:notice,height:winHeight,width:winWidth,title:noTitle,btn:[['确定','ok']],fixPosition:true,winPos:'rb',useSlide:true,slideCfg:{increment:0.1,interval:100},handler:getShowFlag,showMask:false,minBtn:true,maxBtn:true})

		}
		}
		function getShowFlag(){
			var show=$('showFlag');
			var noticeId=show.value;
			if(show.checked){//选中不显示
				var noticeIds=Cookie.get("noticeId")
				if(noticeIds==null)
					noticeIds=noticeId;
				else
					noticeIds+=","+noticeId;
				Cookie.set("noticeId",noticeIds);
			}
		}
		//showNotice();


		//poll
		function poll(pollId,pollType){
			var obj=document.getElementsByName("refID");
			var limit=document.getElementById("limit");
			var refString;
			if(pollType==1)
				refString=retRadioValue(obj);
			else
				refString=chooseValue(obj);
			if(refString==""){
				alert("投票之前请选择投票选项！");
			}else{
				JPollCata.votePoll(refString,pollId,limit.value,ajaxCallback);
			}
		}

		function ajaxCallback(data)
			{
				if(data == "1")
					alert("谢谢，投票成功！");
				if(data=="0")
					alert("投票已过期！");
			}

			function view(pollId){
				var url= '/Commons/VotePoll!getResults.shtml?poll.pollId='+pollId;
				ymPrompt.win({message:url,width:450,height:300,winPos:'c',title:'查看调查',useSlide:false,minBtn:true,maxBtn:true,handler:null,autoClose:true,iframe:true});
			}

		//init
		function init(){
			showNotice();
			var r="hot_job.jsp";
			var ind="com_index_1.jsp";
			var td=document.getElementById(r);
			td.style.backgroundImage="url('/images/commons/job_main.gif')";
			td.style.fontWeight="bold";
			var select=document.getElementById("select");
			select.value=r;
			//AJAXCALL("/html/job/"+r,"back");

			var td1=document.getElementById(ind);
			td1.style.backgroundImage="url('/images/commons/job_main.gif')";
			td1.style.fontWeight="bold";
			var selectCom=document.getElementById("selectCom");
			selectCom.value=ind;
			//AJAXCALL("/html/job/"+ind,"cback");
		}

		//change style
		function changeStyle(htmlName,select){
			var sel=document.getElementById(select.value);
			sel.style.background="url('/images/commons/job_subordination.gif')";
			sel.style.fontWeight="";

			var td=document.getElementById(htmlName);
			td.style.background="url('/images/commons/job_main.gif')";
			td.style.fontWeight="bold";
		}

		//招聘专栏
		function show(obj){
			var htmlName=obj.parentNode.id;
			var select=document.getElementById("select");
			eval(changeStyle(htmlName,select));
			select.value=htmlName;
			AJAXCALL("/html/job/"+htmlName,"back");
		}

		function back(doc){
			 if(doc){//判断是否返回了数据
      			 var div=document.getElementById("showJob");
      			 div.innerHTML=doc;
			    }else{
			       alert("错误！");
			    }
		}

		//行业招聘
		function showCom(obj){
			var htmlName=obj.parentNode.id;
			var select=document.getElementById("selectCom");
			changeStyle(htmlName,select);
			select.value=htmlName;
			AJAXCALL("/html/job/"+htmlName,"cback");
		}

		function cback(doc){
			 if(doc){//判断是否返回了数据
      			 var div=document.getElementById("showCom");
      			 div.innerHTML=doc;
			    }else{
			       alert("发生错误！");
			    }
		}
