var SERVER = "my.averittexpress.com"; var appName; function navigate(page) { document.location.href="http://"+SERVER+"/pubLinks.jsp?go="+page+"&inz=Y";}
function doSubmit(formObj) {formObj.submit();}
function resetAllInput(doc) { var cnt = doc.forms.length; for (var i = 0; i < cnt; i++) { doc.forms[i].reset();}
}
function setNav(name) { appName = name;}
function popup(page) { newWindow=window.open(page,'','width=745,height='+(screen.height-140)+',scrollbars=yes,location=no,status=no,toolbar=yes');}
function printMe(path) { var page = path.substring(0,(path.length-4)); var newpage = page + 'PV.htm'; newWindow=window.open(newpage,'','width=600,height='+(screen.height-140)+',scrollbars=yes,location=no,status=no,toolbar=no');}
function openTLFuel(url, name) { popupWin = window.open(url, name,'width=500,height=150,left=100,top=100')}
function openTerms(url) { popupWin = window.open(url, '','width=462,height='+(screen.height-100)+',scrollbars=yes,location=no, status=no, toolbar=no')}
function addLoadListener(fn){ if(typeof window.addEventListener != "undefined"){ window.addEventListener("load", fn, false);}else if(typeof document.addEventListener != "undefined"){ document.addEventListener("load", fn, false);}else if(typeof window.attachEvent != "undefined"){ window.attachEvent("onload", fn);}else{ var oldfn = window.onload; if(typeof windows.onload != "function"){ window.onload = fn;}else{ window.onload = function(){oldfn(); fn();};}
}
}
function attachEventListener(target, eventType, functionRef, capture)
{ if (typeof target.addEventListener != 'undefined')
{ target.addEventListener(eventType, functionRef, capture);}
else if (typeof target.attachEvent != 'undefined')
{ target.attachEvent('on' + eventType, functionRef);}
else
{ eventType = 'on' + eventType; if (typeof target[eventType] == 'function')
{ var oldListener = target[eventType]; target[eventType] = function()
{ oldListener(); return functionRef();}
}
else
{ target[eventType] = functionRef;}
}
return true;}
function getElementsByAttribute(attribute, attributeValue){ var elementArray = new Array(); var matchedArray = new Array(); if(document.all){ elementArray = document.all;}else{ elementArray = document.getElementsByTagName("*");}
for(var i=0; i<elementArray.length; i++){ if(attribute == "class"){ var pattern = new RegExp("(^| )" + attributeValue + "( |$)"); if(pattern.test(elementArray[i].className)){ matchedArray[matchedArray.length] = elementArray[i];}
}else if(attribute == "for"){ if(elementArray[i].getAttribute("hmlFor") || elementArray[i].getAttribute("for")){ if(elementArray[i].htmlfor == attributeValue){ matchedArray[matchedArray.length] = elementArray[i];}
}
}else if(elementArray[i].getAttribute(attribute) == attributeValue){ matchedArray[matchedArray.length] = elementArray[i];}
}
return matchedArray;}
function getElementsByClassName(className){ return getElementsByAttribute("class", className);}
function addClass(target, classValue){ var pattern = new RegExp("(^| )" + classValue + "( |$)"); if(!pattern.test(target.className)){ if(target.className == ""){ target.className = classValue;}else{ target.className += " " + classValue;}
}
return true;}
function alternateTableRows(tbody, evenClassValue, oddClassValue, skipHeader){ var rows = tbody.childNodes; var i = 0; if(skipHeader == true){ i=1;}
while(i<rows.length){ if(i%2 == 0){ addClass(rows[i], evenClassValue);}else addClass(rows[i], oddClassValue); i++;}
}
function createTable(cellTextArray){ var table = document.createElement("table"); appendToTable(table, cellTextArray); return table;}
function appendToTable(table, cellTextArray){ for(var i=0; i<cellTextArray.length; i++){ table.tBodies[0].appendChild(createTR(cellTextArray[i]));}
}
function createTR(cellText){ var row = document.createElement("tr"); for(var i=0; i<cellText.length; i++){ row.appendChild(createTD(cellText[i]));}
return row;}
function createTD(cellText){ var cell = document.createElement("td"); var cellTextNode = document.createTextNode(cellText); cell.appendChild(cellTextNode); return cell;}
function createAnchor(childNodes, href){ var newA = document.createElemet("a"); newA.setAttribute("href", href); newA.appendChild(childNodes); return newA;}
function showIframePage(iframeID, page){ var iframe = document.getElementById(iframeID); if(typeof iframe.contentDocument != "undefined"){ iframeDocument = iframe.contentDocument;}else if(typeof iframe.contentWindow != "undefined"){ iframeDocuemnt = iframe.contentWindow.document;}
else{ return false;}
iframeDocument.location.replace(page); return true;}
function updateOnClicks(className, value){ var elements = getElementsByClassName(className); var anchors = document.getElementsByTagName("a"); for(var i=0; i<anchors.length; i++){ anchors[i].onclick = value;}
}
function changeStyleById(elementID, style, value){ var element = document.getElementById(elementID); element.style.backgroundColor = value;}
function identifyBrowser(){ var agent = navigator.userAgent.toLowerCase(); if(typeof navigator.vendor != "undefined" && navigator.vendor == "KDE" && typeof window.sidebar != "undefined"){ return "kde";}else if(typeof window.opera != "undefined"){ var version = parseFloat(agent.replace(/.*opera[\/ ]([^ $]+).*/, "$1")); if(version >= 7){ return "opera7";}else if(version >= 5){ return "opera5";}
return false;}else if(typeof document.all != "undefined"){ if(typeof document.getElementById != "undefined"){ var browser = agent.replace(/.*ms(ie[\/ ][^ $]+).*/, "$1").replace(/ /, ""); if(typeof document.uniqueID != "undefine"){ if(browser.indexof("5.5") != -1){ return browser.replace(/(.*5\.5).*/, "$1");}else{ return browser.replace(/(.*)\..*/, "$1");}
}else{ return "ie5mac";}
}
return false;}else if(typeof document.getElementById != "undefined"){ if(navigator.vendor.indexOf("Apple Computer, Inc.") != -1){ if(typeof window.XMLHttpRequest != "undefined"){ return "safari1.2";}
return "safari1";}else if(agent.indexOf("gecko") != -1){ return "mozilla";}
}
return false;}
function getXmlHttpObject(){ var xmlHttp = false; if (window.XMLHttpRequest) { xmlHttp = new XMLHttpRequest();}else if (window.ActiveXObject) { try{ xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");}catch(e){ try{ xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");}catch(e2){ xmlHttp = false;}
}
}
if(!xmlHttp){ alert("Error initializing XMLHttpRequest!");}
return xmlHttp;}
var net = new Object(); net.READY_STATE_ININITIALIZED = 0; net.READY_STATE_LOADING = 1; net.READY_STATE_LOADED = 2; net.READY_STATE_INTERACTIVE = 3; net.READY_STATE_COMPLETE = 4; net.ContentLoader = function(url, onload, onerror){ this.url = url; this.req = null; this.onload = onload; this.onerror=(onerror) ? onerror: this.defaultError; this.loadXMLDoc(url);}
net.ContentLoader.prototype = { loadXMLDoc: function(url){ if(window.XMLHttpRequest){ this.req = new XMLHttpRequest();}else if(window.ActiveXObject){ this.req = new ActiveXObject("Microsoft.XMLHTTP");}
if(this.req){ try{ var loader = this; this.req.onreadystatechange = function(){ loader.onReadyState.call(loader);}
this.req.open('GET',url,true); this.req.send(null);}catch(err){ this.onerror.call(this);}
}
}, onReadyState:function(){ var req = this.req; var ready = req.readyState; if(ready == net.READY_STATE_COMPLETE){ var httpStatus=req.status; if(httpStatus == 200 || httpStatus == 0){ this.onload.call(this);}else{ this.onerror.call(this);}
}
}, defaultError:function(){ alert("error fetching data!" + "\nreadyState:" + this.req.readyState + "\nstatus: "+this.req.status + "\nheaders: " + this.req.getAllResponseHeaders());}
}
function LoadXMLXSLDoc(urlXML, urlXSL, xmlonLoad, xslonLoad){ new net.ContentLoader(urlXML, xmlonLoad); new net.ContentLoader(urlXSL, xslonLoad);}
function renderXmlXsl(xmlDoc, xslDoc, element){ if(xmlDoc == null || xslDoc == null){ return;}
if(window.ActiveXObject){ element.innerHTML = xmlDoc.transformNode(xslDoc);}else{ var xsltProcessor = new XSLTProcessor(); xsltProcessor.importStylesheet(xslDoc); var fragment = xsltProcessor.transformToFragment(xmlDoc,document); element.innerHTML = ""; element.appendChild(fragment);}
}
function doRounds(color){ var roundDivs = getElementsByClassName("round"+color); var tl, bl, tr, br, content; var pattern = /.*Back/; for(var i=0; i<roundDivs.length; i++){ tl = document.createElement("div"); addClass(tl, color + "cornerTL")
bl = document.createElement("div"); addClass(bl, color + "cornerBL")
tr = document.createElement("div"); addClass(tr, color + "cornerTR")
br = document.createElement("div"); addClass(br, color + "cornerBR"); content = document.createElement("div"); content.className = roundDivs[i].className; addClass(content, "roundedContent"); var classes = roundDivs[i].className.split(" "); roundDivs[i].className = " "; for(var j=0; j<classes.length; j++){ if(pattern.test(classes[j])){ addClass(roundDivs[i], classes[j]);}
}
while(roundDivs[i].childNodes.length >0){ content.appendChild(roundDivs[i].firstChild);}
br.appendChild(content); tr.appendChild(br); bl.appendChild(tr); tl.appendChild(bl); roundDivs[i].appendChild(tl);}
}
function cookieLoginInit(formObj) { if(cacheUsername != null)
{ formObj.j_username.value = cacheUsername
formObj.j_password.value = cachePassword
formObj.cookieFlag.checked = true
}
}
function saveUsername(formObj)
{ if(formObj.cookieFlag.checked)
{ var expires = new Date()
FixCookieDate(expires)
expires.setFullYear(expires.getFullYear() + 1)
SetCookie("username", formObj.j_username.value, expires)
SetCookie("password", formObj.j_password.value, expires)
}
else
{ DeleteCookie("username")
DeleteCookie("password")
}
}
function cookiePopupInit()
{ if(GetCookie("popupShow"))
{ hide('popup')
}else show('popup')
}
function savePopup(formObj)
{ if(formObj.cookieFlag.checked)
{ var expires = new Date()
FixCookieDate(expires)
expires.setFullYear(expires.getFullYear() + 1)
SetCookie("popupShow", "no", expires)
}
}
function moveObject(target, destinationLeft, destinationTop, maxSpeed){ var currentLeft = parseInt(retrieveComputedStyle(target,"left")); var currentTop = parseInt(retrieveComputedStyle(target, "top")); if(isNAN(currentLeft)){ currentLeft = 0;}
if(isNAN(currentTop)){ currentTop = 0;}
if(currentLeft < destinationLeft){ currentLeft += maxSpeed; if(currentLeft > destinationLeft){ currentLeft = destinationLeft;}
}else{ currentLeft -= maxSpeed; if(currentLeft < destinationLeft){ currentLeft = destinationLeft;}
}
if(currentTop < destinationTop){ currentTop += maxSpeed; if(currentTop > destinationTop){ currentTOp = destinationTop;}
}else{ currentTOp -= maxSpeed; if(currentTop < destinationTop){ currentTop = destinationTop;}
}
target.style.left = currentLeft + "px"; target.style.top = currentTop + "px"; if(currentLeft == destinationLeft && currentTop == destinationTop){ clearInterval(target.animationTimer);}
}
function setAnimationTimer(elementName, destinationLeft, destinationTop, maxSpeed, time){ alert("elementName="+elementName); document.getElementById(elementName).animationTimer = setInterval('moveObject(document.getElementById("'+elementName+'"),'+ destinationLeft+','+ destinationTop+','+ maxSpeed+')',time);}
function initSortableTables(){ alert("browser = " + identifyBrowser()); if(identifyBrowser() != "ie5mac"){ var tables = getElementsByClassName("sortableTable"); for(var i=0; i<tables.length; i++){ var ths = tables[i].getElementsByTagName("th"); for(var j=0; j<ths.length; j++){ var newA = document.createElement("a"); newA.setAttribute("href", "#"); newA.setAttribute("title", "Sort by this column in descending order"); for(k=0; k<ths[j].childNodes.length; k++){ newA.appendChild(ths[j].childNodes[k]);}
ths[j].appendChild(newA); attachEventListener(newA, "click", sortColumn, false);}
}
}
return true;}
function sortColumn(event){ if(typeof event == "undefined"){ event = window.event;}
var targetA = getEventTarget(event); while(targetA.nodeName.toLowerCase() != "a"){ targetA = targetA.parentNode;}
var targetTh = targetA.parentNode; var targetTr = targetTh.parentNode; var targetTrChildren = targetTr.getElementsByTagName("th"); var targetTable = targetTr.parentNode.parentNode; var targetBody = targetTable.getElementsByTagName("tbody")[0]; var targetTrs = targetTbody.getElementsByTagName("tr"); var targetColumn = 0; for(var i =0; i<targetTrChildren.length; i++){ targetTrChildren[i].className = targetTrChildren[i].className.replace(/(^| )sortedDescending( |$)/, "$1"); targetTrChildren[i].className = targetTrChildren[i].className.replace(/(^| )sortedAscending( |$)/, "$1"); if(targetTrChildren[i] == targetTh){ targetColumn = i; if(targetTrChildren[i].sortOrder == "descending" && targetTrChildren[i].clicked){ targetTrChildren[i].sortOrder = "ascending"; targetTrChildren[i].className = " sortedAscending"; targetA.setAttribute("title", "Sort by this column in descending ordere");}else{ if(targetTrChildren[i].sortOrder == "ascending" && !tagetTrChildren[i].clicked){ targetTrChildren[i].className += " sortedAscending";}else{ targetTrChildren[i].sortOrder = "descending"; targetTrChildren[i].className += " sortedDescending"; targetA.setAttribute("title", "Sort by this column in ascending order");}
}
targetTrChildren[i].clicked = true;}else{ targetTrChildren[i].clicked = false; if(targetTrChildren[i].sortOrder == "ascending"){ targetTrChildren[i].firstChild.setAttribute("title","Sort by this column in ascending order");}else{ targetTrChildren[i].firstChild.setAttribute("title","Sort by this column in descending order");}
}
}
var newTbody = targetTbody.cloneNode(false); for(var i=0; i<targetTrs.length; i++){ var newTrs = newTbody.childNodes; var targetValue = getInternalText(targetTrs[i].getElementsByTagName("td")[targetColumn]); for(var j=0; j<newTrs.length; j++){ var newValue = getInternalText(newTrs[j].getElementsByTagName("td")[targetColumn]); if(targetValue == parseInt(tagetValue, 10) && newValue == parseInt(newValue, 10)){ targetValue = parseInt(targetValue, 10); newValue = parseInt(newValue, 10);}else if(targetValue == parseFloat(targetValue) && newValue == parseFloat(newValue)){ targetValue = parseFloat(targetValue, 10); newValue = parseFloat(newValue, 10);}
if(targetTrChildren[targetColumn].sortOrder == "descending"){ if(targetValue >= newValue){ break;}
}else{ if(targetValue <=newValue){ break;}
}
}
if(j >= newTrs.length){ newTbody.appendChild(targetTrs[i].cloneNode(true));}else{ newTbody.insertBefore(targetTrs[i].cloneNode(true), newTrs[j]);}
}
targetTable.replaceChile(newTbody, targetTbody); stopDefaultAction(event); return false;}
function getInternalText(target){ var elementChildren = target.childNodes; var internalText = ""; for(var i=0; elementChildren.length; i++){ if(elementChildren[i].nodeType == 3){ if(!/^\S*$/.test(elementChildren[i].nodeValue)){ internalText += elementChildren[i].nodeValue;}
}else{ internalText += getInternalText(elementChildren[i]);}
}
return internalText;}
function MM_preloadImages() { 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; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}
function MM_findObj(n, d) { var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&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<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x;}
function MM_swapImage() { var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_reloadPage(init) { if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage;}}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}
MM_reloadPage(true); function MM_showHideLayers() { var i,p,v,obj,args=MM_showHideLayers.arguments; for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2]; if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v;}
obj.visibility=v;}
}
function getCookieVal (offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1)
endstr = document.cookie.length; return unescape(document.cookie.substring(offset, endstr));}
function FixCookieDate (date) { var base = new Date(0); var skew = base.getTime(); if (skew > 0)
date.setTime (date.getTime() - skew);}
function GetCookie (name) { var arg = name + "="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg)
return getCookieVal (j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break;}
return null;}
function SetCookie (name,value,expires,path,domain,secure) { document.cookie = name + "=" + escape (value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");}
function DeleteCookie (name,path,domain) { if (GetCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT";}
}
function RObj(ea)
{ var LS=""; var QS=new Object(); var un="undefined"; var f="function"; var n="number"; var r="string"; var e1="ERROR:Index out of range in\r\nRequest.QueryString"; var e2="ERROR:Wrong number of arguments or invalid property assignment\r\nRequest.QueryString"; var e3="ERROR:Object doesn't support this property or method\r\nRequest.QueryString.Key"; function Err(arg){ if(ea)alert("Request Object:\r\n"+arg)}; function URID(t){var d=""; if(t){for(var i=0;i<t.length;++i)
{var c=t.charAt(i);d+=(c=="+"?" ":c);};};return unescape(d);}; function OL(o){var l=0;for(var i in o){if(typeof(o[i])!=f) l++;};return l;}; function AK(key){var auk=true;for(var u in QS)
{if(typeof(QS[u])!=f&&u.toString().toLowerCase()==key.toLowerCase())
{auk=false;return u;}};if(auk){QS[key]=new Object();QS[key].toString=function()
{return TS(QS[key])};QS[key].Count=function(){return OL(QS[key])};QS[key].Count.toString=function(){return OL(QS[key]).toString()};QS[key].Item=function(e){if(typeof(e)==un) return QS[key];else {if(typeof(e)==n){var a=QS[key][Math.ceil(e)];if(typeof(a)==un) Err(e1+"(\""+key+"\").Item("+e+")");return a;}else Err("ERROR:Expecting numeric input in\r\nRequest.QueryString(\""+key+"\").Item(\""+e+"\")");}};QS[key].Item.toString=function(e){if(typeof(e)==un) return QS[key].toString();else {var a=QS[key][e];if(typeof(a)==un) Err(e1+"(\""+key+"\").Item("+e+")");return a.toString();};};QS[key].Key=function(e){var t=typeof(e);if(t==r){var a=QS[key][e];return(typeof(a)!=un&&a&&a.toString()?e:"");}else Err(e3+"("+(e?e:"")+")");};QS[key].Key.toString=function(){return un};};return key};function AVTK(key,val){if(key!=""){var key=AK(key);var l=OL(QS[key]);QS[key][l+1]=val;}};function TS(o){var s="";for(var i in o){var ty=typeof(o[i]);if(ty=="object") s+=TS(o[i]);else if(ty!=f) s+=o[i]+", ";};var l=s.length;if(l>1)return(s.substring(0,l-2));return(s==""?un:s);};function KM(k,o){var k=k.toLowerCase();for(var u in o){if(typeof(o[u])!=f&&u.toString().toLowerCase()==k) return u;};}if(window.location&&window.location.search){LS=window.location.search;var l=LS.length;if(l>0){LS=LS.substring(1,l);var preAmpAt=0;var ampAt=-1;var eqAt=-1;var k=0;var skip=false;for(var i=0;i<l;++i){var c=LS.charAt(i);if(LS.charAt(preAmpAt)=="="||(preAmpAt==0&&i==0&&c=="=")) skip=true;if(c=="="&&eqAt==-1&&!skip) eqAt=i;if(c=="&"&&ampAt==-1){if(eqAt!=-1) ampAt=i;if(skip) preAmpAt=i+1;skip=false;};if(ampAt>eqAt){AVTK(URID(LS.substring(preAmpAt,eqAt)),URID(LS.substring(eqAt+1,ampAt)));preAmpAt=ampAt+1;eqAt=ampAt=-1;++k;};};if(LS.charAt(preAmpAt)!="="&&(preAmpAt!=0||i!=0||c!="=")){if(preAmpAt!=l){if(eqAt!=-1) AVTK(URID(LS.substring(preAmpAt,eqAt)),URID(LS.substring(eqAt+1,l)));else if(preAmpAt!=l-1) AVTK(URID(LS.substring(preAmpAt,l)),"");};if(l==1) AVTK(LS.substring(0,1),"");};};};var TC=OL(QS);if(!TC) TC=0;QS.toString=function(){return LS.toString()};QS.Count=function(){return(TC?TC:0)};QS.Count.toString=function(){return(TC?TC.toString():"0")};QS.Item=function(e){if(typeof(e)==un) return LS;else {if(typeof(e)==n){var e=Math.ceil(e);var c=0;for(var i in QS){if(typeof(QS[i])!=f&&++c==e) return QS[i];};Err(e1+"().Item("+e+")");}else return QS[KM(e,QS)];};return un;};QS.Item.toString=function(){return LS.toString()};QS.Key=function(e){var t=typeof(e);if(t==n){var e=Math.ceil(e);var c=0;for(var i in QS){if(typeof(QS[i])!=f&&++c==e) return i;}}else if(t==r){var e=KM(e,QS);var a=QS[e];return(typeof(a)!=un&&a&&a.toString()?e:"");}else Err(e2+"().Key("+(e?e:"")+")");Err(e1+"().Item("+e+")");};QS.Key.toString=function(){Err(e2+"().Key");};this.QueryString=function(k){if(typeof(k)==un) return QS;else {var k=KM(k,QS);if(typeof(QS[k])==un){t=new Object();t.Count=function(){return 0};t.Count.toString=function(){return "0"};t.toString=function(){return un};t.Item=function(e){return un};t.Item.toString=function(){return un};t.Key=function(e){Err(e3+"("+(e?e:"")+")");};t.Key.toString=function(){return un};return t;}if(typeof(k)==n) return QS.Item(k);else return QS[k];}};this.QueryString.toString=function(){return LS.toString();};this.QueryString.Count=function(){return(TC?TC:0)};this.QueryString.Count.toString=function(){return(TC?TC.toString():"0")};this.QueryString.Item=function(e){if(typeof(e)==un) return LS.toString();else {if(typeof(e)==n){var e=Math.ceil(e);var c=0;for(var i in QS){if(typeof(QS[i])!=f&&++c==e) return QS[i];};Err(e1+".Item("+e+")");}else return QS[KM(e,QS)];}if(typeof(e)==(n)) Err(e1+".Item("+e+")");return un;};this.QueryString.Item.toString=function(){return LS.toString()};this.QueryString.Key=function(e){var t=typeof(e);if(t==n){var e=Math.ceil(e);var c=0;for(var i in QS){if(typeof(QS[i])=="object"&&(++c==e)){return i;}}}else if(t==r){var e=KM(e,QS);var a=QS[e];return(typeof(a)!=un&&a&&a.toString()?e:"");}else Err(e2+".Key("+(e?e:"")+")");Err(e1+".Item("+e+")");};this.QueryString.Key.toString=function(){Err(e2+".Key");};this.Version=1.2;this.Author="Andrew Urquhart (www.andrewu.co.uk)";};var Request=new RObj(false); 