var DATA_ITEM_CANDIDATE=100;var DATA_ITEM_COMPANY=200;var DATA_ITEM_CONTACT=300;var DATA_ITEM_JOBORDER=400;function stringIsNumeric(a){for(var b=0;b<a.length;b++){var c=a.charAt(b);if((c<"0")||(c>"9")){return false}}return true}function hideParentBlock(a){element=parent.document.getElementById(a);element.parentNode.removeChild(element)}function showParentBlock(a){element=parent.document.getElementById(a);element.parentNode.removeChild(element)}function openCenteredPopup(e,d,f,a,c){var b;b="width="+f+",height="+a;b+=",top="+((screen.availHeight-a)/2)+",left="+((screen.availWidth-f)/2);b+=",scrollbars=";b+=(c?"yes":"no");newWindow=window.open(e,d,b);if(window.focus){newWindow.focus()}}function goToURL(a){window.location=a}function parentGoToURL(a){parent.window.location=a}function parentHidePopWinRefresh(){parent.hidePopWinRefresh()}function parentSetPopTitle(a){parent.setPopTitle(a)}function serializeArray(c){var a="a:"+c.length+":{";for(var b=0;b<c.length;++b){a+="i:"+b+";s:"+String(c[b]).length+':"'+String(c[b])+'";'}return a+"}"}function trim(a){return a.replace(/^\s*|\s*$/g,"")}function AJAX_callCATSFunction(f,c,b,g,j,a,h,d){var e="f="+f+"&"+c;if(h){e+="&nobuffer=true"}if(j){e+="&"+j}if(!d){d="html"}callTimeout=5000;if(g){callTimeout=g}else{if(a){callTimeout=a}}if(!b){b=function(k){alert(k)}}jQuery.ajax({type:"POST",dataType:d,url:"/ajax.php",data:e,cache:false,timeout:callTimeout,success:b})}showFullDescription=false;showFullNotes=false;function toggleDescription(){var b=document.getElementById("shortDescription");var a=document.getElementById("fullDescription");toggleNode(showFullDescription,b,a);if(showFullDescription==true){showFullDescription=false}else{showFullDescription=true}}function toggleNotes(){var b=document.getElementById("shortNotes");var a=document.getElementById("fullNotes");toggleNode(showFullNotes,b,a);if(showFullNotes==true){showFullNotes=false}else{showFullNotes=true}}function toggleNode(c,b,a){if(c==true){b.style.display="block";a.style.display="none"}else{b.style.display="none";a.style.display="block"}}function CityState_populate(a,c){var b=document.getElementById(a).value;POSTData="";if(b){POSTData=POSTData+"&zip="+encodeURIComponent(b)}if(jQuery("#city").val()){POSTData=POSTData+"&city="+encodeURIComponent(jQuery("#city").val())}if(getSelectedIndex("state")){POSTData=POSTData+"&state="+getSelectedIndex("state")}if(POSTData==""){alert("Zip, or city and state, must be supplied");return}var d=function(f){if(jQuery(f).find("errorcode").text()=="-1"){var e="An error occurred while receiving a response from the server.\n\n"+jQuery(f).find("errormessage").text();alert(e);return}var g=jQuery(f).find("city").text();var j=jQuery(f).find("state").text();var h=jQuery(f).find("zip").text();if(g&&document.getElementById("city")){document.getElementById("city").value=g}if(j&&document.getElementById("state")){selectValue(document.getElementById("state"),j)}if(document.getElementById(a)&&h){document.getElementById(a).value=h}};AJAX_callCATSFunction("zipLookup",POSTData,d,0,null,false,false,"xml")}function getCheckedValue(b){if(!b){return""}var c=b.length;if(typeof(c)=="undefined"){if(b.checked){return b.value}return""}for(var a=0;a<c;a++){if(b[a].checked){return b[a].value}}return""}function setCheckedValue(b,d){if(!b){return}var c=b.length;if(typeof(c)=="undefined"){b.checked=(b.value==d.toString());return}for(var a=0;a<c;a++){b[a].checked=false;if(b[a].value==d.toString()){b[a].checked=true}}}function docjslib_getRealLeft(imgElem){var xPos=eval(imgElem).offsetLeft;var tempEl=eval(imgElem).offsetParent;while(tempEl!=null){xPos+=tempEl.offsetLeft;tempEl=tempEl.offsetParent}return xPos}function docjslib_getRealTop(imgElem){var yPos=eval(imgElem).offsetTop;var tempEl=eval(imgElem).offsetParent;while(tempEl!=null){yPos+=tempEl.offsetTop;tempEl=tempEl.offsetParent}return yPos}function findValueInArray(c,b){for(var a=0;a<c.length;a++){if(c[a]==b){return a}}return -1}function findValueInSelectList(b,c){for(var a=0;a<b.length;a++){if(b[a].value==c){return a}}return -1}if(Array.prototype.inArray==null){Array.prototype.inArray=function(b){var a;for(a=0;a<this.length;a++){if(this[a]===b){return true}}return false}}if(Array.prototype.push==null){Array.prototype.push=function(){for(var a=0;a<arguments.length;a++){this[this.length]=arguments[a]}return this.length}}var EventCache=function(){var a=[];return{listEvents:a,add:function(e,c,d,b){a.push(arguments)},flush:function(){var b,c;for(b=a.length-1;b>=0;b=b-1){c=a[b];if(c[0].removeEventListener){c[0].removeEventListener(c[1],c[2],c[3])}if(c[1].substring(0,2)!="on"){c[1]="on"+c[1]}if(c[0].detachEvent){c[0].detachEvent(c[1],c[2])}c[0][c[1]]=null}}}}();function addEvent(d,c,b,a){if(d.addEventListener){d.addEventListener(c,b,a);EventCache.add(d,c,b,a)}else{if(d.attachEvent){d["e"+c+b]=b;d[c+b]=function(){d["e"+c+b](window.event)};d.attachEvent("on"+c,d[c+b]);EventCache.add(d,c,b,a)}else{}}}function removeEvent(d,c,b,a){if(d.removeEventListener){d.removeEventListener(c,b,a);return true}if(d.detachEvent){return d.detachEvent("on"+c,b)}}function checkQuickSearchForm(b){var c=document.getElementById("quickSearchFor").value;var a=document.getElementById("quickSearchLabel");if(c==""){a.style.color="#ff0000";return false}a.style.color="#000";return true}function execJS(text){var working=text;var pos=working.indexOf("<script");while(pos!=-1){working=working.substring(pos);pos=working.indexOf(">");if(pos==-1){return}working=working.substring(pos);pos=working.indexOf("<\/script>");var js=working.substring(1,pos);working=working.substring(pos);pos=working.indexOf("<script");eval(js)}}var md5=function(t){function M(b,a){return(b<<a)|(b>>>(32-a))}function L(k,b){var F,a,d,x,c;d=(k&2147483648);x=(b&2147483648);F=(k&1073741824);a=(b&1073741824);c=(k&1073741823)+(b&1073741823);if(F&a){return(c^2147483648^d^x)}if(F|a){if(c&1073741824){return(c^3221225472^d^x)}else{return(c^1073741824^d^x)}}else{return(c^d^x)}}function s(a,c,b){return(a&c)|((~a)&b)}function r(a,c,b){return(a&b)|(c&(~b))}function q(a,c,b){return(a^c^b)}function o(a,c,b){return(c^(a|(~b)))}function v(G,F,ab,aa,k,H,I){G=L(G,L(L(s(F,ab,aa),k),I));return L(M(G,H),F)}function f(G,F,ab,aa,k,H,I){G=L(G,L(L(r(F,ab,aa),k),I));return L(M(G,H),F)}function E(G,F,ab,aa,k,H,I){G=L(G,L(L(q(F,ab,aa),k),I));return L(M(G,H),F)}function u(G,F,ab,aa,k,H,I){G=L(G,L(L(o(F,ab,aa),k),I));return L(M(G,H),F)}function e(k){var G;var d=k.length;var c=d+8;var b=(c-(c%64))/64;var F=(b+1)*16;var H=Array(F-1);var a=0;var x=0;while(x<d){G=(x-(x%4))/4;a=(x%4)*8;H[G]=(H[G]|(k.charCodeAt(x)<<a));x++}G=(x-(x%4))/4;a=(x%4)*8;H[G]=H[G]|(128<<a);H[F-2]=d<<3;H[F-1]=d>>>29;return H}function C(c){var b="",d="",k,a;for(a=0;a<=3;a++){k=(c>>>(a*8))&255;d="0"+k.toString(16);b=b+d.substr(d.length-2,2)}return b}function K(b){b=b.replace(/\r\n/g,"\n");var a="";for(var k=0;k<b.length;k++){var d=b.charCodeAt(k);if(d<128){a+=String.fromCharCode(d)}else{if((d>127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a}var D=Array();var Q,h,J,w,g,Z,Y,X,W;var T=7,R=12,O=17,N=22;var B=5,A=9,z=14,y=20;var p=4,n=11,m=16,l=23;var V=6,U=10,S=15,P=21;t=K(t);D=e(t);Z=1732584193;Y=4023233417;X=2562383102;W=271733878;for(Q=0;Q<D.length;Q+=16){h=Z;J=Y;w=X;g=W;Z=v(Z,Y,X,W,D[Q+0],T,3614090360);W=v(W,Z,Y,X,D[Q+1],R,3905402710);X=v(X,W,Z,Y,D[Q+2],O,606105819);Y=v(Y,X,W,Z,D[Q+3],N,3250441966);Z=v(Z,Y,X,W,D[Q+4],T,4118548399);W=v(W,Z,Y,X,D[Q+5],R,1200080426);X=v(X,W,Z,Y,D[Q+6],O,2821735955);Y=v(Y,X,W,Z,D[Q+7],N,4249261313);Z=v(Z,Y,X,W,D[Q+8],T,1770035416);W=v(W,Z,Y,X,D[Q+9],R,2336552879);X=v(X,W,Z,Y,D[Q+10],O,4294925233);Y=v(Y,X,W,Z,D[Q+11],N,2304563134);Z=v(Z,Y,X,W,D[Q+12],T,1804603682);W=v(W,Z,Y,X,D[Q+13],R,4254626195);X=v(X,W,Z,Y,D[Q+14],O,2792965006);Y=v(Y,X,W,Z,D[Q+15],N,1236535329);Z=f(Z,Y,X,W,D[Q+1],B,4129170786);W=f(W,Z,Y,X,D[Q+6],A,3225465664);X=f(X,W,Z,Y,D[Q+11],z,643717713);Y=f(Y,X,W,Z,D[Q+0],y,3921069994);Z=f(Z,Y,X,W,D[Q+5],B,3593408605);W=f(W,Z,Y,X,D[Q+10],A,38016083);X=f(X,W,Z,Y,D[Q+15],z,3634488961);Y=f(Y,X,W,Z,D[Q+4],y,3889429448);Z=f(Z,Y,X,W,D[Q+9],B,568446438);W=f(W,Z,Y,X,D[Q+14],A,3275163606);X=f(X,W,Z,Y,D[Q+3],z,4107603335);Y=f(Y,X,W,Z,D[Q+8],y,1163531501);Z=f(Z,Y,X,W,D[Q+13],B,2850285829);W=f(W,Z,Y,X,D[Q+2],A,4243563512);X=f(X,W,Z,Y,D[Q+7],z,1735328473);Y=f(Y,X,W,Z,D[Q+12],y,2368359562);Z=E(Z,Y,X,W,D[Q+5],p,4294588738);W=E(W,Z,Y,X,D[Q+8],n,2272392833);X=E(X,W,Z,Y,D[Q+11],m,1839030562);Y=E(Y,X,W,Z,D[Q+14],l,4259657740);Z=E(Z,Y,X,W,D[Q+1],p,2763975236);W=E(W,Z,Y,X,D[Q+4],n,1272893353);X=E(X,W,Z,Y,D[Q+7],m,4139469664);Y=E(Y,X,W,Z,D[Q+10],l,3200236656);Z=E(Z,Y,X,W,D[Q+13],p,681279174);W=E(W,Z,Y,X,D[Q+0],n,3936430074);X=E(X,W,Z,Y,D[Q+3],m,3572445317);Y=E(Y,X,W,Z,D[Q+6],l,76029189);Z=E(Z,Y,X,W,D[Q+9],p,3654602809);W=E(W,Z,Y,X,D[Q+12],n,3873151461);X=E(X,W,Z,Y,D[Q+15],m,530742520);Y=E(Y,X,W,Z,D[Q+2],l,3299628645);Z=u(Z,Y,X,W,D[Q+0],V,4096336452);W=u(W,Z,Y,X,D[Q+7],U,1126891415);X=u(X,W,Z,Y,D[Q+14],S,2878612391);Y=u(Y,X,W,Z,D[Q+5],P,4237533241);Z=u(Z,Y,X,W,D[Q+12],V,1700485571);W=u(W,Z,Y,X,D[Q+3],U,2399980690);X=u(X,W,Z,Y,D[Q+10],S,4293915773);Y=u(Y,X,W,Z,D[Q+1],P,2240044497);Z=u(Z,Y,X,W,D[Q+8],V,1873313359);W=u(W,Z,Y,X,D[Q+15],U,4264355552);X=u(X,W,Z,Y,D[Q+6],S,2734768916);Y=u(Y,X,W,Z,D[Q+13],P,1309151649);Z=u(Z,Y,X,W,D[Q+4],V,4149444226);W=u(W,Z,Y,X,D[Q+11],U,3174756917);X=u(X,W,Z,Y,D[Q+2],S,718787259);Y=u(Y,X,W,Z,D[Q+9],P,3951481745);Z=L(Z,h);Y=L(Y,J);X=L(X,w);W=L(W,g)}var j=C(Z)+C(Y)+C(X)+C(W);return j.toLowerCase()};function rot13(a){return a.replace(/[a-zA-Z]/g,function(b){return String.fromCharCode((b<="Z"?90:122)>=(b=b.charCodeAt(0)+13)?b:b-26)})}var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function decode64(c){var a="";var k,h,f;var j,g,e,d;var b=0;c=c.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{j=keyStr.indexOf(c.charAt(b++));g=keyStr.indexOf(c.charAt(b++));e=keyStr.indexOf(c.charAt(b++));d=keyStr.indexOf(c.charAt(b++));k=(j<<2)|(g>>4);h=((g&15)<<4)|(e>>2);f=((e&3)<<6)|d;a=a+String.fromCharCode(k);if(e!=64){a=a+String.fromCharCode(h)}if(d!=64){a=a+String.fromCharCode(f)}}while(b<c.length);return a}function getSelectedIndex(b,a){retval="";var c=document.getElementById(b);if(a){if(c){retval=c.options[c.selectedIndex].innerHTML}}else{if(c){retval=c.options[c.selectedIndex].value}}return retval}function selectValue(b,a){for(loop=0;loop<b.options.length;loop++){if(b.options[loop].innerHTML==a||b.options[loop].value==a){b.options[loop].selected=true;return}}}function showPopWin(e,c,d,b,a){if(!c){c=750}if(!d){d=350}hidePopWin();jQuery("#loading").empty();jQuery("#loading").html('<div class="loadingBox flora" title="Loading" ></div>');jQuery(".loadingBox").html('<div id="innerLoadingBox"><div style="text-align:center;width:100%;margin-top:50px;font-size:1.3em">Loading <img src="/images/loading.gif" style="width:70px;height:10px" alt="Loading"/></div></div>');minWinHeight=300;minWinWidth=300;if(minWinWidth>c){minWinWidth=c}if(minWinHeight>d){minWinHeight=d}jQuery(".loadingBox").dialog({position:["center",20],width:c,height:d,minHeight:minWinHeight,minWidth:minWinWidth,close:function(){if(b){b()}hidePopWin()}});jQuery.ajax({url:e,cache:false,success:function(f){jQuery("#innerLoadingBox").html(f)}})}function showPopWinHTML(e,c,d,b,a){if(!c){c=750}if(!d){d=350}hidePopWin();jQuery("#loading").empty();jQuery("#loading").html('<div class="loadingBox flora" title="Loading" ></div>');jQuery(".loadingBox").html('<div id="innerLoadingBox"><div style="text-align:center;width:100%;margin-top:50px;font-size:1.3em">Loading <img src="/images/loading.gif" style="width:70px;height:10px" alt="Loading"/></div></div>');minWinHeight=300;minWinWidth=300;if(minWinWidth>c){minWinWidth=c}if(minWinHeight>d){minWinHeight=d}jQuery(".loadingBox").dialog({width:c,height:d,minHeight:minWinHeight,minWidth:minWinWidth,close:function(){if(b){b()}hidePopWin()}});jQuery("#innerLoadingBox").html(e)}function hidePopWin(){if(jQuery(".date").datepicker){jQuery(".date").each(function(a){jQuery(this).datepicker("hide")})}jQuery(".loadingBox").remove()}function setConfirmUnload(a){window.onbeforeunload=(a)?unloadMessage:null}function unloadMessage(){return"You have entered new data on this page.  If you navigate away from this page without first saving your data, the changes will be lost."}function setSaver(a){jQuery(document).ready(function(){jQuery(":input","#"+a).bind("change",function(){setConfirmUnload(true)})});jQuery("#"+a).submit((function(b){setConfirmUnload(false)}))}function findSWF(a){if(navigator.appName.indexOf("Microsoft")!=-1){return window[a]}else{return document[a]}}function isValidEmail(a){return(a.indexOf(".")>2)&&(a.indexOf("@")>0)}function setCalendars(){if(jQuery(".date").datepicker){jQuery(".date").each(function(a){if(jQuery(this).attr("altField")){altField="#"+jQuery(this).attr("altField")}else{altField=""}jQuery(this).datepicker({altField:altField,dateFormat:"mm/dd/y",altFormat:"yy-mm-dd",showOn:"both",changeMonth:true,changeYear:true,buttonImageOnly:true,buttonImage:"/images/calendar.png",mandatory:true})})}}if(window.jQuery){jQuery(document).ready(function(){setCalendars()})}function updateSelectFromJSON(h,c){var g=JSON.parse(document.getElementById(c).value);var b=document.getElementById(h);var f=1;var d=false;var a=false;if(b.options.length>f&&b.options[f].value=="num"){f++;d=true}if(b.options.length>f&&b.options[f].value=="nullline"){f++;a=true}if(b.options.length>f&&b.options[f].value=="(none)"){f++}for(i=f;i<b.options.length;i++){b.removeChild(b.options[i])}for(i=0;i<g.length;i++){if(g[i]["status"]!="deleted"){b.options[f]=document.createElement("option");b.options[f].text=g[i]["value"];b.options[f].value=g[i]["value"];f++}}if(d){var e=b.options.length-3;b.options[1].text=b.options[1].text.replace(/\d+/,e)}if(a){b.selectedIndex=1}else{b.selectedIndex=0}}function dump(a,g){var f="";if(!g){g=0}var e="";for(var b=0;b<g+1;b++){e+="    "}if(typeof(a)=="object"){for(var c in a){var d=a[c];if(typeof(d)=="object"){f+=e+"'"+c+"' ...\n";f+=dump(d,g+1)}else{f+=e+"'"+c+"' => \""+d+'"\n'}}}else{f="===>"+a+"<===("+typeof(a)+")"}return f};