<!--
function ReplaceCharsAt(pos, str, count, replacement){if (count == null)count = 1;if (replacement == null)replacement = "";var before = str.substring(0, pos);var after = str.substring(pos + count, str.length);return before + replacement + after;}function AddEventHandler(object, type, listener){if (object.addEventListener)object.addEventListener(type, listener, false);else object.attachEvent("on" + type, listener);}function CloseWindow(){window.opener = self;window.open('', '_parent', '');window.close();}function SetObjDisplay(objID, show){var myReference = FindObj(objID);if (!myReference || !myReference.style){return false;}else{myReference.style.display = show ? "block" : "none";}return true;}function GetObjDisplay(objID){var myReference = FindObj(objID);if (!myReference || !myReference.style){return false;}else{return myReference.style.display != "none";}}function GetDocumentSize(){var width = 0, height = 0;if (typeof(window.innerWidth) == "number"){width = window.innerWidth;height = window.innerHeight;}else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)){width = document.documentElement.clientWidth;height = document.documentElement.clientHeight;}else if (document.body && (document.body.clientWidth || document.body.clientHeight)){width = document.body.clientWidth;height = document.body.clientHeight;}return [width, height];}function GetDocumentScrollOffset(){var x = 0, y = 0;if (typeof(window.pageYOffset) == "number"){x = window.pageXOffset;y = window.pageYOffset;}else if (document.body && (document.body.scrollLeft || document.body.scrollTop)){x = document.body.scrollLeft;y = document.body.scrollTop;}else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)){x = document.documentElement.scrollLeft;y = document.documentElement.scrollTop;}return [x, y];}function GetDivObj(divID,  doc){if (!doc)doc = document;if (document.layers){if (doc.layers[divID]){return doc.layers[divID];}else{for (var i = 0, obj; !obj && i < doc.layers.length; i++){obj = GetDivObj(divID, doc.layers[i].document);}return obj;}}else if (document.getElementById){return document.getElementById(divID);}else if (document.all){return document.all[divID];}return null;}function SetDivVisibility(divID, show){var myReference = GetDivObj(divID);if (!myReference)return false;if (myReference.style){myReference.style.visibility = show ? "visible" : "hidden";}else if (myReference.visibility){myReference.visibility = show ? "show" : "hide";}else{return false;}return true;}function GetDivVisibility(divID){var myReference = GetDivObj(divID);if (!myReference)return false;if (myReference.style){return myReference.style.visibility != "hidden";}else if (myReference.visibility){return myReference.visibility != "hide";}else{return false;}}function SetPosition(obj, xPos, yPos){var noPx = document.childNodes ? "px" : 0;if (obj.style)obj = obj.style;obj.left = parseInt(xPos) + noPx;obj.top = parseInt(yPos) + noPx;}function GetPosition(obj){var coords = {x: 0, y: 0};while (obj){coords.x += obj.offsetLeft;coords.y += obj.offsetTop;obj = obj.offsetParent;}return coords;}function SetSite(obj, width, height){var noPx = document.childNodes ? "px" : 0;if (obj.style)obj = obj.style;if (obj.resizeTo)obj.resizeTo(width, height);obj.width = width + noPx;obj.height = height + noPx;obj.pixelWidth = width;obj.pixelHeight = height;}function SetContent(obj, content,  iFrameName){if (typeof(obj.innerHTML) != "undefined"){obj.innerHTML = content;}else if (obj.document && obj.document != window.document){obj.document.open();obj.document.write(content);obj.document.close();}else if (window.frames && window.frames.length && window.frames[iFrameName]){obj = window.frames[iFrameName].window;obj.document.open();obj.document.write(content);obj.document.close();}}function FindObj(name,  frame,  doc){if (!doc)doc = frame ? frame.document : window.document;if (doc[name]){return doc[name];}else if (doc.all && doc.all[name]){return doc.all[name];}else if (doc.getElementById && doc.getElementById(name)){return doc.getElementById(name);}else{for (var i = 0; i < doc.forms.length; i++){if (doc.forms[i][name]){return doc.forms[i][name];}}for (var i = 0; i < doc.anchors.length; i++){if (doc.anchors[i].name == name){return doc.anchors[i];}}for (var i = 0; document.layers && i < doc.layers.length; i++){var obj = FindObj(name, null, doc.layers[i].document);if (obj)return theOb;}if (!frame && window[name]){return window[name];}else if (frame && frame[name]){return frame[name];}for (var i = 0; frame && frame.frames && i < frame.frames.length; i++){var obj = FindObj(name, frame.frames[i], frame.frames[i].document);if (obj)return theOb;}}return null;}function SmartNavigationRestoreFocus(){if (window.__smartNav && window.__smartNav.restoreFocus && window.__smartNav.ae != null){try{window.__smartNav.restoreFocus();window.__smartNav.ae = null;}catch (ex) {}}if (CustomSmartNavigation_RestoreFocus)CustomSmartNavigation_RestoreFocus();}function SendRequest(pUrl, pCallback, pPostData){var req = CreateXmlHttpObject();if (req){var method = pPostData ? "POST" : "GET";req.open(method, pUrl, true);if (pPostData)req.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');req.onreadystatechange = function(){if (req.readyState == XmlHttpState_Done){if (req.status != 200 && req.status != 304){}else{pCallback(req);}}};if (req.readyState != XmlHttpState_Done)req.send(pPostData);}}var XmlHttpState_Unsent = 0;var XmlHttpState_Opened = 1;var XmlHttpState_HeadersReceived = 2;var XmlHttpState_Loading = 3;var XmlHttpState_Done = 4;var XmlHttpFactories =[function() { return new XMLHttpRequest() },function() { return new ActiveXObject("Msxml2.XMLHTTP") },function() { return new ActiveXObject("Msxml3.XMLHTTP") },function() { return new ActiveXObject("Microsoft.XMLHTTP") }];function CreateXmlHttpObject(){var xmlhttp = null;for (var i = 0; i < XmlHttpFactories.length; i++){try{xmlhttp = XmlHttpFactories[i]();break;}catch (e){continue;}}return xmlhttp;}function getCursorPos(tb){var sel, r1, r2;var i = -1;if (document.selection && tb.createTextRange){sel = document.selection;r2 = sel.createRange();r1 = tb.createTextRange();r1.setEndPoint("EndToStart", r2);i = r1.text.length;}return i;}function setSelectionRange(input, selectionStart, selectionEnd){if (input.setSelectionRange){input.focus();input.setSelectionRange(selectionStart, selectionEnd);}else if (input.createTextRange){var range = input.createTextRange();range.collapse(true);range.moveEnd("character", selectionEnd);range.moveStart("character", selectionStart);range.select();}}function setCaretToEnd(input){setSelectionRange(input, input.value.length, input.value.length);}function setCaretToBegin(input){setSelectionRange(input, 0, 0);}function setCaretPos(input, pos){setSelectionRange(input, pos, pos);}function selectString(input, string){var match = new RegExp(string, "i").exec(input.value);if (match){setSelectionRange(input, match.index, match.index + match[0].length);}}function replaceSelection(input, replaceString){if (input.setSelectionRange){var selectionStart = input.selectionStart;var selectionEnd = input.selectionEnd;input.value = input.value.substring(0, selectionStart) + replaceString + input.value.substring(selectionEnd);if (selectionStart != selectionEnd){setSelectionRange(input, selectionStart, selectionStart + replaceString.length);}else{setCaretPos(input, selectionStart + replaceString.length);}}else if (document.selection){var range = document.selection.createRange();if (range.parentElement() == input){var isCollapsed = range.text == "";range.text = replaceString;if (!isCollapsed){range.moveStart("character", -replaceString.length);range.select();}}}}function getCaretPos(input){var pos = null;if (input.selectionStart != null){pos = input.selectionStart;}else if (document.selection && input.createTextRange){var sel = document.selection;var r2 = sel.createRange();var r1 = input.createTextRange();r1.setEndPoint("EndToStart", r2);pos = r1.text.length;}return pos;}//-->