 jQuery.extend(Array.prototype,{

remove:function(item){

var array=this.clone();

this.length=0;

for(var i=0;

i<array.length;

i++){

if(array[i].id!=item)this.push(array[i]);

} return this;

} ,has:function(item){

for(var i=0;

i<this.length;

i++){

if(this[i]==item)return true;

if(typeof item=="object"&&this[i].id==item.id)return true;

} return false;

} ,GetFather:function(item){

for(var i=0;

i<this.length;

i++){

if(this[i].parObj==null)continue;

if(this[i].parObj.id==item.id)return true;

if(typeof item=="object"&&this[i].id==item.id)return true;

} return false;

} ,findById:function(id){

for(var i=0;

i<this.length;

i++){

if(this[i].id==id)return this[i];

} return null;

} ,clear:function(){

this.length=0;

return this;

} ,clone:function(){

return[].concat(this);

}

} );

var requestFromStr={

QueryString:function(Str,val){

var uri=Str.substring(0,1)=="?"?Str:"?"+Str;

var re=new RegExp("[&?]"+val+"=([^&?]*)","ig");

return((uri.match(re))?(uri.match(re)[0].substr(val.length+2)):"");

}

} ;

function locConverter(locIDs){

var arrLoc=locIDs.split(",");

var temp=[];

for(var i=0;

i<arrLoc.length;

i++){

temp.push(ConverterLocation(arrLoc[i]));

} return temp;

} function traversal(id,items){

var p=items.findById(id);

if(p!=null){

return{

id:p.id,name:p.name,parObj:null

} ;

} else{

var subItems,c;

for(var i=0;

i<items.length;

i++){

p=items[i];

c=p.subItems.findById(id);

if(c!=null)return{

id:c.id,name:c.name,parObj:{

id:p.id,name:p.name,parObj:null

}

} ;

}

} return null;

} function dbcToSbc(str){

return str.replace(/（/g,"(").replace(/）/g,")");

} var PopupSelector={

loadSelected:function(url){

var temp=[];

var selFunParentIDs=requestFromStr.QueryString(url,"FunctionParentIDList");

if(selFunParentIDs.indexOf(",")>0)selFunParentIDs=selFunParentIDs.split(",");

else{

selFunParentIDs=selFunParentIDs.replace(/%2C/g,"%2c");

selFunParentIDs=selFunParentIDs.split("%2c");

} var selFunIDs=requestFromStr.QueryString(url,"FunctionIDList");

if(selFunIDs.indexOf(",")>0)selFunIDs=selFunIDs.split(",");

else{

selFunIDs=selFunIDs.replace(/%2C/g,"%2c");

selFunIDs=selFunIDs.split("%2c");

} var addFunID=requestFromStr.QueryString(url,"addFunctionIDList");

if(addFunID!=""){

selFunIDs.clear();

selFunIDs[0]=addFunID;

} this._selItems["fun"].clear();

var addFuns=getFunction();

if(addFunID!=""||selFunParentIDs==""){

var funItem;

for(var i=0;

i<selFunIDs.length;

i++){

funItem=traversal(selFunIDs[i],addFuns);

if(funItem!=null){

this._selItems["fun"].push(funItem);

temp.push(funItem.name);

}

}

} if(selFunIDs.length>0&&selFunIDs[0]!=""&&selFunParentIDs!=""&&addFunID==""){

for(var i=0;

i<selFunParentIDs.length;

i++){

if(selFunParentIDs[i]==selFunIDs[i]){

if(selFunIDs[i]!=255){

var funItem=addFuns.findById(selFunIDs[i]);

this._selItems["fun"].push({

id:funItem.id,name:funItem.name,parObj:null

} );

temp.push(funItem.name);

}

} else{

var parCatItem=addFuns.findById(selFunParentIDs[i]);

var subCatItem=parCatItem.subItems.findById(selFunIDs[i]);

this._selItems["fun"].push({

id:subCatItem.id,name:subCatItem.name,parObj:{

id:parCatItem.id,name:parCatItem.name,parObj:null

}

} );

temp.push(subCatItem.name);

}

}

} if(temp.length!=0){

$("#txtFunction").val(temp.join("+"));

} else{


$("#txtFunction").val("请选择职位类别");

} temp.length=0;

var selLocParentIDs=requestFromStr.QueryString(url,"LocationParentIDList");

selLocParentIDs=locConverter(selLocParentIDs.replace(/%2C/g,"%2c").replace(/%2c/g,","));

var selLocIDs=requestFromStr.QueryString(url,"LocationIDList");

selLocIDs=locConverter(selLocIDs.replace(/%2C/g,"%2c").replace(/%2c/g,","));

var addLocID=requestFromStr.QueryString(url,"addLocIDList");

if(addLocID!=""){

selLocIDs.clear();

selLocIDs[0]=addLocID;

} this._selItems["loc"].clear();

var allLocs=getLocation()  ;

if(addLocID!=""||selLocParentIDs==""){

var locItem;

for(var i=0;

i<selLocIDs.length;

i++){

locItem=traversal(selLocIDs[i],allLocs);

if(locItem!=null){

this._selItems["loc"].push(locItem);

temp.push(locItem.name);

}

}

} if(selLocIDs.length>0&&selLocIDs[0]!=""&&selLocParentIDs!=""&&addLocID==""){

for(var i=0;

i<selLocParentIDs.length;

i++){

if(selLocParentIDs[i]==selLocIDs[i]){

if(selLocIDs[i]!=255){

var locItem=allLocs.findById(selLocIDs[i]);

this._selItems["loc"].push({

id:locItem.id,name:locItem.name,parObj:null

} );

temp.push(locItem.name);

}

} else{

if(selLocParentIDs[i]!="-1"){

var parLocItem=allLocs.findById(selLocParentIDs[i]);

var subLocItem=parLocItem.subItems.findById(selLocIDs[i]);

this._selItems["loc"].push({

id:subLocItem.id,name:subLocItem.name,parObj:{

id:parLocItem.id,name:parLocItem.name,parObj:null

}

} );

temp.push(subLocItem.name);

} else{

locItem=traversal(selLocIDs[i],allLocs);

if(locItem!=null){

this._selItems["loc"].push(locItem);

temp.push(locItem.name);

}

}

}

}

} 

var jobName=requestFromStr.QueryString(url,"positionName");
//jobName=jobName.replace(/\+/g," ");

var CompName=requestFromStr.QueryString(url,"CompanyName");
//CompName=CompName.replace(/\+/g," ");

if(jobName!=""){

jobName=UrlDecode(jobName).replace(/，/g,"/").replace(/\,/g,"/"); //(htmlEncode(UrlDecode(jobName).replace(/，/g,"/").replace(/\,/g,"/")));

$("#txtKeys").val(jobName);

$('#SelectJob').click(function(){

$("#radJob")[0].checked=true;

} );

}else if(CompName!="")
{
CompName=UrlDecode(CompName).replace(/，/g,"/").replace(/\,/g,"/"); //(htmlEncode(UrlDecode(CompName).replace(/，/g,"/").replace(/\,/g,"/")));
$("#txtKeys").val(CompName);

$('#SelectCom').click(function()
{
$("#radComp")[0].checked=true;
} );
}
else
{
$("#txtKeys").val("结果中包含该关键词");

}




if(temp.length!=0){

$("#txtLocation").val(temp.join("+"));

} else{

$("#txtLocation").val("请选择工作地点");

} temp.length=0;

var selIndIDs=requestFromStr.QueryString(url,"IndustryIDList");

selIndIDs=ConverterIndustry(selIndIDs.replace(/%2C/g,"%2c").replace(/%2c/g,",")).split(",");

var addIndID=requestFromStr.QueryString(url,"addIndustryIDList");

var allInds=getIndustry()  ;

var addIndItem=allInds.findById(addIndID);

this._selItems["ind"].clear();

if(addIndItem!=null){

this._selItems["ind"].push({

id:addIndItem.id,name:addIndItem.name,parObj:null

} );

temp.push(addIndItem.name);

} if(selIndIDs.length>0&&selIndIDs[0]!=""&&addIndItem==null){

for(var i=0;

i<selIndIDs.length;

i++){

if(selIndIDs[i]!=255){

var indItem=allInds.findById(selIndIDs[i]);

if(indItem==null)continue;

this._selItems["ind"].push({

id:indItem.id,name:indItem.name,parObj:null

} );

temp.push(indItem.name);

}

}

} if(temp.length!=0){

$("#txtIndustry").val(temp.join("+"));

} else{

$("#txtIndustry").val("请选择行业类别");

} temp.length=0;


} 


,popup:function(type,ref){

if(this._box==null)this._box=$("#PopupSelector");

if(this._subBox==null)this._subBox=document.getElementById("subItems");

this._ref=ref;

this._type=type.toString().toLowerCase();

this._curItems=this._selItems[this._type].clone();

var offset=$(ref).offset();

this._style.left=offset.left;

this._style.top=offset.top;

this.render();

} ,render:function(){

var pos={

top:(this._style.top+this._style.offset.levelOne.Y),left:this._style.left+this._style.offset.levelOne.X

} ;

if(this._type!="fun"&&this._type!="comptype"){

if(document.location.href.toLowerCase().indexOf("searchjob.Master.com")>-1)pos.left-=(this._style.width[this._type]-384);

else if(this._type=="ind")pos.left=$($("#txtFunction")[0]).offset().left;

else if(this._type=="loc")pos.left=this._style.left-162;

} var remainHeight=$(window).height()-pos.top+document.documentElement.scrollTop;

if(remainHeight<this._style.height[this._type])pos.top=pos.top-(this._style.height[this._type]-remainHeight);

if(this._style.height[this._type]>$(window).height())pos.top=document.documentElement.scrollTop;

var pslayer=$("#pslayer");

for(var i=0;

i<this._types.length;

i++){

pslayer.removeClass(this._style.className.levelOne[this._types[i]]);

} pslayer.addClass(this._style.className.levelOne[this._type]);

$("#selectedHeader").html(this._gtYourSelected[this._type]);

$("#psHeader").html(this._gtPopupSelectorHeader[this._type]);

var html=[];

var parItems=this.allItems[this._type]();

var start=0;

var end=parItems.length;

if(this._type=="loc"){

start=1;

end=36;

$("#subHeaderAll").html("<span>所有省市：</span>");

$("#subHeaderOther").html("<span>其它国家和地区：</span>").show();

for(var i=end;

i<parItems.length;

i++){

html.push("<li id=$"+i+" class=\"nonelay\" name="+parItems[i].id+"><a href=\"###\">");

html.push("<label for=\"pcbx");

html.push(parItems[i].id);

html.push("\">");

html.push("<input id=\"pcbx");

html.push(parItems[i].id);

html.push("\" type=\"checkbox\" value=\"");

html.push(parItems[i].id);

html.push("@");

html.push(parItems[i].name);

html.push("\"");

if(this._curItems.has({

id:parItems[i].id,name:parItems[i].name,parObj:null

} ))html.push(" checked");

html.push(" onclick=\"PopupSelector.click("+i+",this, null,"+parItems[i].id+")\" />");

html.push(parItems[i].name);

html.push("</label>");

html.push("</a></li>");

} $("#subHeaderAll").show();

$("#subHeaderOther").show();

$("#allItems2").html(html.join("")).show();

} else{

$("#subHeaderAll").hide();

$("#subHeaderOther").hide();

$("#allItems2").hide();

} html=[];

for(var i=start;

i<end;

i++){

var parItem=parItems[i];

if(parItem.subItems&&parItem.subItems.length>1){

if(this._type!="ind"){

if(this._curItems.has({

id:parItem.id,name:parItem.name,parObj:null

} )||this._curItems.GetFather({

id:parItem.id,name:parItem.name,parObj:null

} ))

html.push("<li id=$"+i+" name="+parItem.id+" class=\"layicon\" onmouseover=\"PopupSelector.showSubItems(");

else html.push("<li id=$"+i+" name="+parItem.id+" onmouseover=\"PopupSelector.showSubItems(");

} else html.push("<li id=$"+i+" name="+parItem.id+" onmouseover=\"PopupSelector.showSubItems(");

html.push(i);

html.push(", this, true)\" onmouseout=\"PopupSelector.hideSubItems(this)\">");

} else{

if(this._curItems.has({

id:parItem.id,name:parItem.name,parObj:null

} ))

html.push("<li id=$"+i+" name="+parItem.id+" class=\"layon\">");

else html.push("<li id=$"+i+" name="+parItem.id+" class=\"nonelay\">");

} html.push("<a href=\"###\">");

if(this._type=="ind"||(this._type=="loc"&&parItem.subItems.length==1)){

html.push("<label for=\"pcbx");

html.push(parItem.id);

html.push("\">");

} html.push("<input id=\"pcbx");

html.push(parItem.id);

html.push("\" type=\"checkbox\" value=\"");

html.push(parItem.id);

html.push("@");

html.push(parItem.name);

html.push("\"");

if(this._curItems.has({

id:parItem.id,name:parItem.name,parObj:null

} ))html.push(" checked");

html.push(" onclick=\"PopupSelector.click(");

html.push(i+",this, null,"+parItem.id+")\" />");

html.push(dbcToSbc(parItem.name));

if(this._type=="ind"||(this._type=="loc"&&parItem.subItems.length==1)){

html.push("</label>");

} html.push("</a></li>");

} $("#allItems1").html(html.join("").toString());

html.length=0;

$("#divSelected").css("display",(this._curItems.length==0)?"none":"block");

var displayNoSelected=(this._curItems.length==0)?"block":"none";

if(this._type=="fun"){

$("#noSelectedFunction").css("display",displayNoSelected);

$("#noSelectedLocation").hide();

} else if(this._type=="loc"){

$("#noSelectedLocation").css("display",displayNoSelected);

$("#noSelectedFunction").hide();

} else{

$("#noSelectedFunction").hide();

$("#noSelectedLocation").hide();

} for(var i=0;

i<this._curItems.length;

i++){

html.push("<li id=\"");

html.push(this._curItems[i].id);

html.push("\"><a href=\"###\" onclick=\"PopupSelector.remove(");

html.push(this._curItems[i].id);

if(this._curItems[i].parObj!=null)html.push(","+this._curItems[i].parObj.id+")\">");

else html.push(")\">");

html.push(dbcToSbc(this._curItems[i].name));

html.push("</a></li>");

} $("#search_selecting").html(html.join(""));

if(this._type=="ind"){

$("#divSelected").show();

$("#search_selecting").hide();

} else $("#search_selecting").show();

$("#shield").width(this._style.width[this._type]).height(this._style.height[this._type]);

$(this._box).css(pos).show();

$("#mask").height($(document).height()).show();

} ,close:function(){

$("#mask").hide();

this._ref=null;

$(this._box).hide();

} ,OK:function()
{

var temp=[];

jQuery.each(this._curItems,function()
{

temp.push(this.name);

} );

if(temp.length!=0)
{

if(this._type=="fun")
{
 
$("#txtFunction").removeClass("inp_txt inp_txtsel inp_wl inp_cue");

$("#txtFunction").addClass("inp_txt inp_txtsel inp_wl");

}
 if(this._type=="loc"||this._type=="ind")
 {

$(this._ref).removeClass("inp_txt inp_txtsel inp_wm inp_cue");

$(this._ref).addClass("inp_txt inp_txtsel inp_wm");

} 
$(this._ref).val(dbcToSbc(temp.join("+")));


} else{

if(this._type=="fun"){

$("#txtFunction").removeClass("inp_txt inp_txtsel inp_wl");

$("#txtFunction").addClass("inp_txt inp_txtsel inp_wl inp_cue");

$(this._ref).val("请选择职位类别");

} if(this._type=="loc"){

$("#txtLocation").removeClass("inp_txt inp_txtsel inp_wm");

$("#txtLocation").addClass("inp_txt inp_txtsel inp_wm inp_cue");

$(this._ref).val("请选择工作地点");

} if(this._type=="ind"){

$("#txtIndustry").removeClass("inp_txt inp_txtsel inp_wm");

$("#txtIndustry").addClass("inp_txt inp_txtsel inp_wm inp_cue");

$(this._ref).val("请选择行业类别");

}

} this._ref=null;

this._selItems[this._type]=this._curItems.clone();

this._curItems.clear();

$("#search_selecting").html("");

$("#mask").hide();

$(this._box).hide();


}
 ,empty:function(){

$("#search_selecting").html("");

$("#allItems1 input").each(function(i){

this.checked=false;

} );

$("#allItems2 input").each(function(i){

this.checked=false;

} );

$("#allItems1 li").each(function(i){

if(this.className=="layicon")this.className="";

if(this.className=="layon")this.className="nonelay";

} );

this._curItems.clear();

PopupSelector.showtips();

} 

,click:function(ref,cbx,parObj){

if(cbx.checked&&this._curItems.length==this._maxSize){

alert(this._gtMaxLimit);

cbx.checked=false;

return;

} var item={

id:cbx.value.split("@")[0],name:cbx.value.split("@")[1],parObj:parObj

} ;

var search_selecting=document.getElementById("search_selecting");

var selItem=null;

if(cbx.checked){

selItem=document.createElement("li");

selItem.id=item.id;

if(parObj==null)selItem.innerHTML="<a href=\"###\" onclick=\"PopupSelector.remove("+item.id+",null);\">"+dbcToSbc(item.name)+"</a>";

else selItem.innerHTML="<a href=\"###\" onclick=\"PopupSelector.remove("+item.id+","+parObj.id+");\">"+dbcToSbc(item.name)+"</a>";

search_selecting.appendChild(selItem);

this._curItems.push(item);

if(parObj!=null){

document.getElementById('^'+ref).className="layon";

var id=parObj.id;

$("li[@name="+id+"]").addClass("layicon");

} this.showHideSelecting(this);

} else{

selItem=document.getElementById(item.id);

search_selecting.removeChild(selItem);

this._curItems.remove(item.id);

if(parObj!=null){

document.getElementById('^'+ref).className="";

var id=parObj.id;

if($("#subItems ol").html().indexOf('CHECKED')<0)$("li[@name="+id+"]").removeClass("layicon");

} PopupSelector.showtips();

} if(parObj==null){

var parItems=this.allItems[this._type]();

parItem=parItems[ref];

if(cbx.checked){

if(parItem.subItems&&parItem.subItems.length>1)document.getElementById('$'+ref).className="layicon";

else document.getElementById('$'+ref).className="layon";

} else{

if((parItem.subItems&&parItem.subItems.length>1))document.getElementById('$'+ref).className="";

else document.getElementById('$'+ref).className="nonelay";

} var array=this._curItems.clone();

this._curItems.clear();

for(var i=0;

i<array.length;

i++){

if(array[i].parObj!=null&&array[i].parObj.id==item.id){

search_selecting.removeChild(document.getElementById(array[i].id));

} else{

this._curItems.push(array[i]);

}

} 

$("#subItems input").each(function(i){

this.checked=this.disabled=cbx.checked;

} );

if(cbx.checked)$("#subItems li").each(function(i){

this.className="layon";

} );

else $("#subItems li").each(function(i){

this.className="";

} );
}
} ,showtips:function(){

if(this._curItems.length==0){

if(this._type!="ind")$("#divSelected").css("display","none");

if(this._type=="fun"){

$("#noSelectedLocation").hide();

$("#noSelectedFunction").show();

} if(this._type=="loc"){

$("#noSelectedFunction").hide();

$("#noSelectedLocation").show();
}
}
} ,remove:function(id,parObj){

document.getElementById("search_selecting").removeChild(document.getElementById(id));

var pcbx=document.getElementById("pcbx"+id);

if(pcbx)pcbx.checked=false;

var pc=document.getElementById(id);

if(pc)pcbx.checked=false;

var array=this._curItems.clone();

this._curItems.clear();

for(var i=0;

i<array.length;

i++){

if(array[i].id!=id)this._curItems.push(array[i]);

} if(parObj==null){

$("li[@name="+id+"]").removeClass("layicon");

$("li[@name="+id+"]").removeClass("layon");

var parItems=this.allItems[this._type]();

for(var j=0;

j<parItems.length;

j++){

var parItem=parItems[j];

if(parItem.id==id){

if(parItem.subItems&&parItem.subItems.length==1)$("li[@name="+id+"]").addClass("nonelay");

}

}

} else if(!(this._curItems.GetFather({

id:parObj,name:null,parObj:null

} )))

$("li[@name="+parObj+"]").removeClass("layicon");

PopupSelector.showtips();

} ,showHideSelecting:function(selector){

$("#noSelectedFunction").hide();

$("#noSelectedLocation").hide();

if(selector._curItems.length>0){

$("#divSelected").show();

}

} ,showSubItems:function(index,ref,isDelay,ev){

var subItems=$("#subItems");

if(this._hideTimer)clearTimeout(this._hideTimer);

if(this._showTimer)clearTimeout(this._showTimer);

if(index==this._lastPopupIndex&&subItems.css("display")=="block"){

$(ref).addClass("layshow");

return;

} if(!isDelay)loadSubItems(index,ref,this);

var self=this;

this._showTimer=setTimeout(function(){

loadSubItems(index,ref,self);

} ,this._delay);

function loadSubItems(index,ref,self){

var parItem=self.allItems[self._type]()[index];

var offset=$(ref).offset();

var pos={

top:offset.top+self._style.offset.levelTwo[self._type].Y,left:offset.left+self._style.offset.levelTwo[self._type].X

} ;

var actualSubItemCount=parItem.subItems.length-1;

var calItemCount=(actualSubItemCount%2==0)?actualSubItemCount/2:(actualSubItemCount/2+1);

if(actualSubItemCount<=self._oneColumnLimit[self._type])calItemCount=actualSubItemCount;

//---------------------控制二级弹出框位置-----------------------------------------------------------

//二级弹出框高度
var subBoxHeight=self._style.lineHeight*parseInt(calItemCount)+self._style.topBottomMargin;
//windows高度
var winHeight=$(window).height();

var remainHeight=winHeight-pos.top+document.documentElement.scrollTop;

//如果是负值则修改成正值
if(remainHeight<0) remainHeight = -remainHeight;

if(remainHeight<subBoxHeight)pos.top=pos.top-(subBoxHeight-remainHeight);

if(subBoxHeight>winHeight)pos.top=document.documentElement.scrollTop;
pos.left =offset.left+self._style.offset.levelTwo[self._type].X/3;


//---------------------------------------------------------------------------------------------------

var parentChecked=(ref.getElementsByTagName("input")[0].checked==true)?" checked disabled ":"";

var item={

id:parItem.id,name:parItem.name,parObj:null

} ;

var html=[];

html.push("<ol >");

for(var i=1;

i<parItem.subItems.length;

i++){

var subItem=parItem.subItems[i];

subItem.parObj=item;

if(ref.getElementsByTagName("input")[0].checked==true||self._curItems.has(subItem)){

html.push("<li id=^"+i+" class=\"layon\"  >");

} else html.push("<li id=^"+i+"  >");

html.push("<a href=\"###\"><label for=\"scbx");

html.push(subItem.id);

html.push("\"><input id=\"scbx");

html.push(subItem.id);

html.push("\" type=\"checkbox\" value=\"");

html.push(subItem.id);

html.push("@");

html.push(subItem.name);

html.push("\"");

html.push(parentChecked);

if(self._curItems.has(subItem))html.push(" checked");

html.push(" onclick=\"PopupSelector.click("+i+",this, { id: ");

html.push(parItem.id);

html.push(", name: '");

html.push(parItem.name);

html.push("', parObj: null }");

html.push(",'')\" />");

html.push(dbcToSbc(subItem.name));

html.push("</label></a></li>");

} html.push("</ol>");

var sublay=$("#sublay");

for(var i=0;

i<self._types.length;

i++){

subItems.removeClass(self._style.className.levelTwo1[self._types[i]]);

subItems.removeClass(self._style.className.levelTwo2[self._types[i]]);

} var levelTwo=(actualSubItemCount>self._oneColumnLimit[self._type])?self._style.className.levelTwo2[self._type]:self._style.className.levelTwo1[self._type];

if(self._type=="loc"){

if(parItem.id=="8000"||parItem.id=="15000"){

levelTwo=self._style.className.levelTwo1[self._type];

}

} self._lastPopupIndex=index;

$("#subItems").hover(function(e){

self.showSubItems(index,ref,true,e);

} ,function(e){

self.hideSubItems(ref);

} );

sublay.html(html.join(""));

subItems.addClass(levelTwo).css(pos).show();

}

} ,hideSubItems:function(ref){

$(ref).removeClass("layshow");

if(this._showTimer)clearTimeout(this._showTimer);

if(this._hideTimer)clearTimeout(this._hideTimer);

this._hideTimer=setTimeout(function(){

$("#subItems").hide();

} ,100);

} ,_showTimer:null,_hideTimer:null,_lastPopupIndex:null,_box:null,_subbox:null,_ref:null,_type:null,_types:["fun","ind","loc","comptype"],_maxSize:5,_curItems:[],_selItems:{

fun:[],loc:[],ind:[],comptype:[]

} ,_gtMaxLimit:"对不起,您的已选项已经达到了5项.请减少已选项,再继续选择",_gtYourSelected:{

fun:"您选择的职位类别是：",ind:"您最多可以选择５个行业类别",loc:"您选择的工作地点是：",comptype:"您选择的公司性质是："

} ,_gtPopupSelectorHeader:{

fun:"请选择职位类别",ind:"请选择行业类别",loc:"请选择工作地点",comptype:"请选择公司性质"

} ,_oneColumnLimit:{

fun:12,loc:11

} ,_delay:500,_style:{

className:{

levelOne:{

"fun":"area_wl","loc":"area_wls","ind":"area_wll","comptype":"area_wms"

} ,levelTwo1:{

"fun":"area_wm","loc":"area_wss","ind":"","comptype":""

} ,levelTwo2:{

"fun":"area_wl2","loc":"area_ws","ind":"","comptype":""

}

} ,left:0,top:0,width:{

"fun":600,"loc":470,"ind":750,"comptype":360

} ,height:{

"fun":520,"loc":420,"ind":510,"comptype":175

} ,lineHeight:20,topBottomMargin:17,offset:{

levelOne:{

X:0,Y:20

} ,levelTwo:{

"fun":{

X:284,Y:0

} ,"loc":{

X:85,Y:0

}

}

}

} ,allItems:{

fun:function(){

return getFunction();

} ,ind:function(){

return getIndustry();

} ,loc:function(){

return getLocation();

} ,comptype:function(){

return getCompanyType();

}

}

} ;

$(document).ready(function(){

$("#txtFunction").click(function(){

PopupSelector.popup("fun",this);

} );

$("#txtIndustry").click(function(){

PopupSelector.popup("ind",this);

} );

$("#txtLocation").click(function(){

PopupSelector.popup("loc",this);

} );

$("#txtFunctionDrop").click(function(){

PopupSelector.popup("fun",$("#txtFunction")[0]);

} );

$("#txtIndustryDrop").click(function(){

PopupSelector.popup("ind",$("#txtIndustry")[0]);

} );

$("#txtLocationDrop").click(function(){

PopupSelector.popup("loc",$("#txtLocation")[0]);

} );

$("#inpEmpty").click(function(){

PopupSelector.empty();

} );

$("#lnkCancel").click(function(){

PopupSelector.cancel();

} );

$("#inpOK").click(function(){

PopupSelector.OK();

} );

$("#btnOkFun").click(function(){

PopupSelector.OK();

} );

$("#btnOkLoc").click(function(){

PopupSelector.OK();

} );

$("#btnClose").click(function(){

PopupSelector.close();

} );

} );

