// JavaScript Document
	function help(url,width,height,name)
	{
		if(height == 0)
		{
			height = 200;
		}
		if(width == 0)
		{
			width = 350;
		}
		window.open("../help/" + url,name,"width="+width+",height="+height+",left="+(window.screen.width-width)/2+",top="+(window.screen.height-(height+50))/2+'",menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes');
	}





<!--

/**删除用户输入的空格*/
function delnbsp(strs)
{
          var Finds=/ /g;
          strs=strs+strs.replace(Finds,"");
          return strs;
}
/**去掉前后空格*/
     String.prototype.trim=function()
     { 
 	
           return this.replace(/(^\s*)|(\s*$)/g,'');
      } 
/**输出连续的下拉列表并选中其中一项*/
function writeOptionAndSel(varFrom,varTo,varSel)
{
	var strSel;
	for(var i=varFrom;i<=varTo;i++)
	{
		if(i==varSel) strSel="selected";
		document.write("<option "+strSel+" VALUE="+i+">"+i+"</option>");
		strSel="";
	}
}


/**
*下拉列表的值的改变不显示第3级
*mainitem:主类表单元素
*subitem:子类表单元素
*catalog:分类(城市、职位类别等主要是方便函数的重用)
*limit2:第二级要加不限，1加
*selectitem子类默认选项
*curAreaId当前站点的areaId
*/
function selectOnchange(mainitem,subitem,catalog,selectitem,limit2)
{
	var flag = 0; //显示中文
	//if (document.location.href.indexOf("_En.jsp")=="-1") flag = 0; //显示中文
	setSubSelectItem(catalog,mainitem,subitem,flag,selectitem,limit2,'');
}

/**
*下拉列表的值的改变显示第3级
*mainitem:主类表单元素
*subitem:子类表单元素
*catalog:分类(城市、职位类别等主要是方便函数的重用)
*limit2:第二级要加不限，1加
*selectitem子类默认选项
*curAreaId当前站点的areaId
*/
function selectOnchangeNo3(mainitem,subitem,catalog,selectitem,limit2,curAreaId)
{
	var flag = 0; //显示中文
	//if (document.location.href.indexOf("_En.jsp")=="-1") flag = 0; //显示中文
	setSubSelectItem(catalog,mainitem,subitem,flag,selectitem,limit2,curAreaId);
}
/**
初始第1类菜单
*catalog：类别,job和city
*selectitem默认的选项id
*limit1:第1级要加不限,1加
*/
function initMainitem(mainitem,selectitem,limit1,catalog){
    var itemCount;
	var items = new Array();	
	if(catalog=='job')
	{
		itemCount = catelogCount;//职位数
		items = catelogs;//职位数组
	}else if(catalog=='city'){
		itemCount = catelogCountCity;//城市数
		items = catelogsCity;//城市数组		
	}
	if(limit1==1){
	  var opt=document.createElement("OPTION");
	  opt.text="不限";
	  opt.value="0";
	  mainitem.add(opt);
	}

    for (i=0;i<itemCount; i++){
	  if(items[i][4]==1){
        var opt=document.createElement("OPTION");
		opt.text=items[i][0];
		opt.value=items[i][3];
		if(selectitem==opt.value) {
          // var opttmp1=document.createElement("OPTION");
	       //opttmp1.text="不限";
	       //opttmp1.value="";
	       //mainitem.add(opttmp1);
    	   mainitem.add(opt);
		   opt.selected=true; 
		}else{
		   mainitem.add(opt);
		}
	  }
	}
}
/**
*设置子类表单元素的值
*catalog：类别,job和city
*mainitem：主对象
*subitem：子对象
*flag：标志位
*selectitem 子类默认选项
*limit2:第二级要加不限，1加
*/
function setSubSelectItem(catalog,mainitem,subitem,flag,selectitem,limit2,curAreaId)
{
	var itemCount;
	var items = new Array();
	var subvalue=mainitem.options[mainitem.selectedIndex].value;//上一级的id
	//if(subvalue=="不限") {
	 // subvalue=mainitem.options[mainitem.selectedIndex+1].value;
	  //alert(subvalue);
	//}
	subitem.length = 0;
	
	if(catalog=='job')
	{
		itemCount = catelogCount;//职位数
		items = catelogs;//职位数组
	}else if(catalog=='city'){
		itemCount = catelogCountCity;//城市数
		items = catelogsCity;//城市数组		
	}
		var opt=document.createElement("OPTION");
		//if((subvalue == '') || (subvalue=='0')||limit2==1)
		if(limit2==1)
		{            
			opt.text="不限";
			opt.value=subvalue;            
			subitem.add(opt);
		}
			
		j=0;

       for (i=0;i<itemCount; i++)
		{
			if (items[i][2] == subvalue)//数组是否到达已选父菜单
			{
				if ( i<itemCount-1)
				{
					if(!(catalog=='city'&&curAreaId!='63'&&items[i+1][4]==3)){
					  var opt=document.createElement("OPTION");
					  if (flag==1)  opt.text=items[i+1][1];
					  else  opt.text=items[i+1][0];
					  opt.value=items[i+1][3];					
					  if (items[i+1][2] == subvalue && i<itemCount-2)  {
						subitem.add(opt);
						j++;
					  }
					  if(selectitem==opt.value) opt.selected=true;
					}

				}
			}
		}
		
		if(j==0&&limit2!=1)//没有子类且没有不限，直接把父类加到子类
		{
			opt.text=mainitem.options[mainitem.selectedIndex].text;
			opt.value=subvalue;      
			subitem.add(opt);
		}		
	

}

