var Dixies_Interests = new Array(" Dixies Interests","   Faith, Family, & Friends"," ") var Job_Descriptions = new Array(" Job Descriptions","   Sr Lotus Notes Developer","   Lotus Project Manager"," ") var Lances_Interests = new Array(" Lances Interests","   Faith, Family, Friends & Fun"," ") var Legal_Policies = new Array(" Legal Policies","   Trademarks"," ") var Marks_Interests = new Array(" Marks Interests","   eMarketing","   Knowledge Management","   Project Management","   Leadership"," ") var Privacy_Policies = new Array(" Privacy Policies","   General Disclosure","   Aggregate","   IP Address","   Personally Identifiable Info","   Child"," ") var Site_Resources = new Array(" Site Resources","   Interesting Links","   Salary Center"," ") var The_12_Reasons = new Array(" The 12 Reasons","   Win-Win","   Value Beyond Recruiting","   Focus","   Price","   Pre-Screened Database","   Lotus Pros","   Guarantee","   Quality","   References","   Speed","   We Are Easy"," ") var The_Right_Angle = new Array(" The Right Angle","   Large Pool of Candidates","   A Proven Process","   The Right Person","   Leveraging Technology","   Lotus Pros","   Candidate Dossier"," ") var Work_History = new Array(" Work History","   Demographics","   Feedback"," ") var pathname = (window.location.pathname); var fullpath = pathname.substring(0,(pathname.lastIndexOf('.nsf')+5)) function removeDoc(docUNID) { currentURL = document.URL; //Run "Remove Web View Document" Agent var url = fullpath + 'rwvd?OpenAgent&ID='; url += docUNID; url += "&Return="+currentURL; window.location.replace(url) } function isEmail(s){ if (isEmpty(s)){ return false; } // there must be >= 1 character before @, so we // start looking at character position 1 // (i.e. second character) var i = 1; var sLength = s.length; // look for @ while ((i < sLength) && (s.charAt(i) != "@")){ i++ } if ((i >= sLength) || (s.charAt(i) != "@")) return false; else i += 2; // look for . while ((i < sLength) && (s.charAt(i) != ".")){ i++ } // there must be at least one character after the . if ((i >= sLength - 1) || (s.charAt(i) != ".")) return false; else return true; } function isEmpty(s){ return ((s == null) || (s.length == 0)) } IE4 = document.all; function newAlert(title,mess,icon,mods) { (IE4) ? makeMsgBox(title,mess,icon,0,0,mods) : alert(mess); } function newConfirm(title,mess,icon,defbut,mods) { if (IE4) { icon = (icon==0) ? 0 : 2; defbut = (defbut==0) ? 0 : 1; retVal = makeMsgBox(title,mess,icon,4,defbut,mods); retVal = (retVal==6); } else { retVal = confirm(mess); } return retVal; } function newPrompt(title,mess,def) { retVal = (IE4) ? makeInputBox(title,mess,def) : prompt(mess,def); return retVal; } function IEBox(title,mess,icon,buts,defbut,mods) { retVal = (IE4) ? makeMsgBox(title,mess,icon,buts,defbut,mods) : null; return retVal; } function verifyEmail(form,v_email) { if (isEmpty(v_email) || !isEmail(v_email)){ newAlert('E-mail Validation','Please provide a valid e-mail address.',4,0); return false } else { register(v_email); eval("document."+form+".submit()"); } } function findMyAccount(email) { if ( isEmpty(email) || !isEmail(email) ) { alert('Please type in a valid e-mail address'); return false } else { document._TPLogin.submit(); } } // ------- Begin Cookie Functions function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr)); } function FixCookieDate (date) { var base = new Date(0); var skew = base.getTime(); // dawn of (Unix) time - should be 0 if (skew > 0) // Except on the Mac - ahead of its time date.setTime (date.getTime() - skew); } function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } function SetCookie (name,value) { var expDays = 365; // number of days the cookie should last var expDate = new Date(); expDate.setTime(expDate.getTime() + (24 * 60 * 60 * 1000 * expDays)); path="/"; document.cookie = name + "=" + escape (value) + "; expires=" + expDate + "; path=" + path } function DeleteCookie (name,path,domain) { if (GetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } function separatedata(datain,delimin){ var i=0; var xarray=new Array(datain); var j=0; for(i=0;i0){ var k=x+i; xarray[j++]=datain.substring(i,k); i+=x} else{ xarray[j++]=tempstring; i=datain.length} } return xarray; } function register(name) { SetCookie("TPUser", name); } function loadCookie(cookie_name,form,field_name) { var cookieValue = GetCookie(cookie_name); if (cookieValue != null ) { eval("document.forms['"+form+"']."+field_name+".value = '" + cookieValue + "'"); } } function popupModal(targetURL,w,h) { var szUrl; var szFeatures; var szField; szUrl = targetURL; szFeatures = 'dialogWidth:'+w+'; dialogHeight:'+h+'; status:0; help:0; scroll:1; '; szName = window.showModalDialog(szUrl, "", szFeatures) } function getSelectedDocs( form ){ var x = 0; var seldocs = new Array(); for (var i = 0; i < form.elements.length; i++) { if (form.elements[i].type == "checkbox") { if (form.elements[i].name == "$$SelectDoc") { if(form.elements[i].checked) { seldocs[x]=form.elements[i].value x++; } } } } return seldocs; } function removeDocuments( form ) { var pathname = window.location.pathname; var path = pathname.substring(0,(pathname.lastIndexOf('.nsf')+5)); var url = path + 'rmwd?OpenAgent&UNIDs='; var docs = getSelectedDocs( form ); if (docs.length != 0) { for (var i = 0; i < docs.length; i++) { url += '%%' + docs[i]; } url += "%%&Return="+pathname; window.location.replace(url) } else { alert("You must select one or more documents first."); } }