//GLOBAL VARIABLES var targetEditorName = "ewepHTMLContent"; var targetEditorInstance = "Content"; var listFlag = false; ie4=(document.all) ? true : false ns4=(document.layers) ? true : false //A functions //BEGINNING OF AC FUNCTION function ac(site) { f=document.forms[0].FileName.value s=document.forms[0].Server_Name.value thewindow=window.open('http://'+s+'/'+f+site,'ACHelp','width=800,height=518,location=yes,toolbar=yes,scrollbars=yes,screenX=0,screenY=100,left=20,top=30') } //END OF AC FUNCTION //BEGINNING OF ACO FUNCTION function aco(site) { f=document.forms[0].FileName.value s=document.forms[0].Server_Name.value thewindow=window.open('http://'+s+'/'+f+site,'ACOther','width=600,height=518,location=yes,toolbar=yes,scrollbars=yes,menubar=yes,screenX=0,screenY=50,left=10,top=10,resizable=yes,status=yes') } //END OF ACO FUNCTION //BEGINNING OF ADDREC FUNCTION function addRec(recVal) { var f = document.forms[0] var recListLength = f.rec.options.length var recArray = recVal.split(","); var n = recListLength; if (listFlag == false) { n = 0 listFlag = true } for (i = 0 ; i < recArray.length ; i++) { if (checkTAOName(recArray[i])) { f.rec.options[n] = new Option(recArray[i]); n = n + 1 f.editRec.value = ""; }else { alert("Please enter name in TAO format (i.e. Firstname.Lastname)") f.editRec.focus() } } } //END OF ADDREC FUNCTION //B functions //BEGINNING OF BOOKMARK FUNCTION function bookmark() { var txt = "To bookmark this page: " + "\n" + "\n" + "On Netscape 4+, choose Communicator from the menu above, then the Bookmarks option, and finally choose the Add Bookmark option. Alternatively, use the Ctrl+D keyboard shortcut to bookmark this page." var sn=document.forms[0].Server_Name.value var fn=document.forms[0].FileName.value var url = "http://" + sn + "/" + fn + "AccountConnect?OpenForm"; var who="AccountConnect" var ver = navigator.appName var num = parseInt(navigator.appVersion) if((ver == "Microsoft Internet Explorer")&&(num>=4)) { window.external.AddFavorite(url,who) }else{ alert(txt) } } //END OF BOOKMARK FUNCTION //BEGINNING OF BUILDIMAGE FUNCTION function buildImage() { browserName = navigator.appName browserVer = parseInt(navigator.appVersion) imgLib = "/Internet/tric/tri/imglib.nsf/Images" if ((browserName == "Netscape" && browserVer >= 3) | (browserVer >=4)) { version ="yes" } else { version = "no" } if (version == "yes") { image1on = new Image() image1on.src = imgLib + "/region1.gif/$file/region1.gif" image2on = new Image() image2on.src = imgLib + "/region2.gif/$file/region2.gif" image3on = new Image() image3on.src = imgLib + "/region3.gif/$file/region3.gif" image4on = new Image() image4on.src = imgLib + "/region4.gif/$file/region4.gif" image5on = new Image() image5on.src = imgLib + "/region5.gif/$file/region5.gif" image6on = new Image() image6on.src = imgLib + "/region6.gif/$file/region6.gif" image78on = new Image() image78on.src = imgLib + "/region78.gif/$file/region78.gif" image9on = new Image() image9on.src = imgLib + "/region9.gif/$file/region9.gif" image10on = new Image() image10on.src = imgLib + "/region10.gif/$file/region10.gif" image11on = new Image() image11on.src = imgLib + "/region11.gif/$file/region11.gif" image12on = new Image() image12on.src = imgLib + "/region12.gif/$file/region12.gif" image1off = new Image() image1off.src = imgLib + "/map.gif/$file/map.gif" image2off = new Image() image2off.src = imgLib + "/map.gif/$file/map.gif" image3off = new Image() image3off.src = imgLib + "/map.gif/$file/map.gif" image4off = new Image() image4off.src = imgLib + "/map.gif/$file/map.gif" image5off = new Image() image5off.src = imgLib + "/map.gif/$file/map.gif" image6off = new Image() image6off.src = imgLib + "/map.gif/$file/map.gif" image78off = new Image() image78off.src = imgLib + "/map.gif/$file/map.gif" image9off = new Image() image9off.src = imgLib + "/map.gif/$file/map.gif" image10off = new Image() image10off.src = imgLib + "/map.gif/$file/map.gif" image11off = new Image() image11off.src = imgLib + "/map.gif/$file/map.gif" image12off = new Image() image12off.src = imgLib + "/map.gif/$file/map.gif" otherImageDefault = new Image() otherImageDefault.src = imgLib + "/default_nonflash2.gif/$file/default_nonflash2.gif" otherImage1 = new Image() otherImage1.src = imgLib + "/region1_on.gif/$file/region1_on.gif" otherImage2 = new Image() otherImage2.src = imgLib + "/region2_on.gif/$file/region2_on.gif" otherImage3 = new Image() otherImage3.src = imgLib + "/region3_on.gif/$file/region3_on.gif" otherImage4 = new Image() otherImage4.src = imgLib + "/region4_on.gif/$file/region4_on.gif" otherImage5 = new Image() otherImage5.src = imgLib + "/region5_on.gif/$file/region5_on.gif" otherImage6 = new Image() otherImage6.src = imgLib + "/region6a_on.gif/$file/region6a_on.gif" otherImage6be = new Image() otherImage6be.src = imgLib + "/region6a_onbe.gif/$file/region6a_onbe.gif" otherImage78 = new Image() otherImage78.src = imgLib + "/region78_on.gif/$file/region78_on.gif" otherImage9 = new Image() otherImage9.src = imgLib + "/region9_on.gif/$file/region9_on.gif" otherImage10 = new Image() otherImage10.src = imgLib + "/region10_on.gif/$file/region10_on.gif" otherImage11 = new Image() otherImage11.src = imgLib + "/region11a_on.gif/$file/region11a_on.gif" otherImage11be = new Image() otherImage11be.src = imgLib + "/region11a_onbe.gif/$file/region11a_onbe.gif" otherImage12 = new Image() otherImage12.src = imgLib + "/region12_on.gif/$file/region12_on.gif" } } //END OF BUILDIMAGE FUNCTION //C functions //BEGINNING OF CALCAPPROVALRECIPIENTS FUNCTION function calcApprovalRecipients(form) { if (form.app[0].checked) { document.forms[0].rec.options.length=0; addRec(document.forms[0].hiddenOwner.value) } else if (form.app[1].checked) { document.forms[0].rec.options.length=0 } else if (form.app[2].checked) { document.forms[0].rec.options.length=0 addRec(document.forms[0].corpCommRecipient.value) } else if (form.app[3].checked) { document.forms[0].rec.options.length=0; addRec(document.forms[0].hiddenOwner.value) } } //END OF CALCAPPROVALRECIPIENTS FUNCTION //BEGINNING OF CALCATTACHMENTS FUNCTION function calcAttachments() { var fname="" var fVal="" for (i=0;i < document.forms[0].elements.length;i++) { if (document.forms[0].elements[i].type=="file") { fname=document.forms[0].elements[i].name break } } fVal=document.forms[0].elements[fname].value document.forms[0].attach1.value=fVal.slice(fVal.lastIndexOf('\\')+1) } //END OF CALCATTACHMENTS FUNCTION //BEGINNING OF CALCFIELDS FUNCTION function calcFields(){ calcRecipients(); calcAttachments(); } //END OF CALCFIELDS FUNCTION //BEGINNING OF CALCRECIPIENTS FUNCTION function calcRecipients() { var f = document.forms[0] var recArray = new Array() for (i = 0 ; i < f.rec.length ; i++) { recArray[i] = f.rec.options[i].text } f.recipient.value = recArray.join(",") } //END OF CALCRECIPIENTS FUNCTION //BEGINNING OF CCLICK FUNCTION function cClick(){ hideObject(over); oshowingsticky=0; return false; } //ENDING OF CCLICK FUNCTION //BEGINNING OF CHANGEIMAGES FUNCTION function changeImages() { if (document.images) { for (i = 0 ; i < changeImages.arguments.length ; i+=2) { document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src") } } } //END OF CHANGEIMAGES FUNCTION //BEGINNING OF CHECKKEY FUNCTION function checkKey(e) { var code = (document.layers) ? e.which : event.keyCode; if(code == "13") { doSearch() } } //END OF CHECKKEY FUNCTION //BEGINNING OF CHECKSEARCH FUNCTION function checksearch() { var msg var msgflag msgflag="false" msg="Please enter your search value.\r" if(document.forms[0].text.value == "") { msg msgflag="true" } if(msgflag == "true") { alert(msg) document.forms[0].text.focus() } if(msgflag == "false") { var f=document.forms[0] location.replace('bcbs/bcbs_redo.nsf/($All)?SearchView&Query='+escape(f.text.value)+'&Start=1') } } //END OF CHECKSEARCH FUNCTION //BEGINNING OF CHECKTAONAME FUNCTION function checkTAOName(eVal) { var f = document.forms[0] if (eVal.indexOf(".") < 0 || eVal.indexOf(".") == eVal.length-1) { return false } else { return true } } //END OF CHECKTAONAME FUNCTION //BEGINNING OF CLAIM FUNCTION function claim(site) { thewindow=window.open(site,"","width=460,height=70,resizable=no,scrollbars=yes,status=yes") } //END OF CLAIM FUNCTION //BEGINNING OF COMPATIBLEFRAME FUNCTION function compatibleframe(frameid){ if(ns4){ if(typeof frameid.document.overDiv=='undefined')return false; }else if(ie4){ if(typeof frameid.document.all["overDiv"]=='undefined')return false; }else if(ns6){ if(frameid.document.getElementById('overDiv')==null)return false; } return true; } //ENDING OF COMPATIBLEFRAME FUNCTION //BEGINNING OF CONSTANTACTIONBAR FUNCTION function ConstantActionBar() { var ab = document.applets.dominoActionBar ab.outerHTML = "
" + ab.outerHTML + "
" DataLayer.style.pixelLeft = ActionBarLayer.offsetLeft } //END OF CONSTANTACTIONBAR FUNCTION //D functions //BEGINNING OF DISP FUNCTION function disp(statustext){ if((ns4)||(ie4)||(ns6)){ if(oallowmove==0){ placeLayer(); showObject(over); oallowmove=1; } } if(statustext !=""){ self.status=statustext; } } //ENDING OF DISP FUNCTION //BEGINNING OF DOSEARCH FUNCTION function doSearch() { var f=document.forms[0] var allOK=true if(f.QueryInput.value=="") { allOK=false errMsg = "Please enter word(s) for which to search" } else { qi=f.QueryInput.value if(qi.indexOf(",")!=-1 || qi.indexOf("<")!=-1 || qi.indexOf(".")!=-1 || qi.indexOf(">")!=-1 || qi.indexOf("/")!=-1 || qi.indexOf("?")!=-1 || qi.indexOf(";")!=-1 || qi.indexOf(":")!=-1 || qi.indexOf("'")!=-1 || qi.indexOf("\"")!=-1 || qi.indexOf("[")!=-1 || qi.indexOf("{")!=-1 || qi.indexOf("]")!=-1 || qi.indexOf("}")!=-1 || qi.indexOf("\\")!=-1 || qi.indexOf("`")!=-1 || qi.indexOf("~")!=-1 || qi.indexOf("!")!=-1 || qi.indexOf("@")!=-1 || qi.indexOf("#")!=-1 || qi.indexOf("$")!=-1 || qi.indexOf("%")!=-1 || qi.indexOf("^")!=-1 || qi.indexOf("&")!=-1 || qi.indexOf("*")!=-1 || qi.indexOf("(")!=-1 || qi.indexOf(")")!=-1 || qi.indexOf("-")!=-1 || qi.indexOf("_")!=-1 || qi.indexOf("=")!=-1 || qi.indexOf("+")!=-1) { allOK=false errMsg = "The word(s) entered on which to search contain one of the following characters. Remove these character(s) and try again.\n\n, . / < > ? ; : \' \" { } [ ] \\ | ! @ # $ % ^ & * ( ) - _ = +" } } if(allOK==false) { alert(errMsg) } else { qS="" if(window.location.href.indexOf('$$')==-1) { arrayOfWords=f.QueryInput.value.split(" ") for (var count=0; count < arrayOfWords.length; count++) { qS+=arrayOfWords[count]+"+or+" } qS=qS.substring(0,qS.length-4) } else { for(var whichOne=0; whichOne < f.lookfor.length; whichOne++) { if(f.lookfor[whichOne].checked==true) { var thisOnePicked=whichOne } } if(thisOnePicked=="0") { arrayOfWords=f.QueryInput.value.split(" ") for (var count=0; count < arrayOfWords.length; count++) { qS+=arrayOfWords[count]+"+and+" } qS=qS.substring(0,qS.length-5) } else { if(thisOnePicked=="1") { arrayOfWords=f.QueryInput.value.split(" ") for (var count=0; count < arrayOfWords.length;count++) { qS+=arrayOfWords[count]+"+or+" } qS=qS.substring(0,qS.length-4) } else { qS=replaceString(f.QueryInput.value,' ','+') } } } parent.location.assign('/Internet/tric/tri/tricare.nsf/SearchResults?openform&qry='+qS) } } //END OF DOSEARCH FUNCTION //G functions //BEGINNING OF GLOSS2 FUNCTION function gloss2(site) { thewindow=window.open(site,"","width=750,height=400,resizable=no,scrollbars=yes,status=no") } //END OF GLOSS2 FUNCTION //BEGINNING OF GLOSS FUNCTION function gloss(site) { thewindow=window.open(site,"","width=785,height=600,resizable=no,scrollbars=yes,status=no") } //END OF GLOSS FUNCTION //BEGINNING OF GPD FUNCTION function gpd(site2) { thewindow=window.open(site2,"window1","width=691,height=510,resizable=yes,scrollbars=yes,status=yes") } //END OF GPD FUNCTION //H functions //BEGINNING OF HIDEOBJECT FUNCTION function hideObject(obj){ if(ns4)obj.visibility="hide"; else if(ie4)obj.visibility="hidden"; else if(ns6)obj.style.visibility="hidden"; if(otimerid > 0)clearTimeout(otimerid); if(odelayid > 0)clearTimeout(odelayid); otimerid=0; odelayid=0; self.status=""; } //ENDING OF HIDEOBJECT FUNCTION //BEGINNING OF HUOW FUNCTION function huow() { var huowsite='http://www.mytricare.com/Internet/tric/tri/tricare.nsf/EXT/FrqntlyAskdQstns_HlpUsngOrWbSt_13?OpenDocument&SC=FrqntlyAskdQstns~HlpUsngOrWbSt?OpenDocument'; var newwin=window.open(huowsite,"window1" ); newwin.focus(); } //I functions //BEGINING OF ID FUNCTION function Id(site) { thewindow=window.open(site,"window1","width=750,height=550,resizable=no,scrollbars=yes,status=yes") } //END OF ID FUNCTION //BEGINNING OF IM FUNCTION function im(site, bIsMaximized) { var iStartX = 0; var iStartY = 0; var iWinWidth = 0; var iWinHeight = 0; if (bIsMaximized == true) { iWinWidth = screen.availWidth - 10; iWinHeight = screen.availHeight - 48; if ((navigator.appName.indexOf("Netscape") >= 0) && (navigator.appVersion.indexOf("5")>=0)) { iWinWidth = screen.availWidth - 6; iWinHeight = screen.availHeight - 41; } } else { iStartX = parseInt((screen.availWidth - 691) / 2); iStartY = parseInt((screen.availHeight - 500) / 2); iWinWidth = 691; iWinHeight = 500; } if (iStartX < 0) iStartX = 0; if (iStartX < 0) iStartX = 0; if (navigator.appName.indexOf("Microsoft") != -1) { thewindow=window.open(site,"thewindow","width=" + iWinWidth + ",height=" + iWinHeight + ",resizable=no,scrollbars=yes,status=yes,left=" + iStartX + ",top=" + iStartY); } else { thewindow=window.open(site,"thewindow","width=" + iWinWidth + ",height=" + iWinHeight + ",resizable=no,scrollbars=yes,status=yes,screenX=" + iStartX + ",screenY=" + iStartY); } // return thewindow; } //END OF IM FUNCTION //BEGINNING OF IMAGEREPLACE FUNCTION function imagereplace() { for( i=0; i < document.images.length ; i++ ) { if( document.images[i].src.indexOf('expand.gif') != -1) { document.images[i].src='/Internet/tric/tri/imglib.nsf/Images/space.gif/$FILE/space.gif' document.images[i].width=0 document.images[i].height=0 } if( document.images[i].src.indexOf('collapse.gif' ) != -1) { document.images[i].src='/Internet/tric/tri/imglib.nsf/Images/space.gif/$File/space.gif' document.images[i].width=0 document.images[i].height=0 } if( document.images[i].src.indexOf('ecblank.gif') != -1) { document.images[i].src='/Internet/tric/tri/imglib.nsf/Images/space.gif/$File/space.gif' document.images[i].width=0 document.images[i].height=0 } } } //END OF IMAGEREPLACE FUNCTION //BEGINNING OF IMFULL FUNCTION function imFull(site, bIsMaximized) { var iStartX=0 var iStartY=0 var iWinWidth=0 var iWinHeight=0 if (bIsMaximized==true) { iWinWidth=screen.availWidth-10 iWinHeight=screen.availHeight-48 if((navigator.appName.indexOf("Netscape") >=0) && (navigator.appVersion.indexOf("5")>=0)) { iWinWidth=screen.availWidth-6 iWinHeight=screen.availHeight-41 } } else { iStartX=parseInt((screen.availWidth-691)/2) iStartY=parseInt((screen.availHeight-500)/2) iWinWidth=691 iWindHeight=500 } if (iStartX<0) { iStartX=0 } if (iStartX<0) { iStartX=0 } if (navigator.appName.indexOf("Microsoft") != -1) { thewindow=window.open(site,"thewindow","width=" + iWinWidth + ",height=" + iWinHeight+",resizable=no,scrollbars=yes,status=yes,left="+iStartX+",top="+iStartY) } else { thewindow=window.open(site,"thewindow","width=" + iWinWidth + ",height=" + iWinHeight + ",resizable=no,scrollbars=yes,status=yes,screenX=" + iStartX + ",screenY=" + iStartY) } } //END OF IMFULL FUNCTION //J functions //BEGINNING OF JOBS FUNCTION function jobs() { thewindow=window.open("http://www.bcbssc.com/bcbs/isjobs_unit.nsf/chcwebview","","width=691,height=500,resizable=no,scrollbars=yes,status=yes") } //END OF JOBS FUNCTION //L functions //BEGINNING OF LAYERWRITE FUNCTION function layerWrite(txt){ txt +="\n"; if(ns4){ var lyr=oframe.document.overDiv.document lyr.write(txt) lyr.close() }else if(ie4){ oframe.document.all["overDiv"].innerHTML=txt }else if(ns6){ range=oframe.document.createRange(); range.setStartBefore(over); domfrag=range.createContextualFragment(txt); while(over.hasChildNodes()){ over.removeChild(over.lastChild); } over.appendChild(domfrag); } } //ENDING OF LAYERWRITE FUNCTION //M functions //BEGINNING OF MBM FUNCTION function mbm(site) { thewindow=window.open(site,"window1","width=775,height=550,resizable=no,scrollbars=yes,status=yes") } //END OF MBM FUNCTION //BEGINNING OF MIM FUNCTION function mim(site) { thewindow=window.open(site,"window1","width=691,height=530,resizable=no,scrollbars=yes,status=yes") } //END OF MIM FUNCTION //BEGINNING OF MM_PRELOADIMAGES FUNCTION function MM_preloadImages() { //v2.0 if(document.images) { var imgFiles = MM_preloadImages.arguments; if(document.preloadArray==null) { document.preloadArray = new Array() var i = document.preloadArray.length with (document) for (var j=0; j < imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#") { preloadArray[i] = new Image preloadArray[i++].src = imgFiles[j] } } } } //END OF MM_PRELOADIMAGES FUNCTION //BEGINNING OF MM_SWAPIMAGE FUNCTION function MM_swapImage() { var i, j=0, objStr, obj, swapArray=new Arry, oldArray=document.MM_swapImgData for (i=0; i < (MM_swapImage.arguments.length-2); i+=3) { objStr = MM_swapImage.arguments[(navigator.appName == 'Netscape')?i:i+1] if((objStr.indexOf('document.layers[')==0 && document.layers==null) || (objStr.indexOf('document.all[')==0 && document.all==nul)) { objStr = 'document'+objStr.substring(objStr.lastIndexOf('.'),objStr.length) obj=eval(objStr) if(obj != null) { swapArray[j++] = obj swapArray[j++] = (oldArray==null || oldArray[j-1]!=obj)?obj.src:oldArray[j] obj.src = MM_swapImage.arguments[i+2] } } document.MM_swapImgData = swapArray } } //END OF MM_SWAPIMAGE FUNCTION //BEGINNING OF MM_SWAPIMGRESTORE FUNCTION function MM_swapImgRestore() { if(document.MM_swapImgData != null) { for (var i=0; i < (document.MM_swapImgData.length-1); i+=2) document.MM_swapImgData[i].src = document.MM_swapImgData[i+1] } } //END OF MM_SWAPIMGRESTORE FUNCTION //BEGINNING OF MOUSEMOVE FUNCTION function mouseMove(e){ if((ns4)||(ns6)){ox=e.pageX;oy=e.pageY;} if(ie4){ox=event.x;oy=event.y;} if(ie5){ox=event.x+oframe.document.body.scrollLeft;oy=event.y+oframe.document.body.scrollTop;} if(oallowmove==1){ placeLayer(); } } //END OF MOUSEMOVE FUNCTION //BEGINNING OF MSGBRDWIN FUNCTION function msgBrdWin(site) { newWin=window.open(site,"CFWin","width=750,height=550,resizable=yes,scrollbars=yes,status=no,location=no,toolbar=yes") } //END OF MSGBRDWIN FUNCTION //N functions //BEGINNING OF ND FUNCTION function nd(){ if(oremovecounter >=1){oshowingsticky=0}; if((ns4)||(ie4)||(ns6)){ if(oshowingsticky==0){ oallowmove=0; if(over !=null)hideObject(over); }else{ oremovecounter++; } } return true; } function no_overlib(){ return ver3fix; } //ENDING OF ND FUNCTION //BEGINING OF NW FUNCTION function nw(site) { thewindow=window.open(site,"window1","width=691,height=500,resizable=yes,scrollbars=yes,status=yes") } //END OF NW FUNCTION //O functions function openLink(lnk) { window.location="/internet/hrsm/mdc/medicaid.nsf/"+lnk; } //BEGINNING OF OPT_FRAME FUNCTION function opt_FRAME(frm){ oframe=compatibleframe(frm)? frm : ol_frame; if((ns4)||(ie4 ||(ns6))){ if(ns4)over=oframe.document.overDiv; if(ie4)over=oframe.overDiv.style; if(ns6)over=oframe.document.getElementById("overDiv"); } return 0; } function opt_FUNCTION(callme){ otext=callme() return 0; } //END OF OPT_FRAME FUNCTION //BEGINNING OF OL_CONTENT_BACKGROUND FUNCTION function ol_content_background(text, picture, hasfullhtml){ if(hasfullhtml){ txt=text; }else{ if(ocss==CSSCLASS)txt="
"+text+"
"; if(ocss==CSSSTYLE)txt="
"+text+"
"; if(ocss==CSSOFF)txt="
"+text+"
"; } set_background(picture); return txt; } //END OF OL_CONTENT_BACKGROUND FUNCTION //BEGINNING OF OL_CONTENT_CAPTION FUNCTION function ol_content_caption(text, title, close){ closing=""; closeevent="onMouseOver"; if(ocloseclick==1)closeevent="onClick"; if(ocapicon !="")ocapicon=" "; if(close !=""){ if(ocss==CSSCLASS)closing=""+close+""; if(ocss==CSSSTYLE)closing=""+close+""; if(ocss==CSSOFF)closing=""+close+""; } if(ocss==CSSCLASS)txt="
"+closing+"
"+ocapicon+title+"
"+text+"
"; if(ocss==CSSSTYLE)txt="
"+closing+"
"+ocapicon+title+"
"+text+"
"; if(ocss==CSSOFF)txt="
"+closing+"
"+ocapicon+title+"
"+text+"
"; set_background(""); return txt; } //END OF OL_CONTENT_CAPTION FUNCTION //BEGINNING OF OL_CONTENT_SIMPLE FUNCTION function ol_content_simple(text){ if(ocss==CSSCLASS)txt="
"+text+"
"; if(ocss==CSSSTYLE)txt="
"+text+"
"; if(ocss==CSSOFF)txt="
"+text+"
"; set_background(""); return txt; } //END OF OL_CONTENT_SIMPLE FUNCTION //BEGINNING OF OPENDOCUMENTMANAGER FUNCTION function openDocumentManager() { var path="/internet/hrsm/mdc/medicaid.nsf" targetEditorName = "ewep"+eWebEditPro.event.srcName targetEditorInstance = eWebEditPro.event.srcName window.open(path + '/Document+Manager?OpenForm', 'documentmanager', 'width=550,height=350,scrollbars=yes,statusbar=yes'); } //END OF OPENDOCUMENTMANAGER FUNCTION //BEGINNING OF OPENMEDIAMANAGER FUNCTION function openMediaManager() { var pathInfo="/internet/hrsm/mdc/mdcd_img.nsf" targetEditorName = "ewep"+eWebEditPro.event.srcName targetEditorInstance = eWebEditPro.event.srcName window.open(pathInfo+'/Media+Manager?OpenForm', 'mediamanager', 'width=500,height=350,scrollbars'); } //END OF OPENMEDIAMANAGER FUNCTION //BEGINNING OF OPENUP FUNCTION function openUp(exp) { newURL=window.location+"&Expand="+exp window.location.replace(newURL) } //END OF OPENUP FUNCTION //BEGINNING OF OVERLIB FUNCTION function overlib(){ otext=ol_text; ocap=ol_cap; osticky=ol_sticky; obackground=ol_background; oclose=ol_close; ohpos=ol_hpos; ooffsetx=ol_offsetx; ooffsety=ol_offsety; ofgcolor=ol_fgcolor; obgcolor=ol_bgcolor; otextcolor=ol_textcolor; ocapcolor=ol_capcolor; oclosecolor=ol_closecolor; owidth=ol_width; oborder=ol_border; ostatus=ol_status; oautostatus=ol_autostatus; oheight=ol_height; osnapx=ol_snapx; osnapy=ol_snapy; ofixx=ol_fixx; ofixy=ol_fixy; ofgbackground=ol_fgbackground; obgbackground=ol_bgbackground; opadxl=ol_padxl; opadxr=ol_padxr; opadyt=ol_padyt; opadyb=ol_padyb; ofullhtml=ol_fullhtml; ovpos=ol_vpos; oaboveheight=ol_aboveheight; ocapicon=ol_capicon; otextfont=ol_textfont; ocaptionfont=ol_captionfont; oclosefont=ol_closefont; otextsize=ol_textsize; ocaptionsize=ol_captionsize; oclosesize=ol_closesize; otimeout=ol_timeout; ofunction=ol_function; odelay=ol_delay; ohauto=ol_hauto; ovauto=ol_vauto; ocloseclick=ol_closeclick; ocss=ol_css; ofgclass=ol_fgclass; obgclass=ol_bgclass; otextfontclass=ol_textfontclass; ocaptionfontclass=ol_captionfontclass; oclosefontclass=ol_closefontclass; opadunit=ol_padunit; oheightunit=ol_heightunit; owidthunit=ol_widthunit; otextsizeunit=ol_textsizeunit; otextdecoration=ol_textdecoration; otextstyle=ol_textstyle; otextweight=ol_textweight; ocaptionsizeunit=ol_captionsizeunit; ocaptiondecoration=ol_captiondecoration; ocaptionstyle=ol_captionstyle; ocaptionweight=ol_captionweight; oclosesizeunit=ol_closesizeunit; oclosedecoration=ol_closedecoration; oclosestyle=ol_closestyle; ocloseweight=ol_closeweight; if((ns4)||(ie4)||(ns6)){ oframe=ol_frame; if(ns4)over=oframe.document.overDiv if(ie4)over=oframe.overDiv.style if(ns6)over=oframe.document.getElementById("overDiv"); } var c=-1; var ar=arguments; for(i=0;i < ar.length;i++){ if(c < 0){ if(ar[i]==1){ otext=ol_texts[ar[++i]]; }else{ otext=ar[i]; } c=0; }else{ if(ar[i]==1){otext=ol_texts[ar[++i]];continue;} if(ar[i]==2){ocap=ol_caps[ar[++i]];continue;} if(ar[i]==3){osticky=1;continue;} if(ar[i]==4){obackground=ar[++i];continue;} if(ar[i]==NOCLOSE){oclose="";continue;} if(ar[i]==6){ocap=ar[++i];continue;} if(ar[i]==9 || ar[i]==7 || ar[i]==8){ohpos=ar[i];continue;} if(ar[i]==10){ooffsetx=ar[++i];continue;} if(ar[i]==11){ooffsety=ar[++i];continue;} if(ar[i]==12){ofgcolor=ar[++i];continue;} if(ar[i]==13){obgcolor=ar[++i];continue;} if(ar[i]==14){otextcolor=ar[++i];continue;} if(ar[i]==15){ocapcolor=ar[++i];continue;} if(ar[i]==16){oclosecolor=ar[++i];continue;} if(ar[i]==17){owidth=ar[++i];continue;} if(ar[i]==18){oborder=ar[++i];continue;} if(ar[i]==19){ostatus=ar[++i];continue;} if(ar[i]==20){oautostatus=1;continue;} if(ar[i]==21){oautostatus=2;continue;} if(ar[i]==22){oheight=ar[++i];oaboveheight=ar[i];continue;}// Same param again. if(ar[i]==23){oclose=ar[++i];continue;} if(ar[i]==24){osnapx=ar[++i];continue;} if(ar[i]==25){osnapy=ar[++i];continue;} if(ar[i]==26){ofixx=ar[++i];continue;} if(ar[i]==27){ofixy=ar[++i];continue;} if(ar[i]==28){ofgbackground=ar[++i];continue;} if(ar[i]==29){obgbackground=ar[++i];continue;} if(ar[i]==30){opadxl=ar[++i];opadxr=ar[++i];continue;} if(ar[i]==31){opadyt=ar[++i];opadyb=ar[++i];continue;} if(ar[i]==34){ofullhtml=1;continue;} if(ar[i]==36 || ar[i]==35){ovpos=ar[i];continue;} if(ar[i]==37){ocapicon=ar[++i];continue;} if(ar[i]==38){otextfont=ar[++i];continue;} if(ar[i]==39){ocaptionfont=ar[++i];continue;} if(ar[i]==40){oclosefont=ar[++i];continue;} if(ar[i]==41){otextsize=ar[++i];continue;} if(ar[i]==42){ocaptionsize=ar[++i];continue;} if(ar[i]==43){oclosesize=ar[++i];continue;} if(ar[i]==44){opt_FRAME(ar[++i]);continue;} if(ar[i]==45){otimeout=ar[++i];continue;} if(ar[i]==46){opt_FUNCTION(ar[++i]);continue;} if(ar[i]==47){odelay=ar[++i];continue;} if(ar[i]==48){ohauto=(ohauto==0)? 1 : 0;continue;} if(ar[i]==49){ovauto=(ovauto==0)? 1 : 0;continue;} if(ar[i]==50){ocloseclick=(ocloseclick==0)? 1 : 0;continue;} if(ar[i]==51){ocss=ar[i];continue;} if(ar[i]==52){ocss=ar[i];continue;} if(ar[i]==53){ocss=ar[i];continue;} if(ar[i]==54){ofgclass=ar[++i];continue;} if(ar[i]==55){obgclass=ar[++i];continue;} if(ar[i]==56){otextfontclass=ar[++i];continue;} if(ar[i]==57){ocaptionfontclass=ar[++i];continue;} if(ar[i]==58){oclosefontclass=ar[++i];continue;} if(ar[i]==59){opadunit=ar[++i];continue;} if(ar[i]==60){oheightunit=ar[++i];continue;} if(ar[i]==61){owidthunit=ar[++i];continue;} if(ar[i]==62){otextsizeunit=ar[++i];continue;} if(ar[i]==63){otextdecoration=ar[++i];continue;} if(ar[i]==64){otextstyle=ar[++i];continue;} if(ar[i]==65){otextweight=ar[++i];continue;} if(ar[i]==66){ocaptionsizeunit=ar[++i];continue;} if(ar[i]==67){ocaptiondecoration=ar[++i];continue;} if(ar[i]==68){ocaptionstyle=ar[++i];continue;} if(ar[i]==69){ocaptionweight=ar[++i];continue;} if(ar[i]==70){oclosesizeunit=ar[++i];continue;} if(ar[i]==71){oclosedecoration=ar[++i];continue;} if(ar[i]==72){oclosestyle=ar[++i];continue;} if(ar[i]==73){ocloseweight=ar[++i];continue;} } } if(odelay==0){ return overlib350(); }else{ odelayid=setTimeout("overlib350()", odelay); if(osticky){ return false; }else{ return true; } } } //END OF OVERLIB FUNCTION //BEGINNING OF OVERLIB350 FUNCTION function overlib350(){ var layerhtml; if(obackground !="" || ofullhtml){ layerhtml=ol_content_background(otext, obackground, ofullhtml); }else{ if(ofgbackground !="" && ocss==CSSOFF){ ofgbackground="BACKGROUND=\""+ofgbackground+"\""; } if(obgbackground !="" && ocss==CSSOFF){ obgbackground="BACKGROUND=\""+obgbackground+"\""; } if(ofgcolor !="" && ocss==CSSOFF){ ofgcolor="BGCOLOR=\""+ofgcolor+"\""; } if(obgcolor !="" && ocss==CSSOFF){ obgcolor="BGCOLOR=\""+obgcolor+"\""; } if(oheight > 0 && ocss==51){ oheight="HEIGHT=" + oheight; }else{ oheight=""; } if(ocap==""){ layerhtml=ol_content_simple(otext); }else{ if(osticky){ layerhtml=ol_content_caption(otext, ocap, oclose); }else{ layerhtml=ol_content_caption(otext, ocap, ""); } } } if(osticky){ oshowingsticky=1; oremovecounter=0; } layerWrite(layerhtml); if(oautostatus > 0){ ostatus=otext; if(oautostatus > 1){ ostatus=ocap; } } oallowmove=0; if(otimeout > 0){ if(otimerid > 0)clearTimeout(otimerid); otimerid=setTimeout("cClick()", otimeout); } disp(ostatus); if(osticky){ oallowmove=0; return false; }else{ return true; } } //END OF OVERLIB350 FUNCTION //P functions //BEGINNING OF PDEMO FUNCTION function pdemo(site) { thewindow=window.open(site,"window1","width=800,height=600,resizable=no,scrollbars=yes,status=yes") } //END OF PDEMO FUNCTION //BEGINNING OF PDEMOGLOSSFUNCTION function pdemoGloss(site) { thewindow=window.open(site,"window1","width=700,height=400,resizable=no,scrollbars=yes,status=yes") } //END OF PDEMO FUNCTION //BEGINNING OF PLACELAYER FUNCTION function placeLayer(){ var placeX, placeY; if(ofixx > -1){ placeX=ofixx; }else{ winoffset=(ie4)? oframe.document.body.scrollLeft : oframe.pageXOffset; if(ie4)iwidth=oframe.document.body.clientWidth; if(ns4)iwidth=oframe.innerWidth;// was screwed in mozilla, fixed now? if(ns6)iwidth=oframe.outerWidth; if(ohauto==1){ if((ox - winoffset)>((eval(iwidth))/ 2)){ ohpos=7; }else{ ohpos=8; } } if(ohpos==9){// Center placeX=ox+ooffsetx-(owidth/2); } if(ohpos==8){// Right placeX=ox+ooffsetx; if((eval(placeX)+ eval(owidth))>(winoffset + iwidth)){ placeX=iwidth + winoffset - owidth; if(placeX < 0)placeX=0; } } if(ohpos==7){// Left placeX=ox-ooffsetx-owidth; if(placeX < winoffset)placeX=winoffset; } if(osnapx > 1){ var snapping=placeX % osnapx; if(ohpos==7){ placeX=placeX -(osnapx + snapping); }else{ placeX=placeX +(osnapx - snapping); } if(placeX < winoffset)placeX=winoffset; } } if(ofixy > -1){ placeY=ofixy; }else{ scrolloffset=(ie4)? oframe.document.body.scrollTop : oframe.pageYOffset; if(ovauto==1){ if(ie4)iheight=oframe.document.body.clientHeight; if(ns4)iheight=oframe.innerHeight; if(ns6)iheight=oframe.outerHeight; iheight=(eval(iheight))/ 2; if((oy - scrolloffset)> iheight){ ovpos=35; }else{ ovpos=36; } } if(ovpos==35){ if(oaboveheight==0){ var divref=(ie4)? oframe.document.all['overDiv'] : over; oaboveheight=(ns4)? divref.clip.height : divref.offsetHeight; } placeY=oy -(oaboveheight + ooffsety); if(placeY < scrolloffset)placeY=scrolloffset; }else{ placeY=oy + ooffsety; } if(osnapy > 1){ var snapping=placeY % osnapy; if(oaboveheight > 0 && ovpos==35){ placeY=placeY -(osnapy + snapping); }else{ placeY=placeY +(osnapy - snapping); } if(placeY < scrolloffset)placeY=scrolloffset; } } repositionTo(over, placeX, placeY); } //END OF PLACELAYER FUNCTION //Q functions //BEGINNING OF QLDEL FUNCTION function qlDel(docID) { tobDelList="" if (thisform.toBDeleted.value.indexOf(docID)==-1) { if (thisform.toBDeleted.value=="") { thisform.toBDeleted.value=docID } else { thisform.toBDeleted.value=thisform.toBDeleted.value+","+docID } } else { idList=thisform.toBDeleted.value.split(",") for (i=0; i < idList.length; i++) { if(idList[i]!=docID) { if(tobDelList=="") { tobDelList=idList[i] } else { tobDelList=tobDelList+","+idList[i] } } } thisform.toBDeleted.value=tobDelList } } //END OF QLDEL FUNCTION //R functions //BEGINNING OF REBUILDSECTION FUNCTION function rebuildSection() { checkAgainst=document.forms[0].Area[document.forms[0].Area.selectedIndex].text document.forms[0].Section.length=1 JSArr=document.forms[0].JSAreas.value.split("; ") for(b=0; b < JSArr.length; b++) { opText=JSArr[b] findSemi=opText.indexOf(":") leftSemi=opText.substr(0,findSemi) if (leftSemi==checkAgainst) { document.forms[0].Section.length++ var indx=document.forms[0].Section.length-1 document.forms[0].Section.options[indx].text=opText.substr(findSemi+1, opText.length) document.forms[0].Section.options[indx].value=opText.substr(findSemi+1, opText.length) } } } //END OF REBUILDSECTION FUNCTION //BEGINNING OF REDIR FUNCTION function redir() { window.location= ("javascript:history.back(-2)") } //END OF REDIR FUNCTION //BEGINNING OF REMREC FUNCTION function remRec() { var f = document.forms[0] if (f.rec.options.selectedIndex >= 0) { counter = 0 found = false n = f.rec.length while (counter < n) { if (found) { counter = 0 } if (f.rec.options[counter].selected) { f.rec.options[counter] = null found = true n = f.rec.length } else{ counter = counter +1 found=false } } } else { alert("You must select an entry to remove") } } //END OF REMREC FUNCTION //BEGINNING OF REPLACESTRING FUNCTION function replaceString(orgString,toBRep,repWith) { strLen=orgString.length repLen=toBRep.length newStr="" for(i=0;i < strLen;i++) { lookAt=orgString.substring(i,i+repLen) if(lookAt==toBRep) { newStr+=repWith } else { newStr+=lookAt } } return newStr } //END OF REPLACESTRING FUNCTION //BEGINNING OF REPOSITIONTO FUNCTION function repositionTo(obj,xL,yL){ if((ns4)||(ie4)){ obj.left=xL; obj.top=yL; }else if(ns6){ obj.style.left=xL + "px"; obj.style.top=yL+ "px"; } } //END OF REPOSITIONTO FUNCTION //S functions //BEGINNING OF SENDMAIL FUNCTION function sendEmail() { var f=document.forms[0]; var qstr = f.Query_String.value; var param = qstr.substring(qstr.indexOf("src=")); window.location = f.dbName.value + "/DispWebHelp?OpenForm&Phase=1&"+ param; } //END OF SENDMAIL FUNCTION //BEGINNING OF SET_BACKGROUND FUNCTION function set_background(pic){ if(pic==""){ if(ie4)over.backgroundImage="none"; if(ns6)over.style.backgroundImage="none"; }else{ if(ns4){ over.background.src=pic; }else if(ie4){ over.backgroundImage="url("+pic+")"; }else if(ns6){ over.style.backgroundImage="url("+pic+")"; } } } //END OF SET_BACKGROUND FUNCTION //BEGINNING OF SHIFTACTIONBAR FUNCTION function ShiftActionBar() { ActionBarLayer.style.pixelTop = document.body.scrollTop ActionBarLayer.style.pixelLeft = document.body.scrollLeft var cString = "rect(" + document.body.scrollTop + " auto auto auto)" DataLayer.style.clip = cString } //END OF SHIFTACTIONBAR FUNCTION //BEGINNING OF SHOWTHIS FUNCTION function showThis(toExp,docType,openPage){ openPage=thisform.dbName.value + "/" + openPage + "?OpenDocument" if(window.location.href.indexOf("=")!=-1) { exp=window.location.href.substring(window.location.href.indexOf("=")+1,window.location.href.length) } else { exp=0 } if(toExp==exp | docType=="doc") { window.location.assign(openPage) } else { if(docType=="ar") { window.location.assign(openPage + "&Expand=" + toExp) } } } //END OF SHOWTHIS FUNCTION //BEGINNING OF SHOWOBJECT FUNCTION function showObject(obj){ if(ns4)obj.visibility="show"; else if(ie4)obj.visibility="visible"; else if(ns6)obj.style.visibility="visible"; } //END OF SHOWOBJECT FUNCTION //V functions //BEGINNING OF VALCOMMENTS FUNCTION function valComments() { var allOK=true var newline="\n" var errMsg = "Please complete the following fields as they are required for submission:"+newline if(thisform.Comments.value=="") { errMsg+=newline+"Explanation for this revision" allOK=false thisform.Comments.focus() } if(thisform.Approval1[0].checked==false && thisform.Approval1[1].checked == false && thisform.Approval1[2].checked == false) { errMsg+=newline+"Status (is this In Progress, Ready For Approval or Approved?)" allOK=false thisform.Approval1[0].focus() } if(thisform.Title.value=="") { errMsg+=newline+"Title" allOK=false thisform.Title.focus() } if(window.opener) { thisform.inPreview.value="Yes" } else { thisform.inPreview.value="" } if(allOK==false) { alert(errMsg) } else { eWebEditPro.save() thisform.submit() } } //END OF VALCOMMENTS FUNCTION //BEGINNING OF VALFAQ FUNCTION function valFAQ() { var thisform = document.forms[0] var allOK=true var newline="\n" var errMsg = "Please complete the following fields as they are required for submission:"+newline if(thisform.Name.value=="") { errMsg+=newline+"Name" allOK=false thisform.Name.focus() } if(thisform.EmailAddress.value=="") { errMsg+=newline+"E-mail Address" allOK=false thisform.EmailAddress.focus() } else { if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(thisform.EmailAddress.value)){ } else { errMsg+=newline+"Invalid E-mail Address! Please re-enter." allOK=false thisform.EmailAddress.focus() } } if(thisform.Organization.value=="") { errMsg+=newline+"Organization" allOK=false thisform.Organization.focus() } if(thisform.Question.value=="") { errMsg+=newline+"Question" allOK=false thisform.Question.focus() } if(allOK==false) { alert(errMsg) } else { thisform.submit() } } //END OF VALFAQ FUNCTION //BEGINNING OF VALFAQPAGE FUNCTION function valFAQPage() { var allOK=true var newline="\n" var errMsg = "Please complete the following fields as they are required for submission:"+newline if(thisform.Comments.value=="") { errMsg+=newline+"Explanation for this revision" allOK=false thisform.Comments.focus() } if(thisform.Approval1[0].checked==false && thisform.Approval1[1].checked == false && thisform.Approval1[2].checked == false) { errMsg+=newline+"Status (is this In Progress, Ready For Approval or Approved?)" allOK=false thisform.Approval1[0].focus() } if(thisform.Title.value=="") { errMsg+=newline+"Question" allOK=false thisform.Title.focus() } if(allOK==false) { alert(errMsg) } else { eWebEditPro.save() thisform.submit() } } //END OF VALFAQPAGE FUNCTION //BEGINNING OF VALHOMEPAGE FUNCTION function valHomePage() { var allOK=true var newline="\n" var errMsg = "Please complete the following fields as they are required for submission:"+newline if(thisform.Comments.value=="") { errMsg+=newline+"Explanation for this revision" allOK=false thisform.Comments.focus() } if(thisform.Approval1[0].checked==false && thisform.Approval1[1].checked == false && thisform.Approval1[2].checked == false) { errMsg+=newline+"Status (is this In Progress, Ready For Approval or Approved?)" allOK=false thisform.Approval1[0].focus() } if(allOK==false) { alert(errMsg) } else { eWebEditPro.save() thisform.submit() } } //END OF VALHOMEPAGE FUNCTION //BEGINNING OF VALIDATEBROWSER FUNCTION function validateBrowser() { var ieRequired = 5.5; // This is minimum version number required for Internet Explorer var nnRequired = 6.2; // This is minimum version number required for Netscape Navigator var xy = navigator.appVersion; xz = xy.substring(0,4); var js_dbpath = "/internet/hrsm/mdc/medicaid.nsf"; var designElmnt = "/VersionAlert?openform&ie="+ieRequired+"&nn="+nnRequired; var load = true; if (navigator.userAgent.toLowerCase().indexOf("mac") == -1) { if (navigator.appName.indexOf("Netscape") == -1) { var agent=navigator.userAgent.toLowerCase(); var ieVersionNum; var ieIndex = agent.indexOf("msie"); if (ieIndex > -1) { var tempstr = agent.substr(ieIndex+4); var ind2 = tempstr.indexOf(";"); var ievers = tempstr.substring(1,ind2); ieVersionNum = parseFloat(ievers); if (ieVersionNum < ieRequired) { load = false; } } } else { var where = navigator.userAgent.indexOf("Netscape"); var navver = navigator.userAgent.substr(where+8); var realnavver = navver.substr(navver.lastIndexOf("/")+1); var navcheck = parseFloat(realnavver.substr(0,4)); if(navcheck < nnRequired){ load = false; } } if (!load) { window.top.location.replace(js_dbpath + designElmnt); } } return load } //END OF VALIDATEBROWSER FUNCTION //BEGINNING OF VALIDATEFORM FUNCTION function validateForm(form) { var errorTxt = ""; var subFlag = ""; if (form.requestor.value == "" || form.requestor.value.indexOf(".") == -1) { alert("Please fill enter your name as it appears in TAO - firstname.lastname") form.requestor.focus() return false } if (form.approvalComments.value == "") { alert("You must enter your comments before submitting. Please be specific!") form.approvalComments.focus() return false } if (form.LOB.value == "") { alert("You must enter the LOB for this change.") form.approvalComments.focus() return false } if (form.CostCenter.value == "") { alert("You must enter the cost center for this change.") form.approvalComments.focus() return false } if (form.rec.length < 1) { alert("Please enter recipient TAO names.") form.editRec.focus() return false } var appCheck = false for (i=0 ; i < form.app.length; i++){ if (form.app[i].checked) { appCheck = true break } } if (appCheck == false) { alert("Please select a status") return false } form.submit() } //END OF VALIDATEFORM FUNCTION //BEGINNING OF VALINPUTFORMS FUNCTION function valInputForms() { var allOK=true var newline="\n" var errMsg = "Please complete the following fields as they are required for submission:"+newline if(thisform.EmailAdd.value=="") { errMsg+=newline+"E-mail Address" allOK=false thisform.EmailAdd.focus() } if(thisform.QC.value=="") { errMsg+=newline+"Question/Concern" allOK=false thisform.QC.focus() } if(allOK==false) { alert(errMsg) } else { // modified 1-13 to accomodate adding URL that caused error to email. AB if (document.referrer.indexOf("src=") != -1) { thisform.QC.value = thisform.QC.value + "\n\nError Generating URL: " + document.referrer.substring(document.referrer.indexOf("src=") +4); } thisform.submit() } } //END OF VALINPUTFORMS FUNCTION //BEGINNING OF VALRI FUNCTION function valRI() { thisform.CameFrom.value=thisform.HTTP_Referer.value var allOK=true var newline="\n" var errMsg = "Please complete the following fields as they are required for submission:"+newline if(thisform.GroupName.value=="") { errMsg+=newline+"Group Name" allOK=false thisform.GroupName.focus() } if(thisform.Addr1.value=="") { errMsg+=newline+"Address 1" allOK=false thisform.Addr1.focus() } if(thisform.City.value=="") { errMsg+=newline+"City" allOK=false thisform.City.focus() } if(thisform.State.selectedIndex==40 && thisform.County.selectedIndex==0) { errMsg+=newline+"County" allOK=false thisform.County.focus() } if(thisform.ZipCode.value=="") { errMsg+=newline+"Zip Code" allOK=false thisform.ZipCode.focus() } if(thisform.Phone.value=="") { errMsg+=newline+"Phone" allOK=false thisform.Phone.focus() } if(thisform.EmailAdd.value=="") { errMsg+=newline+"E-mail Address" allOK=false thisform.EmailAdd.focus() } if(thisform.NumOfEmp.value=="") { errMsg+=newline+"Number of Employees" allOK=false thisform.NumOfEmp.focus() } if(thisform.EmpBeneMgr.value=="") { errMsg+=newline+"Employee Benefits Manager" allOK=false thisform.EmpBeneMgr.focus() } if(thisform.CurrCov[0].checked==false && thisform.CurrCov[1].checked==false) { errMsg+=newline+"Does the group currently have coverage?" allOK=false} if(allOK==false) { alert(errMsg) } else { thisform.submit() } } //END OF VALRI FUNCTION //BEGINNING OF VALSPLREG FUNCTION function valSPLReg() { var thisform = document.forms[0] var allOK=true var newline="\n" var errMsg = "Please complete the following fields as they are required for submission:"+newline if(thisform.FirstName.value=="") { errMsg+=newline+"First Name" allOK=false thisform.FirstName.focus() } if(thisform.LastName.value=="") { errMsg+=newline+"Last Name" allOK=false thisform.LastName.focus() } if(thisform.ProviderNumber.value=="") { errMsg+=newline+"Provider Number" allOK=false thisform.ProviderNumber.focus() } if(thisform.Organization.value=="") { errMsg+=newline+"Organization" allOK=false thisform.Organization.focus() } prvdType = thisform.ProviderType if (prvdType.options[0].selected) { errMsg+=newline+"Provider Type" allOK=false prvdType.focus() } if(thisform.WorkPhone.value=="") { errMsg+=newline+"Work Phone" allOK=false thisform.WorkPhone.focus() } if(thisform.Fax.value=="") { errMsg+=newline+"Fax" allOK=false thisform.Fax.focus() } if(thisform.EmailAddress.value=="") { errMsg+=newline+"E-mail" allOK=false thisform.EmailAddress.focus() } else { if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(thisform.EmailAddress.value)){ } else { errMsg+=newline+"Invalid E-mail Address! Please re-enter." allOK=false thisform.EmailAddress.focus() } } if(allOK==false) { alert(errMsg) } else { thisform.submit() } } //END OF VALSPLREG FUNCTION //BEGINNING OF VALTRAINREG FUNCTION function valTrainReg() { var thisform = document.forms[0] var allOK=true var newline="\n" var errMsg = "Please complete the following fields as they are required for submission:"+newline if(thisform.FirstName.value=="") { errMsg+=newline+"First Name" allOK=false thisform.FirstName.focus() } if(thisform.LastName.value=="") { errMsg+=newline+"Last Name" allOK=false thisform.LastName.focus() } if(thisform.Title.value=="") { errMsg+=newline+"Title" allOK=false thisform.Title.focus() } if(thisform.ProviderNumber.value=="") { errMsg+=newline+"Provider Number" allOK=false thisform.ProviderNumber.focus() } if(thisform.Organization.value=="") { errMsg+=newline+"Organization" allOK=false thisform.Organization.focus() } if(thisform.WorkPhone.value=="") { errMsg+=newline+"Work Phone" allOK=false thisform.WorkPhone.focus() } if(thisform.Fax.value=="") { errMsg+=newline+"Fax" allOK=false thisform.Fax.focus() } if(thisform.EmailAddress.value=="") { errMsg+=newline+"E-mail" allOK=false thisform.EmailAddress.focus() } else { if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(thisform.EmailAddress.value)){ } else { errMsg+=newline+"Invalid E-mail Address! Please re-enter." allOK=false thisform.EmailAddress.focus() } } wrkshp = thisform.Workshop if (wrkshp.options[0].selected) { errMsg+=newline+"Workshop" allOK=false wrkshp.focus() } if(allOK==false) { alert(errMsg) } else { thisform.submit() } } //END OF VALTRAINREG FUNCTION //BEGINNING OF VALTRAINREGPAGE FUNCTION function valTrainRegPage() { var allOK=true var newline="\n" var errMsg = "Please complete the following fields as they are required for submission:"+newline if(thisform.Comments.value=="") { errMsg+=newline+"Explanation for this revision" allOK=false thisform.Comments.focus() } if(thisform.Approval1[0].checked==false && thisform.Approval1[1].checked == false && thisform.Approval1[2].checked == false) { errMsg+=newline+"Status (is this In Progress, Ready For Approval or Approved?)" allOK=false thisform.Approval1[0].focus() } if(thisform.Title.value=="") { errMsg+=newline+"Title" allOK=false thisform.Title.focus() } if(allOK==false) { alert(errMsg) } else { eWebEditPro.save() thisform.submit() } } //END OF VALTRAINREGPAGE FUNCTION //Begin - Script needed for marquee var swidth=521 var sheight=19 var sspeed=5 var sloop=6 i=1 function start(marqueetext){ if (document.all) return if (document.getElementById){ document.getElementById("slider").style.visibility="show" ns6marquee(document.getElementById('slider'), marqueetext) } } function ns6marquee(whichdiv, msgtext){ ns6div=eval(whichdiv) ns6div.innerHTML=msgtext ns6div.style.left=swidth//sheight sizeup=ns6div.style.width=1125 ns6slide() } function ns6slide(){ if (parseInt(ns6div.style.left)>=sizeup*(-1)){ ns6div.style.left=parseInt(ns6div.style.left)-sspeed setTimeout("ns6slide()",100) } else{ i+=1 if(i<=sloop) { ns6div.style.left=swidth//sheight ns6slide()} } } //End - Script needed for marquee