-1)
{
tn.selectedIndex = parseInt(arr[0].substring(5));
idx = 1;
browserManager.setTitle((tn.selectedIndex == 0) ? "Shipping" : "Receiving");
}
else
{
tn.selectedIndex = 0;
browserManager.setTitle("Shipping");
}
tn.validateNow();
var details:Boolean = false;
if (idx < arr.length && arr[idx].indexOf("details=") > -1)
{
var value:String = arr[idx].substring(8);
details = (value == "true");
}
if (tn.selectedIndex == 0)
shipDetails.selected = details;
else
recvDetails.selected = details;
parsing = false;
trace("<>updateurl");
var s:String = "";
var t:String = "";
if (tn.selectedIndex == 1)
{
t = "Receiving";
s += "view=" + tn.selectedIndex.toString() + ';'
if (recvDetails.selected)
s += "details=true";
}
else
{
t = "Shipping";
//ADR: set the correct state for the url
s += "view=" + tn.selectedIndex.toString() + ';'
if (shipDetails.selected)
s += "details=true";
}
trace("actuallyUpdateURL: " + s + "|");
browserManager.setFragment(s);
browserManager.setTitle(t);
trace("<