// Use to select radio buttons and check boxes when a user puts cursor in related text input function checkThis(thisID) { document.getElementById(thisID).checked=true; } // Pop up window functions function openWindow(fundurl) { popupwin = window.open(fundurl, 'remote', config='height=400,width=560,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no') } function openFundLink(fundurl) { popupwin = window.open(fundurl, 'remote', config='height=600,width=1015,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no') } function openWindow2(fundurl) { popupwin = window.open(fundurl, 'remote', config='height=150,width=500,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no') } function openWindow3(popurl) { popupwin = window.open(popurl, 'remote3', config='height=430,width=652,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no') } function popUp(url) { sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=1,scrollbars=1,resizable=1,width=500,height=450'); self.name = "mainWin"; } function openFundInfoEnroll(fundinfo) { popupwin = window.open(fundinfo, 'fundwin', config='height=400,width=660,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no') } function openNewkirk(nkurl) { popupwin = window.open(nkurl, 'fundwin', config='height=600,width=810,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no') } function openTutorial(idtutorial) { popupwin = window.open(idtutorial, 'Tutorial', config='height=525,width=690,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,directories=no,status=no') } function popupfeed(url) { /* Use this function to generate a pop up window for item links generated by the Feed2JS service. The name of this function must exactly be popupfeed and you can use the code below to specify specific window features See http://jade.mcli.dist.maricopa.edu/feed/index.php?s=mod */ // string to specify window features var myfeatures = "toolbar=yes,location=no,directories=no, menubar=no,scrollbars=yes, status=yes,resizable=yes, width=690,height=450"; thefeed = window.open( url, 'feed2jspop', myfeatures); if (window.focus) {thefeed.focus()} } function forgotPwd() { var vforgotpwdjsp = document.login2Form.forgotpwddest.value; var vuserid = document.login2Form.Userid.value; var vhomepagelogin = document.login2Form.homepagelogin.value; var vhomepagejsp = document.login2Form.homepagejsp.value; var vHref= vforgotpwdjsp + '?inputUserID=' vHref += vuserid ; vHref=vHref + '&homepagelogin=' vHref += vhomepagelogin ; vHref=vHref + '&homepagejsp=' vHref += vhomepagejsp; return vHref ; } // Change cursor to next form field once maxlength is reached var isNN = (navigator.appName.indexOf("Netscape")!=-1); function autoTab(input,len, e) { var keyCode = (isNN) ? e.which : e.keyCode; var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46]; if(input.value.length >= len && !containsElement(filter,keyCode)) { input.value = input.value.slice(0, len); input.form[(getIndex(input)+1) % input.form.length].focus(); } function containsElement(arr, ele) { var found = false, index = 0; while(!found && index < arr.length) if(arr[index] == ele) found = true; else index++; return found; } function getIndex(input) { var index = -1, i = 0, found = false; while (i < input.form.length && index == -1) if (input.form[i] == input)index = i; else i++; return index; } return true; } /* old */ var browserName=navigator.appName; var browserVer=parseInt(navigator.appVersion); if((browserName=="Netscape")&&(browserVer>="4.0")) { window.captureEvents(Event.MOUSEUP | Event.MOUSEDOWN | Event.KEYDOWN | Event.KEYPRESS); window.onkeypress=myfunc; function myfunc(e) { window.routeEvent(e); } } function changeCursor(from,to,len,e) { // only jumps to next field when the max length of input box has been reached and only when certain keys are pressed // the keys that are allowed are: A-Z (65-90) & 0-9 (NumLock and lowercase letters)(97-105) & 0-9 (48-57) if(from.value.length>=len) { if (e.keyCode) { if ((e.keyCode >= 65 && e.keyCode <= 90) || (e.keyCode >= 96 && e.keyCode <= 122) || (e.keyCode >= 48 && e.keyCode <= 57)) { if (to.type == 'text') to.select(); to.focus(); } } else { if ((e.which >= 65 && e.which <= 90) || (e.which >= 96 && e.which <= 122) || (e.which >= 48 && e.which <= 57)) { if (to.type == 'text') to.select(); to.focus(); } } } return true; }