function selectCheck(obj1, obj2)
{
	var m=document.thisForm;
	if(typeof(obj1.options[obj1.selectedIndex])=="unknown" || typeof(obj2.options[obj2.selectedIndex])=="unknown")
	{
		retrun ;
	}
	var idx1 = obj1.selectedIndex;
	var idx2 = obj2.selectedIndex;
	if (parseInt(obj1.value) > parseInt(obj2.value))
	{
		obj2.selectedIndex = idx1;
	}
}

//设定工作地区jobLocation
function setJobLocation(tObject){
            var strLocation="";
            for(var x=0;x<tObject.length;x++){
                strLocation=tObject.options[x].value +";" + strLocation;
            }
            var m=document.thisForm;
            if(typeof(m)=="object"){
                var jobLocation=m.JobLocation;
                if(typeof(jobLocation)=="object"){
                    jobLocation.value=strLocation;
                }
            }
}

//设定工作地区jobLocaPara参数
function setJobLocaPara(mObject,sObject,tObject)
{
    var iLen = tObject.length;
    var m=document.thisForm;
    if (iLen == 0)
    {
        if(typeof(m)=="object"){
            var p1 = m.jobLocation1_p;
            if(typeof(p1)=="object"){
                p1.value = mObject.options[mObject.selectedIndex].value;
            }
            var c1 = m.jobLocation1_c;
            if(typeof(c1)=="object"){
                c1.value = sObject.options[sObject.selectedIndex].value;
            }
        }
    }
    else if (iLen == 1)
    {
        if(typeof(m)=="object"){
            var p2 = m.jobLocation2_p;
            if(typeof(p2)=="object"){
                p2.value = mObject.options[mObject.selectedIndex].value;
            }
            var c2 = m.jobLocation2_c;
            if(typeof(c2)=="object"){
                c2.value = sObject.options[sObject.selectedIndex].value;
            }
        }
    }
    else if (iLen == 2)
    {
        if(typeof(m)=="object"){
            var p3 = m.jobLocation3_p;
            if(typeof(p3)=="object"){
                p3.value = mObject.options[mObject.selectedIndex].value;
            }
            var c3 = m.jobLocation3_c;
            if(typeof(c3)=="object"){
                c3.value = sObject.options[sObject.selectedIndex].value;
            }
        }
    }
}


//清除工作地区jobLocaPara参数
function delJobLocaPara(obj)
{
    //alert("hello 234");
    var m=document.thisForm;
    if(typeof(obj.options[obj.selectedIndex])=="unknown"){
        //alert("系统提示:请选择您想要移除的资料项!");
        //Object.focus();
        return;
    }
    var idx = obj.selectedIndex;
    //alert("idx="+idx);
    if (idx == 2)
    {
        if(typeof(m)=="object"){
            var p3 = m.jobLocation3_p;
            if(typeof(p3)=="object"){
                p3.value = '';
            }
            var c3 = m.jobLocation3_c;
            if(typeof(c3)=="object"){
                c3.value = ''
            }
        }
    }
    else if (idx == 1)
    {
        if(typeof(m)=="object"){
            var p3 = m.jobLocation3_p;
            var p2 = m.jobLocation2_p;
            if(typeof(p3)=="object"){
                if (typeof(p2)=="object") {
                   p2.value = p3.value;
                   p3.value = '';
                }
            }
            var c3 = m.jobLocation3_c;
            var c2 = m.jobLocation2_c;
            if(typeof(c3)=="object"){
                if (typeof(c2)=="object") {
                   c2.value = c3.value;
                   c3.value = '';
                }
            }
        }
    }
    else if (idx == 0)
    {
        if(typeof(m)=="object"){
            var p3 = m.jobLocation3_p;
            var p2 = m.jobLocation2_p;
            var p1 = m.jobLocation1_p;
            if(typeof(p3)=="object"){
                if (typeof(p1)=="object") {
                   p1.value = p2.value;
                }
                if (typeof(p2)=="object") {
                   p2.value = p3.value;
                   p3.value = '';
                }
            }
            var c3 = m.jobLocation3_c;
            var c2 = m.jobLocation2_c;
            var c1 = m.jobLocation1_c;
            if(typeof(c3)=="object"){
                if (typeof(c1)=="object") {
                   c1.value = c2.value;
                }
                if (typeof(c2)=="object") {
                   c2.value = c3.value;
                   c3.value = '';
                }
            }
        }
    }  //idx = 0

}
//more:obj1.value>obj2.value;less:obj1.value<obj2.value
function setSelected(obj1,obj2,oprate)
{
	//alert(obj1.name+obj1.value+"========"+obj2.name+obj2.value+"+++++++"+oprate);
	if(typeof(obj1)=="object" && typeof(obj2)=="object")
	{
		switch(oprate)
		{
			case "more":				
				if(parseInt(obj1.value)<parseInt(obj2.value))
				{
					//obj1.selectedIndex=obj2.selectedIndex+1;
					obj2.selectedIndex=obj2.defaultSelected;
					return false;	
				}		
				break;
			case "less":				
				if(parseInt(obj1.value)>parseInt(obj2.value))
				{
					//obj1.selectedIndex=obj2.selectedIndex-1;
					obj1.selectedIndex=obj1.defaultSelected;
					return false;
				}
				break;	
		}	
	}
}
//-->