// This function is to make the drop-down menu work in IE /* startList = function() { if (document.all&&document.getElementById) { navRoot = document.getElementById("webMenu"); if (navRoot!=null) { for (i=0; i -1) {resultString = (fullString.substring (fullString.indexOf(arg) + arg.length, fullString.length)) } } else { resultString = ""; for (i=fullString.length; i >= (fullString.length - parseInt( arg, 10)); i--) {resultString = fullString.charAt(i) + resultString } } } else {resultString = fullString } return resultString; } /* function left(fullString, arg) Searches a string from left to right and returns the leftmost characters of the string. - STRING fullString = the input string - STRING or NUMBER arg = with quotes: the substring to search; without quotes: the number of characters to return. */ function left(fullString, arg) { var resultString = ""; var argType = typeof arg; //type of the 2nd argument fullString += ""; arg += ""; if (arg != "" && fullString != "") { if (argType != "number") { if (fullString.indexOf (arg) > -1) {resultString = (fullString.substring (0, fullString.indexOf (arg)));} else {resultString = fullString} } else {resultString = (fullString.substring (0, parseInt(arg, 10))) } } else {resultString = fullString} return resultString } /* Start searching from the end of a super-string, finds last occurence of a substring, returns all text from substring to the start of the super-string. 1. Example: leftBack( 'ABCDEABCDE' , 'C' ); = 'ABCDEAB' 2. Example: leftBack( 'ABCDEABCDE' , 3 ); = 'ABCDEAB' */ function leftBack( strString , vMarker ) { var iEnd = strString.length; vMarker2 = vMarker + vMarker + vMarker ; if (vMarker2.length == (vMarker.length * 3)) iEnd = strString.lastIndexOf( vMarker, strString.length -1 ); else iEnd = strString.length - vMarker; return strString.substring( 0 , iEnd ); } /* Starts searching from the end of a super-string, finds last occurence of a substring, returns all text from substring to the start of the super-string. 1. Example: rightBack( 'ABCDEABCDE' , 'C' ); = 'DE' 2. Example: rightBack( 'ABCDEABCDE' , 3 ); = 'CDE' */ function rightBack( strString , vMarker ) { var iEnd = strString.length; vMarker2 = vMarker + vMarker + vMarker; if (vMarker2.length == ( vMarker.length * 3 )) iEnd = strString.lastIndexOf( vMarker, strString.length -1 ) + vMarker.length; else iEnd = strString.length - vMarker ; return strString.substring( iEnd , strString.length); } /* Show or hide divs elements passed as parameters showList : contains the elements which have to be shown hideList : contains the elementes which have to be hidden */ function showHideDiv(showList, hideList) { ElmtVisible = showList.split('¬'); ElmtHidden = hideList.split('¬'); //Hide the elements to hide for (i=0; i