self.defaultStatus = ""; var currentDate = new Date(); var arrToc = new Array(); function setOn(objArg){ objArg.style.backgroundColor = "#819ccc"; return true; } function setOff(objArg){ objArg.style.backgroundColor = ""; return true; } function getElementStyle(elemID, IEStyleProp, CSSStyleProp) { var elem = document.getElementById(elemID); if (elem.currentStyle) { return elem.currentStyle[IEStyleProp]; } else if (window.getComputedStyle) { var compStyle = window.getComputedStyle(elem, ""); return compStyle.getPropertyValue(CSSStyleProp); } return ""; } function isBlank(str) { for (var i= 0; i < str.length; i ++) { var c = str.charAt(i); if (( c != ' ') && (c != '\n') && (c != '\t')) return false; } return true; } function writeToc(){ } function addToc(argFlag,argText,argHref){ if (argFlag) { ndx = arrToc.length; arrToc[ndx] = '' + argText + ''; } } function addTocObj(objName,argText,argHref){ if (!eval("window."+objName)) return true; linkArray = eval(objName); if (linkArray.length) { ndx = arrToc.length; arrToc[ndx] = '' + argText + ''; } } function writeLinks(objName,strClass,strTitle,synopsisOn,wrapperID,strHeader,maxCount,archiveOption,enableHilite){ archiveCount = 0; showArchived = false; showArchivedLink = true; markArchived = true; if (!eval("window."+objName)) return true; if (typeof(maxCount) == "undefined" || maxCount <= 0) maxCount = 999999; if (typeof(enableHilite) == "undefined") enableHilite = true; // 04-12-04 c.m. Turn on new item highlighting on by default. //if (typeof(archiveOption) != "undefined") showArchived = archiveOption; // 06-30-04 c.m. Include archived documents by default. if (typeof(archiveOption) != "undefined") { switch (archiveOption) { case -1 : showArchived = true; showArchivedLink = false; break; case 0 : showArchived = false; showArchivedLink = false; break; default: showArchived = false; showArchivedLink = true; } } linkArray = eval(objName); if (strClass == "") { strClass = "writelinkmargins"; strLinkClass = "writelink"; } if (strTitle) { document.write('

' + strTitle + '

'); } strQS = ""; if (wrapperID) strQS = '&wrapper=' + wrapperID; if (strHeader) strQS = strQS + "&header=" + strHeader; else if (strTitle) strQS = strQS + "&header=" + strTitle; ndx = 0; for (i in linkArray){ arrTmp = linkArray[i].split("|"); strStatus = arrTmp[6]; strReleaseDate = arrTmp[7]; if (strReleaseDate) strReleaseDate += "  "; if (strStatus == "4") archiveCount = archiveCount + 1; if (strStatus == "1" || (showArchived && strStatus == "4")) { // 12-30-03 c.m. Check for archived docs. if (ndx > maxCount) break; strHref = arrTmp[1]; qsParm = strQS; if (strHref.indexOf("?") == -1 && strQS) qsParm = "?" + strQS.slice(1); attribTarget = ""; if (arrTmp[3] != "_self") { //attribTarget = ' target="' + arrTmp[3] + '"'; strHref = "javascript: popUp('" + strHref + "','','height=600,width=800,scrollbars=yes,status=yes,location=yes,toolbar=yes,directories=yes,resizable=yes')"; qsParm = ""; attribTarget=""; } // 12-12-03 c.m. Disable mailto: urls strTmp2 = strHref.toLowerCase(); strSynopsis = arrTmp[2]; isEmail = false; if (strTmp2.indexOf("mailto:") > -1) { strTmp3 = getEmail(strTmp2); //strSynopsis = strSynopsis + "
" + strTmp3; strSynopsis = strSynopsis + "
" + strTmp3 + ""; // 02-11-03 c.m. Enable mailto: per Matt W. strHref = "#"; strClass = "nolink"; isEmail = true; } attribAlt = ' alt="' + arrTmp[0] + '"'; attribMouseOver = ""; attribTitle = ""; if (arrTmp[5]) { attribMouseOver = ' onmouseover="self.status=\'' + arrTmp[5] + '\'; return true; "'; attribAlt = ' alt="' + arrTmp[5] + '" '; attribTitle = ' title="' + arrTmp[5] + '" '; } strIcon = "> "; if (arrTmp[4] != "") strIcon = ' '; document.write('
'); if (isEmail) { document.write(arrTmp[0]);} else { tmpHeadline = strReleaseDate + arrTmp[0]; //if (enableHilite && tmpHeadline.indexOf("") > -1) { // tmpHeadline = '' + tmpHeadline + '' ; // } if (strHref.toLowerCase().indexOf("javascript:") > -1) qsParm = ""; // 05-10-04 c.m. No query string if javascript url document.write(strIcon + '' + tmpHeadline +'');} if (strStatus == "4") { //archiveCount = archiveCount + 1; document.write(' (Archived)'); } if (synopsisOn) { document.write('
' + strSynopsis + ''); } document.write('
'); ndx = ndx + 1; } // end if - check archive status } moreDocsHref = "../lucontentdoc/$$documents?opendocument&wrapper=" + wrapperID + "&archived=1&array=" + objName + "&header=" + strTitle; if (typeof(archiveOption) == "string" ) moreDocsText = archiveOption; //else //if (strTitle) // moreDocsText = "View all " + strTitle; else moreDocsText = "View all "+window.document.title+" " + strTitle; if (showArchivedLink && archiveCount){ document.write('
'); document.write('' + moreDocsText + ''); document.write('
'); } //document.write("
archiveCount=" + archiveCount + showArchived); } function fullDate(dateArg){ arrMonths = new Array("January","February","March","April","May","June","July","August","September","October","November","December"); monthNum = dateArg.getMonth(); strMonthName = monthNum.toString(); if ((monthNum >= 0) && (monthNum <= 11)) { strMonthName = arrMonths[monthNum]; } strDate = strMonthName + " " + dateArg.getDate().toString() + ", " + dateArg.getFullYear().toString(); return strDate; } function writeOptions(objName){ if (!eval("window."+objName)) return true; linkArray = eval(objName); for (i in linkArray){ arrTmp = linkArray[i].split("|"); strHref = arrTmp[1]; strSynopsis = arrTmp[2]; if (!strSynopsis) strSynopsis = arrTmp[0]; document.write('');} } function writeImage(objName,imgNdx){ if (!eval("window."+objName)) return true; linkArray = eval(objName); arrTmp = linkArray[imgNdx].split("|"); imgSrc = arrTmp[1]; imgAlt = arrTmp[2]; document.write(''+imgAlt+''); } function writeSingleLink(strPath,strClass,strTitle,wrapperID,strHeader,strTarget){ attribTarget = ""; if (strTarget) attribTarget = ' target="' + strTarget +'" '; strLinkClass = ""; if (strClass == "") { strClass = "writelinkmargins"; strLinkClass = "writelink";} strQS = ""; if (wrapperID) strQS = '&wrapper=' + wrapperID; if (strHeader) strQS = strQS + "&header=" + strHeader; //else //if (strTitle) // strQS = strQS + "&header=" + strTitle; strHref = strPath; if (strHref.indexOf("?") == -1 && strQS) strQS = "?" + strQS.slice(1); if (strClass != "inline") document.write('
'); document.write('' + strTitle + ''); if (strClass != "inline") document.write('
'); } function setImageProps(objImage,strArg){ if (strArg == "select") return true; arrProps = strArg.split("|"); objImage.src = arrProps[0]; objImage.title = unescape(arrProps[1]); } function openPage(strHref,wrapperID,strTarget){ strURL = strHref; if (strTarget == "" || strTarget == "_self") location.href = strHref + "&wrapper=" + wrapperID; else window.open(strURL); } function popUp(strURL,strTitle,strOptions){ objWin = window.open(strURL,strTitle,strOptions); } function getEmail(strArg){ strResult = strArg; beginPos = strArg.indexOf("mailto:"); startPos = 0; if (beginPos < 0) { return "";} else { startPos = beginPos + 7;} endPos = strArg.indexOf("?"); if (endPos > startPos) { strResult = strArg.slice(startPos,endPos);} else{ strResult = strArg.substr(startPos);} return strResult; } //use this function to set individual content block links to a different color function setLinkColors(divName) { var elem = document.getElementById( divName ); var sel = elem.getElementsByTagName( "a" ); for ( x = 0; x < sel.length; x++ ) { sel[x].style.color ="#4953B8"; sel[x].style.fontSize =11; } } function goContent(argPageID,argWrapper,argAction){ if (!argAction) argAction="opendocument"; strURL = "../lucontentdoc/" + argPageID + "?" + argAction + "&wrapper=" + argWrapper; location.href = strURL; return true; } function goContentForm(argPageID){ strURL = "../lucontentdoc/" + argPageID + "?editdocument&wrapper=" + thisUNID; location.href = strURL; return true; } function selectPage(objArg){ strValue = objArg[objArg.selectedIndex].value; if (strValue) location.href = "../pages/" + strValue + "?opendocument"; return true; } function setUser(username) { var the_cookie = "user=" + escape(username) + ";"; document.cookie = the_cookie + "path=/;"; } function printWindow(){ if (!window.print) alert("Sorry, this browser does not support this feature. Use >>File>>Print instead."); else window.print(); } function trim(value) { var temp = value; var obj = /^(\s*)([\W\w]*)(\b\s*$)/; if (obj.test(temp)) { temp = temp.replace(obj, '$2'); } var obj = / /g; while (temp.match(obj)) { temp = temp.replace(obj, " "); } return temp; } function validEmail(strArg){ arrTmp = strArg.split(","); validPattern = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9\-])+(\.[a-zA-Z0-9_-]+)+$/; for (e in arrTmp) { strEmail = trim(arrTmp[e]); if (!validPattern.test(strEmail)){ alert(strEmail + ' is not a valid Email address. Please re-enter.'); return false;} } return true; } function validDate(strArg){ strDate = trim(strArg); validPattern = /^((((0?[13578])|(1[02]))[\/|\-]?((0?[1-9]|[0-2][0-9])|(3[01])))|(((0?[469])|(11))[\/|\-]?((0?[1-9]|[0-2][0-9])|(30)))|(0?[2][\/\-]?(0?[1-9]|[0-2][0-9])))[\/\-]?\d{2,4}$/ ; if (!validPattern.test(strDate)){ alert(strDate + ' is not a valid Date in MM/DD/YY format. Please re-enter.'); return false;} else { return true;} }