function isEmail(strEmail) { var email; email = trim(strEmail); if (email.indexOf(' ') > 0) return false; var r1 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(^\\.)"); var r2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$"); return (!r1.test(email) && r2.test(email)); } function trim(strText) { // this will get rid of leading spaces while (strText.substring(0,1) == ' ') strText = strText.substring(1, strText.length); // this will get rid of trailing spaces while (strText.substring(strText.length-1,strText.length) == ' ') strText = strText.substring(0, strText.length-1); return strText; } function nextPage(form, pageID, queryStringAppend) { switch (pageID) { case 'CA' : form.action='open_requests_CA.asp?sessionid=' + form.sessionid.value + queryStringAppend; break; case 'OR' : form.action='open_requests.asp?sessionid=' + form.sessionid.value + queryStringAppend; break; case 'GU' : form.action='group_users.asp?sessionid=' + form.sessionid.value + queryStringAppend; break; case 'GM' : form.action='group_maintain.asp?sessionid=' + form.sessionid.value + queryStringAppend; break; case 'US' : form.action='user_search.asp?sessionid=' + form.sessionid.value + queryStringAppend; break; case 'GS' : form.action='group_search.asp?sessionid=' + form.sessionid.value + queryStringAppend; break; case 'SV' : form.action ='service_list.asp?sessionid=' + form.sessionid.value + queryStringAppend; break; case 'KT' : document.frmKeyTypeMaintain.action ='keytype_list.asp?sessionid=' + document.frmKeyTypeMaintain.sessionid.value; break; default : ; } return true; } // This is only used in US_MyInfo. function showPopup(newURL, newName) { open(newURL, newName, 'height=400,width=400,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0'); return false; }