function pbSetValue() {
p = -1;
spl = String.fromCharCode(127);
if (_SF.length > 0) {
tmpF = _SF.split(spl);
tmpV = _SV.split(spl);
}
else {
tmpF = new Array();
tmpV = new Array();
}
for (var cnt = 0; cnt < tmpF.length; cnt++) {
if (tmpF[cnt] == arguments[0]) {
p = cnt;
}
}
if (p > -1) {
tmpV[p] = arguments[1]
}
else {
tmpF.push(arguments[0]);
tmpV.push(arguments[1]);
};
_SF = tmpF.join(spl);
_SV = tmpV.join(spl);
}

function pbSubmit() {
AjaxUpdate("FormAction=" + arguments[0], arguments[1]);
}

function AjaxUpdate() {
var Req = getUpdater();
var async;
var lo = location.href;

if (lo.indexOf("#") > -1) {
lo = lo.substring(0, lo.indexOf("#"))
}
if (arguments[1]) { async = arguments[1] } else { async = false };
if (lo.indexOf("Default.aspx") == -1)
{ Req.open("POST", lo + "Default.aspx", async); }
else { Req.open("POST", lo, async); }
Req.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
Req.send(arguments[0] + "&_G=" + _SessionGuid + "&" + _LO + "&_SF=" + _SF + "&_SV=" + _SV + "&_PV_=" + _pageVersion);
if (async) {
Req.onreadystatechange = function() {
if (Req.readyState == 4) { UpdatePage(Req.responseText) }
}
};
if (document.getElementById("UD_").innerHTML.length = 0) {
_pageVersion = -1;
}
else {
_pageVersion++;
};
_SF = "";
_SV = "";
if (!async) { UpdatePage(Req.responseText) };
}

function UpdatePage() {
var uD = document.getElementById("UD_");
var nodeCount = 0;

if(arguments[0] == "")
return;
uD.innerHTML = arguments[0];

while (uD.childNodes.length > 0)
{
newNode = uD.childNodes.item(0);
uD.removeChild(newNode);

if (newNode.id && newNode.id == "PL_") {
newNode.onclick();
}
else
{
node = document.getElementById(newNode.id);
nodeCount++;
if(node)
node.innerHTML = newNode.innerHTML;
}
}
uD.innerHTML = "";
}

function checkURI() {
var lo=location.href;
if (lo.indexOf("#") > -1) {
AjaxUpdate("setURI="+lo.substring(lo.indexOf("#")+1,lo.length));
}
else {
setURI(arguments[0]);
}
}

function setURI() {
var lo = location.href;

if (lo.indexOf("#") > -1) {
lo = lo.substring(0, lo.indexOf("#") + 1) + arguments[0];
}
else {
if (lo.indexOf(arguments[0]) > -1) {
lo = lo.replace(arguments[0], "#" + arguments[0]);
}
else {

lo = lo + "#" + arguments[0];
}
}
if (location.href != lo)
location.href = lo;
}

function OperaMessageBoxPreventLossOfFocus() {
if (parent.document.getElementById("_messagebox").style.visibility == "") {
parent.document.getElementById("_messagebox_1").focus();
}
}
