function licolor(d,c1,c2)
{		
	if(document.getElementById(d)!=null){var TagsTit=document.getElementById(d).getElementsByTagName('li');	
	for(var i=0;i<TagsTit.length;i++)
	{	
		var j=(i-i%2)/2;
		var m=j%2;		
		if(m==1)
		{
			TagsTit[i].style.background=c2;			
		}
		else
		{
			TagsTit[i].style.background=c1;
		}					
	}
	}
}
function tablecolor(d,c1,c2)
{	
	if(document.getElementById(d)!=null){var TagsTit=document.getElementById(d).getElementsByTagName('tr');	
	for(var i=0;i<TagsTit.length;i++)
	{			
		var j=i+1;
		var m=j%2;		
		if(m==1)
		{
			TagsTit[i].style.background=c1;
		}
		else
		{
			TagsTit[i].style.background=c2;
		}					
	}
	}
}

function showhidden(obj)
{
	if(obj.className=="show")
	{
		obj.className="";
	}
	else
	{
		obj.className="show";
	}
}

var guidehtml="";
function showguide(){
	document.getElementById("jobkindlist").innerHTML=guidehtml;

}function loginpass(lform){
	if(lform.username.value.length<3){
		lform.username.focus();
		alert('请输入正确用户名');
	}else if(lform.password.value.length<6){
		lform.password.focus();
		alert('请输入正确的密码');
	}else{
		lform.elements["regname"].value=lform.username.value;
		//lform.elements["prinfo.passwd"].value=lform.password.value;
		var v=lform.logintype.value;		
		if(v==1){
				lform.action="/jobmail/login.ct?m=login";
				lform.submit();
		}else if(v==2){
				lform.action="/seeker/seekerreg.ct?m=login";
				lform.submit();
		}
	}
}
function regvip(){
	window.location.href="/jobmail/reg/reginfo.jsp";
}
function regmy(){
	window.location.href="/seeker/seekerreg.do?m=reg";
}

function checkviplogin(){
	
	document.getElementById("checkloginitem").innerHTML='<iframe id="iframehidden" marginwidth=0 marginheight=0 frameborder=0 height="180" width="100%"  name="iframehidden" scrolling="no" align="top" src="/jobmail/login.ct" ></iframe>';
   
}
function checkmylogin(){
}
function viploginok(){
	window.location.href='/jobmail/enterHomePage.ct?motion=enterHome';
}
function myloginok(){
	window.location.href='/seeker/manager.ct?m=home';
}
function vipgetpasswd(){
	window.open('/jobmail/reg/forgetpwd.jsp');
}
function mygetpasswd(){
	window.open('/seeker/forgetpwd.jsp');
}
function showmailencode(elid,mess,defaultvalue){
	var eel=document.getElementById(elid);
	if(eel!=null){
		email=mess.substring(2,mess.length-3);
		if(email=="@"){
			document.getElementById(elid).innerHTML=defaultvalue;
		}else if(email.length>3){
			showemailcontent="<a href='mailto:";
			showemailcontent+=email;			
			showemailcontent+="'>";
			showemailcontent+=email;
			showemailcontent+="</a>";
			eel.innerHTML=showemailcontent;
		}else{
			eel.innerHTML=defaultvalue;
		}
	}
}
function showmessencode(elid,mess,defaultvalue){
	info=mess.substring(2,mess.length-3);
	document.getElementById("elid").innerHTML=info;	
}



function showmm(){
	var webmm=document.getElementById("webmm");
	if(webmm!=null){
		var showmm="web_work";
		showmm+="@";
		showmm+="163";
		showmm+=".com";
		webmm.innerHTML="<a href='tomail:"+showmm+"' target='_self'>"+showmm+"</a>";
	}
}
function showpp(){
	var webmm=document.getElementById("webpp");
	if(webmm!=null){
		webmm.innerHTML="400"+"-"+"600"+"-"+"6528";
	}
}

function showfoot(){
	webmm.innerHTML="400"+"-"+"600"+"-"+"6528";
}

function menusi(elid){
	if(document.getElementById("industrylei")!=null){
	var children=document.getElementById("industrylei").getElementsByTagName("ul");
	
	for(var i=0;i<children.length;i++){
		if(children[i].id=='b'+elid){
			children[i].className="show";
		}else{			
			children[i].className="";
		}
	}
	}
}
var homead=null;
var kuangad1=null;
var kuangad2=null;
var adtop=null;
function showhomead(){
	if(homead!=null){
		document.write(homead);
	}
	if(kuangad1!=null){
		document.getElementById("ad1").innerHTML=kuangad1;
	}
	if(kuangad2!=null){
		document.getElementById("ad2").innerHTML=kuangad2;
	}
	if(adtop!=null){
		document.getElementById("adtop").innerHTML=adtop;
	}
}

function viewjob(uid){
	window.open("/view/job"+uid+".html");
}
function showjl(uid){
	window.open("/vip/showjl.jsp?eid"+uid);
}
function viewcorp(uid){
	window.open("/view/corp"+uid+".html");
}
function showLocal(cityname,cityfolder,cityid){
	document.getElementById("yourlocal").innerHTML="欢迎您来自"+cityname+"的朋友,<a href='/"+cityfolder+"/#mylocal'>立即进入"+cityname+"幼师招聘网&gt;&gt;</a>";
	document.getElementById("yourlocal").style.display="block";
}
