function checkKeywords(fld, lbl, emptyOK, nwords){ var re=/[\"<>]|(&#)|(&)|(")|(>)|(<)/; if (checkKeywords.arguments.length == 2) emptyOK = false; if ((emptyOK == true) && isEmpty(fld.value)) return true; fld.value = stripSurroundComma(fld.value); var puncRe = /[\/;&\.:\\\?\|!\+-]+/; if (puncRe.test(fld.value)) { if (! confirm('JUST CHECKING...\n\nYou have entered additional punctuation symbols in your list of keywords.\n\nFor more accurate results:\n\n· Ensure that you have separated your keywords with COMMAS ONLY,\ne.g. Account Manager, Outlook, Access\n· No fullstop at the end of your list of keywords.\n· Do not add unecessary fullstops and other punctuation symbols,\ne.g. ; : / + &\n· Database query language syntax is not accommodated.\n\n- Click OK to continue, OR\n- Click CANCEL to edit your keywords for better results.')) { fld.focus(); return false; } } var puncStr = "|[/;\*&\.:\\\?\|!\+-]+"; var nwordsRe = new RegExp("(" + nwords + puncStr + ")", "i"); var arrayOfKeywords = fld.value.split(','); for (var i=0; i < arrayOfKeywords.length; i++) { arrayOfKeywords[i] = stripSpace(arrayOfKeywords[i]); if (arrayOfKeywords[i] == '') { return warnInvalid(fld,'OOPS...\n\nPlease edit your entry in the ' + lbl.toUpperCase() + ' field.\nYou have entered an invalid keyword.'); } if ((arrayOfKeywords[i].length == 1 && !(arrayOfKeywords[i] == "c" || arrayOfKeywords[i] == "C")) || arrayOfKeywords[i] == "as") { return warnInvalid(fld,'OOPS...\n\nPlease edit your entry in the ' + lbl.toUpperCase() + ' field.\nYou have entered an invalid keyword.'); } if (nwordsRe.test(arrayOfKeywords[i])) { if (arrayOfKeywords[i] == RegExp.$1) { return warnInvalid(fld,'OOPS...\n\nPlease edit your entry in the ' + lbl.toUpperCase() + ' field.\nYou have entered the keyword "' + RegExp.$1 + '", which is not allowed.'); } } var thisPhraseArr = arrayOfKeywords[i].split(' '); if (thisPhraseArr.length > 1) { var nwCounter = 0; for (var cnt=0; cnt < thisPhraseArr.length; cnt++) { if (nwordsRe.test(thisPhraseArr[cnt])) { if (thisPhraseArr[cnt] == RegExp.$1) { nwCounter++; } } } if (nwCounter == thisPhraseArr.length) { return warnInvalid(fld,'OOPS...\n\nPlease edit your entry in the ' + lbl.toUpperCase() + ' field.\nYou have entered the keyword phrase "' + arrayOfKeywords[i] + '", which is not allowed.'); } } } if (re.test(fld.value)) { return warnInvalid(fld,'OOPS...\n\nPlease edit your entry in the ' + lbl.toUpperCase() + ' field.\nThe following characters are NOT allowed:\n\n" < > *'); } return true;}function isEmpty(str){ return ((str == null) || (str.length == 0));}function stripSurroundComma(str){ var reBegin = /^\s*,+/; str = str.replace(reBegin, ""); reBegin = null; var reEnd = /,+\s*$/; str = str.replace(reEnd, ""); reEnd = null; return str;}function warnInvalid(fld,msg){ fld.focus(); if ((fld.type == 'password') || (fld.type == 'text') || (fld.type == 'textarea')) fld.select(); alert(msg); return false;}function stripSpace(str){ var reBegin = /^\s+/igm; str = str.replace(reBegin, ""); var reEnd = /\s+$/igm; str = str.replace(reEnd,""); return str;}function onfocusKeywords(theEl){if(theEl.value=='job title') theEl.value='';} function onblurKeywords(theEl){if(theEl.value=='') theEl.value='job title';} function onfocusotherKeywords(theEl){if(theEl.value=='other keywords') theEl.value='';} function onblurotherKeywords(theEl){if(theEl.value=='') theEl.value='other keywords';} function SubmitForm(myForm) { myForm.otherkeywordshidden.value = myForm.otherkeywords.value;if ((myForm.keywords.value.length <= 0 || myForm.keywords.value == 'job title') && (myForm.otherkeywords.value.length <= 0 || myForm.otherkeywords.value == 'other keywords')) { alert('OOPS...\n\nYou did not enter any keywords.\nPlease enter the keywords to search for.'); myForm.keywords.focus() return false;} else if (checkKeywords(myForm.keywords,"job title",false, 'another|because|between|himself|through|should|before|being|about|after|could|since|their|still|other|might|never|those|there|these|where|which|while|would|with|your|well|were|what|very|they|this|more|most|much|must|into|like|make|many|only|over|said|same|such|take|than|that|them|then|some|each|came|come|from|have|here|also|been|both|but|all|any|him|her|get|got|has|had|and|can|for|did|the|see|our|out|his|how|now|too|was|way|you|who|we|up|to|of|on|my|if|in|me|or|do|he|at|be|an|by')) {var keywords = new String(myForm.keywords.value); keywords = escape(keywords); var reP = /\+/g; keywords = keywords.replace(reP,'%2B'); if (myForm.otherkeywords != undefined) {if(myForm.otherkeywords.value == 'other keywords'){myForm.otherkeywords.value = 'otherkeywords'}if (checkKeywords(myForm.otherkeywords,"other keywords",false, 'another|because|between|himself|through|should|before|being|about|after|could|since|their|still|other|might|never|those|there|these|where|which|while|would|with|your|well|were|what|very|they|this|more|most|much|must|into|like|make|many|only|over|said|same|such|take|than|that|them|then|some|each|came|come|from|have|here|also|been|both|but|all|any|him|her|get|got|has|had|and|can|for|did|the|see|our|out|his|how|now|too|was|way|you|who|we|up|to|of|on|my|if|in|me|or|do|he|at|be|an|by')) {var otherkeywords = new String(myForm.otherkeywords.value); otherkeywords = escape(otherkeywords); var reP = /\+/g; otherkeywords = otherkeywords.replace(reP,'%2B'); myForm.otherkeywords.value = myForm.otherkeywordshidden.value;} else {return false}; }if (myForm.keywords.value == 'job title') {keywords = ''; }if (myForm.otherkeywords != undefined) {if ( (myForm.otherkeywords.value == 'other keywords') || (myForm.otherkeywords.value == 'otherkeywords')) {otherkeywords = ''; }} else {otherkeywords = ''}; var keywordshelp1 = '';var keywordshelp2 = ''; var keywordshelp = ''; var keywordshelp1 = ''+keywords+''; var keywordshelp2 = ''+otherkeywords+''; keywordshelp1 = keywordshelp1.replace(/%2C/g,' or '); keywordshelp2 = keywordshelp2.replace(/%2C/g,' or '); if( (keywords != '') && (otherkeywords != '') ) {keywordshelp = 'Find '+keywordshelp1 +' with '+ keywordshelp2+'.';}else { if( (keywords != '') && (otherkeywords == '') ) {keywordshelp = 'Find '+keywordshelp1+'.'; } else { keywordshelp = 'Find '+keywordshelp2+'.'; } } myForm.action = 'http://www.careerjunctionme.com/car/job/joblst.asp?cntsiteno=3&cntlink=www.careerjunctionme.com&adv=-1&hostincluded=0&keywords='+keywords+'&otherkeywords='+otherkeywords+'&searchtype=1&type=&level=&aa=2&inf=0&age=5&industry=&location=257&quickSearchcall=1&keywordshelp='+keywordshelp+'&filtershelp=None selected';myForm.submit() return true; }else return false;}function getDefault() { if (showsearch)document.write('
2,284 Jobs

»More Criteria
'); } var showsearch = false; showsearch = true; function getFormOpen() { if (showsearch) { document.write('
') }; } function getJobCount() { if (showsearch)document.write('Search 2,284 Jobs'); } function getKeyword() { if (showsearch)document.write(' '); } function getSearch() { if (showsearch)document.write(''); } function getLink() { if (showsearch)document.write('More Criteria'); } function getFormClose() { if (showsearch)document.write('
'); }