function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i= 0) ? "NS" : (navigator.appName.indexOf("Microsoft") >= 0) ? "IE" : "OTHER"; function loadEmployeeData(){ document.getElementById('blurb').innerHTML="
" + employeeName + "
" + employeeTitle + "
" + employeeYears + "
" } //click a top menu alert function menu1ClickAlert(alertType, secure){ loc = location prot = "http:" if (false){ prot = "https:" } host = loc.host path = loc.pathname if (alertType == "IDCStoreDown") { document.location = prot + '//' + host + path window.alert('The IDC Store is currently down for maintenance. Thank you for your patience.') } } //click a top menu item function menu1ClickOpenForm(formName, secure){ loc = location prot = "http:" if (false){ prot = "https:" } host = loc.host path = loc.pathname document.location = prot + '//' + host +'/intd.nsf/' + formName+ '?openform' } //click a top menu item function menu1Click(menu, secure){ loc = location prot = "http:" if (secure){ if (false){ prot = "https:" } } host = loc.host path = loc.pathname document.location = prot + '//' + host +'/intd.nsf/' +'id/' + menu + '?opendocument' } //mouse out of a left menu item, show the photo function menu1MouseOver(menu){ eval("firstMenuClass[" + menu +"]= document.getElementById('firstMenu" + menu +"').className;document.getElementById('firstMenu" + menu +"').className='firstMenuTD" + menu +"Over'") } //mouse out of a left menu item, show the photo function menu1MouseOut(menu){ eval("document.getElementById('firstMenu" + menu +"').className=firstMenuClass[" + menu +"]") } //mouse out of a left menu item, show the photo function menu1MouseDown(menu){ eval("firstMenuClass[" + menu +"]= ''; document.getElementById('firstMenu" + menu +"').className='firstMenuTD" + menu +"On'") } //mouse out of a left menu item, show the photo function menu2MouseOut(menu){ loadEmployeeData(); eval("document.getElementById('" + menu + "').className='secondMenu'"); document.getElementById('blurb').className="blurbPhoto"; } //click a left menu item, swap content function menu2Click(menu){ loc = document.location protocol = loc.protocol host = loc.host path = loc.pathname // document.location = 'http://' + host + path + '?opendocument&bid=' + menu document.location = protocol +'//' + host + path + '?opendocument&bid=' + menu } //click a left menu item, swap content function menu2ClickByPath(path){ loc = document.location host = loc.host protocol = loc.protocol // document.location = 'http://' + host + path + '?opendocument' document.location = protocol +'//' + host + path + '?opendocument' } //click a left menu item, swap content function menu2ClickByPathExplicit(path){ loc = document.location host = loc.host protocol = loc.protocol // document.location = 'http://' + host + path document.location = protocol +'//' + host + path } //click a left menu item, swap content function menu2ClickByLoc(loc){ document.location = loc } //mouse over a left menu item, show the blurb function menu2MouseOver(title,text,menu){ document.getElementById('blurb').className="blurbInfo"; eval("document.getElementById('" + menu + "').className='secondMenuOver'"); document.getElementById('blurb').innerHTML="" + title + "
" + text + ""; } function setLoginFocus() { document.getElementById('_LogIn').UserName.focus(); document.getElementById('_LogIn').UserName.select(); } function CSR(name, status){ //alert("new " + name) this.name = name this.status = status } function chatCSR(type){ //get the first available CSR for (var i =0;i<=4;i++){ if (csr[i].status == 32){ STLinksCreateIM(csr[i].name) StartChat = true return; } } alert("There is not a " + type + " online, please try again later.\n\n*Chat requires Java*\n\nGet Java at http://www.java.com") } function chatCSRLogin(type){ name = window.showModalDialog("/intd.nsf/STLogIn?openform","","dialogHeight: 150px; dialogWidth: 200px; edge: Raised; center: Yes; help: No; resizable: No; status: No;"); if (name == "" || name == "undefined") return STLinksLogin(name,"", false) chatCSR('Recruiter') } function chatCSRLoginWithName (type){ name = document.forms[0].SameTimeName.value; if (name == "" || name == "undefined") { alert("You must enter your name to begin a chat") return } STLinksLogin(name,"", false) chatCSR('Recruiter') } function chatCSRLoginWithName1 (logintype,username){ if (username== "" || username== "undefined") { alert("You must enter your name to begin a chat") return } STLinksLogin(username,"", false) chatCSR('Recruiter') } function chatCSRLoginWithName2 (logintype,username){ if (username== "" || username== "undefined") { alert("You must enter your name to begin a chat") return } STLinksLogin(username,"", false) chatCSR('Customer') } function STLinksUserStatusChanged(userId, displayName, status, statusMessage){ var showCSR = false; for (var i =0;i<=4;i++){ if (csr[i].name == userId){ csr[i].status = status; } if (csr[i].status == 32){ var showCSR = true; } } if (showCSR){ document.all.chatOn.className="chatLinkShow"; document.all.chatOff.className="chatLinkHide"; if (!StartChat){chatCSR()} } else{ document.all.chatOn.className="chatLinkHide"; document.all.chatOff.className="chatLinkShow"; } } var StartChat = false //mouse out of a left menu item, show the photo function menu2MouseOutST(menu){ document.all.chatOn.className="chatLinkHide"; document.all.chatOff.className="chatLinkHide"; loadEmployeeData(); eval("document.getElementById('" + menu + "').className='secondMenu'"); document.getElementById('blurb').className="blurbPhoto"; } //mouse over a left menu item, show the blurb function menu2MouseOverST(title,text,menu){ document.all.chatOn.className="chatLinkHide"; document.all.chatOff.className="chatLinkHide"; document.getElementById('blurb').className="blurbInfo"; eval("document.getElementById('" + menu + "').className='secondMenuOver'"); document.getElementById('blurb').innerHTML="" + title + "
" + text + ""; } //mouse out of a left menu item, show the photo function menu2MouseOutSTResults(menu){ document.all.chatOn.className="chatLinkHideResults"; document.all.chatOff.className="chatLinkHideResults"; } //mouse over a left menu item, show the blurb function menu2MouseOverSTResults(title,text,menu){ document.all.chatOn.className="chatLinkHideResults"; document.all.chatOff.className="chatLinkHideResults"; } var dtCh= "/"; var minYear=1800; var maxYear=2200; function isInteger(s){ var i; for (i = 0; i < s.length; i++){ // Check that current character is number. var c = s.charAt(i); if (((c < "0") || (c > "9"))) return false; } // All characters are numbers. return true; } function stripCharsInBag(s, bag){ var i; var returnString = ""; // Search through string's characters one by one. // If character is not in bag, append to returnString. for (i = 0; i < s.length; i++){ var c = s.charAt(i); if (bag.indexOf(c) == -1) returnString += c; } return returnString; } function daysInFebruary (year){ // February has 29 days in any year evenly divisible by four, // EXCEPT for centurial years which are not also divisible by 400. return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 ); } function DaysArray(n) { for (var i = 1; i <= n; i++) { this[i] = 31 if (i==4 || i==6 || i==9 || i==11) {this[i] = 30} if (i==2) {this[i] = 29} } return this } function isDate(dtStr){ var daysInMonth = DaysArray(12) var pos1=dtStr.indexOf(dtCh) var pos2=dtStr.indexOf(dtCh,pos1+1) var strMonth=dtStr.substring(0,pos1) var strDay=dtStr.substring(pos1+1,pos2) var strYear=dtStr.substring(pos2+1) strYr=strYear if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1) if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1) for (var i = 1; i <= 3; i++) { if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1) } month=parseInt(strMonth) day=parseInt(strDay) year=parseInt(strYr) if (pos1==-1 || pos2==-1){ return false } if (strMonth.length<1 || month<1 || month>12){ return false } if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){ return false } if (strYear.length != 4 || year==0 || yearmaxYear){ return false } if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){ return false } return true }