//

Bold:  __bold text__ (2 "_" before and after the text)

Italic:  //italic text//

Link:  {(ftp|http)://www.myurl.com This is the link text}

Internal Link:  {link pageid Another internal webpage}

Section Link:  {link #woadsectionX Link to a section} (X = section number)

Document Link:  {doclink myfile.pdf My File}

Email:  {myuser@myemail.com}

Image:  {image src alt} (alt is optional)

Header:  == This is a level 2 header (level is number of "=")

Column Break:  | (on own line)

Right Justified:  > This paragraph is right justified

Centered:  ^ This paragraph is centered

Indented:  : This paragraph is indented

Bulleted List:  * Bulleted list item

Numbered List:  # Bulleted list item

Horizontal Line:  ---- (at least 4 "-")

'); doc.close(); } // ]]> // A few tips on searching the directory

'); doc.writeln(''); doc.close(); return true; } // ]]> // function openPageBrowser() { url = "pagebrowser.php?field=" + arguments[0] + ( (arguments[1]) ? "&append=1" : "") + ( (arguments[2]) ? "&display=" + arguments[2] : ""); options = "width=480,height=350,status=no,resizable=yes,top=300,left=300,scrollbars=yes"; pageBrowseWin = window.open(url, "PageBrowser", options); pageBrowseWin.opener = self; } /**********************************************************************/ /* Basic AJAX Scripts Call this with: ajaxConnect(url, target_field_name[, output_type]); URL: URL of the file or script you are calling. target_field_name: Field name to be used for the returned data. Output types: html: Default behavior, assumes the data is in HTML format and it into the innerHTML of the supplied target field. custom: Requires a function called ajaxCustom that takes the arguments http_request and target. The function will be triggered when the content is sucessfully returned, and should be used to display the retuned data. function_name: A function name can be passed in as an output type. In this case the funciton will be called in place of ajaxHandleContent, and should take http_request and target as arguments. This function will need to check for the readyState since it will be called for every state change of the http_request object. */ /**********************************************************************/ function ajaxConnect(url, target) { var http_request = false; var output_type = 'html'; if (arguments.length == 3) output_type = arguments[2]; //setup http_request if (window.XMLHttpRequest) { http_request = new XMLHttpRequest(); } else if (window.ActiveXObject) { try { http_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } //get the data if (!http_request) { alert('Cannot create an XMLHttpRequest object'); return false; } http_request.onreadystatechange = function() { ajaxHandleContent(http_request, target, output_type); }; http_request.open('GET', url, true); http_request.send(null); } function ajaxHandleContent(http_request, target, output_type) { if ((output_type != 'html') && (output_type != 'custom')) { eval(output_type + '(http_request, target);'); return; } try { if (http_request.readyState == 4) { if (http_request.status == 200) { if (output_type == 'html') { var text = http_request.responseText document.getElementById(target).innerHTML = text; } else { ajaxCustom(http_request, target); } } else { alert('There was a problem with the request.'); } } } catch(e) { alert('Caught Exception: ' + e.description); } } /* The MIT Licence, for code from kryogenix.org Code downloaded from the Browser Experiments section of kryogenix.org is licenced under the so-called MIT licence. The licence is below. Copyright (c) 1997-date Stuart Langridge Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Modifications for odd row coloring from http://mathiasbynens.be/archive/2005/09/highlighted-sorttable Other modifications by Andrew Frink ###################################### To make a table sortable, the table must have an id specified, and must be of class "sortable" Example: ###################################### */ addEvent(window, "load", sortables_init); var SORT_COLUMN_INDEX; function sortables_init() { // Find all tables with class sortable and make them sortable if (!document.getElementsByTagName) return; tbls = document.getElementsByTagName("table"); for (ti=0;ti 0) { var firstRow = table.rows[0]; } if (!firstRow) return; // We have a first row: assume it's the header, and make its contents clickable links for (var i=0;i' + txt+'   '; } } function ts_getInnerText(el) { if (typeof el == "string") return el; if (typeof el == "undefined") { return el }; if (el.innerText) return el.innerText; //Not needed but it is faster var str = ""; var cs = el.childNodes; var l = cs.length; for (var i = 0; i < l; i++) { switch (cs[i].nodeType) { case 1: //ELEMENT_NODE str += ts_getInnerText(cs[i]); break; case 3: //TEXT_NODE str += cs[i].nodeValue; break; } } return str; } function ts_resortTable(lnk,clid) { // get the span var span; for (var ci=0;ci