function getElementsByClass(searchClass,node,tag) { var classElements = new Array(); if ( node == null ) node = document; if ( tag == null ) tag = '*'; var els = node.getElementsByTagName(tag); var elsLen = els.length; var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)"); for (i = 0, j = 0; i < elsLen; i++) { if ( pattern.test(els[i].className) ) { classElements[j] = els[i]; j++; } } return classElements; } // Nannette Thacker http://www.shiningstar.net function confirmSubmit(text) { var agree=confirm(text); //"This will take you away from the EPI Sports Demo, are you sure?"); if (agree) return true ; else return false ; } function selectAll() { for (var i = 0; i < document.myform.elements.length; i++) if(document.myform.elements[i].type == 'checkbox') if (!document.myform.elements[i].disabled) document.myform.elements[i].checked = 1; } function toggleAll() { for (var i = 0; i < document.myform.elements.length; i++) if(document.myform.elements[i].type == 'checkbox') if (!document.myform.elements[i].disabled) document.myform.elements[i].checked = !(document.myform.elements[i].checked); } /* function selectChildren(org) { for (var i = 0; i < document.myform.elements.length; i++) if(document.myform.elements[i].type == 'checkbox') if (document.myform.elements[i].name == "individual[" + org + "][]") document.myform.elements[i].checked = 1; } function checkParent(org) { for (var i = 0; i < document.myform.elements.length; i++) if(document.myform.elements[i].type == 'checkbox') if (document.myform.elements[i].name == "individual[*][]") while (document.myform.elements[i].checked) if (!(document.myform.elements[i].checked)) document.myform.elements['adddel[]'].checked = 0; //!(document.myform.elements[i].checked); } */ // autotab for phone numbers var isNN = (navigator.appName.indexOf("Netscape")!=-1); //function autoTab(input,len, e) { function TabNext(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; } function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=650,height=300,left=20,top=300');"); } if (document.images) { // Active Images onHome = new Image(); onHome.src = "/images/Home-On.jpg"; offHome = new Image(); offHome.src = "/images/Home-Off.jpg"; onEnterMeet = new Image(); onEnterMeet.src = "/images/EnterMeet-On.jpg"; offEnterMeet = new Image(); offEnterMeet.src = "/images/EnterMeet-Off.jpg"; onAddEdit = new Image(); onAddEdit.src = "/images/AddEdit-On.jpg"; offAddEdit = new Image(); offAddEdit.src = "/images/AddEdit-Off.jpg"; onResults = new Image(); onResults.src = "/images/Results-On.jpg"; offResults = new Image(); offResults.src = "/images/Results-Off.jpg"; onEvents = new Image(); onEvents.src = "/images/Events-On.jpg"; offEvents = new Image(); offEvents.src = "/images/Events-Off.jpg"; onPricing = new Image(); onPricing.src = "/images/Pricing-On.jpg"; offPricing = new Image(); offPricing.src = "/images/Pricing-Off.jpg"; /* img1on = new Image(); img1on.src = ""; img1off = new Image(); img1off.src = ""; */ } // Function to 'activate' images. function imgOn(imgName) { if (document.images) { document[imgName].src = eval("on" + imgName + ".src"); } } // Function to 'deactivate' images. function imgOff(imgName) { if (document.images) { document[imgName].src = eval("off" + imgName + ".src"); } } 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 2) { if ((img = MM_findObj(args[2])) != null && !img.MM_init) { img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src; if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array(); nbArr[nbArr.length] = img; for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = img.MM_dn = args[i+1]; nbArr[nbArr.length] = img; } } } else if (event == "over") { document.MM_nbOver = nbArr = new Array(); for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up); nbArr[nbArr.length] = img; } } else if (event == "out" ) { for (i=0; i < document.MM_nbOver.length; i++) { img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; } } else if (event == "down") { nbArr = document[grpName]; if (nbArr) for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; } document[grpName] = nbArr = new Array(); for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) { if (!img.MM_up) img.MM_up = img.src; img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up; nbArr[nbArr.length] = img; } } } */ /** * Sets/unsets the pointer and marker in browse mode * * @param object the table row * @param interger the row number * @param string the action calling this script (over, out or click) * @param string the default background color * @param string the color to use for mouseover * @param string the color to use for marking a row * * @return boolean whether pointer is set or not */ /** * This array is used to remember mark status of rows in browse mode */ var marked_row = new Array; //function setPointer(theRow, theRowNum, theAction, theDefaultColor, thePointerColor, theMarkColor) function setPointer(theRow, theRowNum, theAction) { var theDefaultColor = "#B3B8CB"; var thePointerColor = "#CCCCCC"; var theMarkColor = "#4A73BE"; var theCells = null; // 1. Pointer and mark feature are disabled or the browser can't get the // row -> exits if ((thePointerColor == '' && theMarkColor == '') || typeof(theRow.style) == 'undefined') { return false; } // 2. Gets the current row and exits if the browser can't get it if (typeof(document.getElementsByTagName) != 'undefined') { theCells = theRow.getElementsByTagName('td'); } else if (typeof(theRow.cells) != 'undefined') { theCells = theRow.cells; } else { return false; } // 3. Gets the current color... var rowCellsCnt = theCells.length; var domDetect = null; var currentColor = null; var newColor = null; // 3.1 ... with DOM compatible browsers except Opera that does not return // valid values with "getAttribute" if (typeof(window.opera) == 'undefined' && typeof(theCells[0].getAttribute) != 'undefined') { currentColor = theCells[0].getAttribute('bgcolor'); domDetect = true; } // 3.2 ... with other browsers else { currentColor = theCells[0].style.backgroundColor; domDetect = false; } // end 3 // 4. Defines the new color // 4.1 Current color is the default one if (currentColor == '' || currentColor.toLowerCase() == theDefaultColor.toLowerCase()) { if (theAction == 'over' && thePointerColor != '') { newColor = thePointerColor; } else if (theAction == 'click' && theMarkColor != '') { newColor = theMarkColor; marked_row[theRowNum] = true; } } // 4.1.2 Current color is the pointer one else if (currentColor.toLowerCase() == thePointerColor.toLowerCase() && (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum])) { if (theAction == 'out') { newColor = theDefaultColor; } else if (theAction == 'click' && theMarkColor != '') { newColor = theMarkColor; marked_row[theRowNum] = true; } } // 4.1.3 Current color is the marker one else if (currentColor.toLowerCase() == theMarkColor.toLowerCase()) { if (theAction == 'click') { newColor = (thePointerColor != '') ? thePointerColor : theDefaultColor; marked_row[theRowNum] = (typeof(marked_row[theRowNum]) == 'undefined' || !marked_row[theRowNum]) ? true : null; } } // end 4 // 5. Sets the new color... if (newColor) { var c = null; // 5.1 ... with DOM compatible browsers except Opera if (domDetect) { for (c = 0; c < rowCellsCnt; c++) { theCells[c].setAttribute('bgcolor', newColor, 0); } // end for } // 5.2 ... with other browsers else { for (c = 0; c < rowCellsCnt; c++) { theCells[c].style.backgroundColor = newColor; } } } // end 5 return true; } // end of the 'setPointer()' function //var DHTML = (document.getElementById || document.all || document.layers); var DHTML = (document.getElementById || document.all ); function getObj(name) { if (document.getElementById) { this.obj = document.getElementById(name); this.style = document.getElementById(name).style; this.innerHTML = document.getElementById(name).innerHTML; } else if (document.all) { this.obj = document.all[name]; this.style = document.all[name].style; this.innerHTML = document.all[name].innerHTML; } /* else if (document.layers) { this.obj = document.layers[name]; this.style = document.layers[name]; } */ } function invi(name,flag) { if (!DHTML) return; var x = new getObj(name); x.style.visibility = (flag) ? 'hidden' : 'visible' } function changeCol(obj,col) { if (!DHTML) return; var x = new getObj(obj); x.style.color = col; // x.style.cssclass = "darkened"; } /* function init() { if (!document.layers) return; var box = document.forms[0].elements; for (var i=0;i