//WARNING: THIS IS A COMPRESSED FILE AND SHOULD NOT BE EDITED!!!
var LTLCheckedDefault;
var TKCheckedDefault;
var VPQCheckedDefault;
function CancelDefault(frm)
{  frm.FormAction.value = "CN";
frm.submit();
alert("Your default setting has been Cancelled.");
}
function ClearDefault(frm)
{  frm.FormAction.value = "CL";
frm.submit();
}
function CancelSelectQuoteTypes() {
if (document.getElementById("hrefQuoteTypes"))
{  document.getElementById("chkLTLQuote").checked = LTLCheckedDefault
document.getElementById("chkTKQuote").checked = TKCheckedDefault
document.getElementById("chkVolumeQuote").checked = VPQCheckedDefault
}
document.getElementById("trSelectQuoteTypes").className = "hidden"
if (document.getElementById("hrefQuoteTypes"))
{  document.getElementById("hrefQuoteTypes").disabled = false
}
}
function CollapsePrevList(strListType) {
var strSource = '"/tools/shared/PrevList.asp?type='
switch(strListType)
{  case 'BLT':
strListType = "BOL"
strSource += strListType + '&show=N&qtype=B"'
break;
case 'PKP':
strListType = "PU"
strSource += strListType + '&show=N&qtype=P"'
break;
case 'LTL':
strListType = "QUO"
strSource += strListType + '&show=N&qtype=R"'
break;
case 'TKQ':
strListType = "QUO"
strSource += strListType + '&show=N&qtype=T"'
break;
case 'VPQ':
strListType = "QUO"
strSource += strListType + '&show=N&qtype=V"'
break;
case 'RET':
strListType = "RET"
strSource += strListType + '&show=N"'
break;
case 'PKS':
strListType = "PKS"
strSource += strListType + '&show=N"'
break;
default:
strSource += strListType + '&show=N"'
if (strListType == "QUO") {  CancelSelectQuoteTypes() }
break;
}
eval('document.getElementById("iframePrev' + strListType + 'List").src = ' + strSource)
eval('setTimeout(\'document.getElementById("tr' + strListType + 'PrevList").className = "hidden"\',100)')
eval('document.getElementById("tdCollapse' + strListType + 'PrevList").className = "hidden"')
eval('document.getElementById("tdExpand' + strListType + 'PrevList").className = "visible"')
if (document.getElementById("blnExpandOK")) { document.getElementById("blnExpandOK").value = "true" }
}
function ExpandPrevList(strListType,strQueryString,blnSmallFrame) {
if (document.getElementById("blnExpandOK"))
{  if (document.getElementById("blnExpandOK").value == "true")
{  document.getElementById("blnExpandOK").value = "false"
switch(strListType)
{  case 'QUO':
if (document.getElementById("tdExpandBOLPrevList")) {
if (document.getElementById("tdExpandBOLPrevList").className == "visible")
{  document.getElementById("tdExpandBOLPrevList").innerHTML = "[Show]" }
}
if (document.getElementById("tdExpandPUPrevList")) {
if (document.getElementById("tdExpandPUPrevList").className == "visible")
{  document.getElementById("tdExpandPUPrevList").innerHTML = "[Show]" }
}
break;
case 'BOL':
if (document.getElementById("tdExpandPUPrevList")) {
if (document.getElementById("tdExpandPUPrevList").className == "visible")
{  document.getElementById("tdExpandPUPrevList").innerHTML = "[Show]" }
}
if (document.getElementById("tdExpandQUOPrevList")) {
if (document.getElementById("tdExpandQUOPrevList").className == "visible")
{  document.getElementById("tdExpandQUOPrevList").innerHTML = "[Show]" }
}
break;
case 'PU':
if (document.getElementById("tdExpandBOLPrevList")) {
if (document.getElementById("tdExpandBOLPrevList").className == "visible")
{  document.getElementById("tdExpandBOLPrevList").innerHTML = "[Show]" }
}
if (document.getElementById("tdExpandQUOPrevList")) {
if (document.getElementById("tdExpandQUOPrevList").className == "visible")
{  document.getElementById("tdExpandQUOPrevList").innerHTML = "[Show]" }
}
break;
case 'RET':
if (document.getElementById("tdExpandRETPrevList")) {
if (document.getElementById("tdExpandRETPrevList").className == "visible")
{  document.getElementById("tdExpandRETPrevList").innerHTML = "[Show]" }
}
break;
case 'PKS':
if (document.getElementById("tdExpandPKSPrevList")) {
if (document.getElementById("tdExpandPKSPrevList").className == "visible")
{  document.getElementById("tdExpandPKSPrevList").innerHTML = "[Show]" }
}
break;
default:
break;
}
eval('document.getElementById("tr' + strListType + 'PrevList").className = "visible"')
eval('document.getElementById("tdCollapse' + strListType + 'PrevList").className = "visible"')
eval('document.getElementById("tdExpand' + strListType + 'PrevList").className = "hidden"')
eval('DisplayPrevListWait("' + strListType + '","iframePrev' + strListType + 'List",blnSmallFrame)')
eval('document.getElementById("iframePrev' + strListType + 'List").src = "/tools/shared/PrevList.asp?type=' + strListType + '&show=Y'+strQueryString+'"')
return;
}
}
else
{  eval('document.getElementById("tr' + strListType + 'PrevList").className = "visible"')
eval('document.getElementById("tdCollapse' + strListType + 'PrevList").className = "visible"')
eval('document.getElementById("tdExpand' + strListType + 'PrevList").className = "hidden"')
eval('DisplayPrevListWait("' + strListType + '","iframePrev' + strListType + 'List",blnSmallFrame)')
eval('document.getElementById("iframePrev' + strListType + 'List").src = "/tools/shared/PrevList.asp?type=' + strListType + '&show=Y'+strQueryString+'"')
}
}
function ActivateLinks() {
if (document.getElementById("spnRefreshPrevList")) {
document.getElementById("spnRefreshPrevList").innerHTML = '&nbsp;[<a href="javascript:' + document.getElementById("spnRefreshLink").innerHTML + ';" class="nav">Refresh</a>]'
}
}
function RefreshPrevList(blnSmallFrame, strListType, strQuoteType) {
document.getElementById("spnRefreshPrevList").innerHTML = '&nbsp;[Refresh]'
DisplayPrevListWaitScreens(blnSmallFrame,strQuoteType)
eval('document.getElementById("iframePrev' + strListType + 'List").src = "/tools/shared/PrevList.asp?type=' + strListType + '"')
}
function DisplayPrevListWait(strPrevListType,strFrame,blnSmallFrame)
{  switch(strPrevListType)
{  case "BOL":
strPrevListType = "Bills of Lading"
break;
case "PU":
strPrevListType = "Pickup Requests"
break;
case "QUO":
strPrevListType = "Quotations"
break;
case "RET":
strPrevListType = "Returns"
break;
case "PKS":
strPrevListType = "Packing Slips"
break;
default:
break;
}
var message = "Your list of previous " + strPrevListType + " is being retrieved.<BR>Please stand by."
strWaitString = '<HTML>'
strWaitString += ' <HEAD>'
strWaitString += '  <STYLE>.fbLargeTextB  { font-family: verdana, "century gothic", tahoma, "arial unicode ms", arial; font-size: 10pt; color: #000000; font-weight: bold; }'
strWaitString += '         .pgTxt         { font-family: verdana, "century gothic", tahoma, "arial unicode ms", arial; font-size: 10pt; }'
strWaitString += '  </STYLE>'
strWaitString += '  </SCRIP' + 'T>'
strWaitString += ' </HEAD>'
strWaitString += ' <BODY topmargin=0 leftmargin=0 marginheight=0 marginwidth=0 ONLOAD="javascript:window.history.go(-1)">'
if (blnSmallFrame)
{
strWaitString += '  <TABLE VALIGN="TOP" ALIGN="CENTER" WIDTH=' + WaitWidth + ' BORDER=0>'
WaitHeight = 10
}
else
{
strWaitString += '  <TABLE HEIGHT="100%" ALIGN="CENTER" WIDTH=' + WaitWidth + ' BORDER=0>'
}
strWaitString += '   <TR><TD HEIGHT=' + WaitHeight + '></TD></TR>'
strWaitString += '   <TR><TD ALIGN="CENTER"><FONT ID="WaitMessage" CLASS="fbLargeTextB">' + message + '</FONT></TD></TR>'
strWaitString += '   <TR bgColor="WHITE"><TD ALIGN="CENTER"><IMG NAME="Wait" SRC="/images/ani_wait.gif" BORDER=0 ALT="Please wait"></TD></TR>'
if (!blnSmallFrame)
{
strWaitString += '   <TR><TD HEIGHT=' + WaitHeight + '></TD></TR>'
}
strWaitString += '  </TABLE>'
strWaitString += ' </BODY>'
strWaitString += '</HTML>'
if (ie5)
{  if (eval('parent.' + strFrame))
{  eval('parent.' + strFrame + '.document.write(strWaitString)')
document.close()
eval('setTimeout("parent.' + strFrame + '.close();", 400)')
}
else if (eval('self.' + strFrame))
{  eval('self.' + strFrame + '.document.write(strWaitString)')
document.close()
eval('setTimeout("self.' + strFrame + '.close();", 400)')
}
}
else
{  var strContent
if (ie4) { strContent = 'contentWindow.document' }
else { strContent = 'contentDocument' }
eval('document.getElementById("' + strFrame + '").' + strContent + '.write(strWaitString)')
document.close()
eval('setTimeout(\'document.getElementById("' + strFrame + '").' + strContent + '.close();\', 400)')
}
}
function DisplayPrevListWaitScreens(blnSmallFrame,strQuoteType)
{  DisplayWaitScreen("QUO",blnSmallFrame,strQuoteType)
DisplayWaitScreen("BOL",blnSmallFrame)
DisplayWaitScreen("PU",blnSmallFrame)
DisplayWaitScreen("RET",blnSmallFrame)
DisplayWaitScreen("PKS",blnSmallFrame)
}
function DisplayWaitScreen(strListType,blnSmallFrame,strQuoteType)
{  if (eval('document.getElementById("tr' + strListType + 'PrevList")'))
{  if (eval('document.getElementById("tr' + strListType + 'PrevList").className == "visible"'))
{  eval('setTimeout("DisplayPrevListWait(\'' + strListType + '\',\'iframePrev' + strListType + 'List\',' + blnSmallFrame + ')",100)')
if (strQuoteType)
{  strQuoteType = "&qtype=" + strQuoteType
eval('setTimeout("document.getElementById(\'iframePrev'+ strListType + 'List\').src = \'/tools/shared/PrevList.asp?type='+ strListType + strQuoteType + '\'",120)')
}
else {  eval('setTimeout("document.getElementById(\'iframePrev'+ strListType + 'List\').src = \'/tools/shared/PrevList.asp?type='+ strListType + '\'",120)') }
}
}
}
function SelectQuoteTypes() {
LTLCheckedDefault = document.getElementById("chkLTLQuote").checked
TKCheckedDefault = document.getElementById("chkTKQuote").checked
VPQCheckedDefault = document.getElementById("chkVolumeQuote").checked
document.getElementById("trSelectQuoteTypes").className = "visible"
document.getElementById("hrefQuoteTypes").disabled = true
}
function UpdateQuoteTypes() {
var LTLChecked = document.getElementById("chkLTLQuote").checked
var TKChecked = document.getElementById("chkTKQuote").checked
var VPQChecked = document.getElementById("chkVolumeQuote").checked
var strQueryString
if (LTLChecked){  document.getElementById("chkLTLQuote").value = "Y" }
else { document.getElementById("chkLTLQuote").value = "N" }
if (TKChecked) { document.getElementById("chkTKQuote").value = "Y" }
else { document.getElementById("chkTKQuote").value = "N" }
if (VPQChecked) { document.getElementById("chkVolumeQuote").value = "Y" }
else { document.getElementById("chkVolumeQuote").value = "N" }
document.getElementById("trSelectQuoteTypes").className = "hidden"
document.getElementById("hrefQuoteTypes").disabled = false
strQueryString = "&LTL=" + document.getElementById("chkLTLQuote").value + "&TK=" + document.getElementById("chkTKQuote").value + "&VPQ=" + document.getElementById("chkVolumeQuote").value
ExpandPrevList("QUO",strQueryString)
}
function ValidateQuoteTypes() {
var LTLChecked = document.getElementById("chkLTLQuote").checked
var TKChecked = document.getElementById("chkTKQuote").checked
var VPQChecked = document.getElementById("chkVolumeQuote").checked
if (LTLChecked || TKChecked || VPQChecked) { UpdateQuoteTypes() }
else { return warnInvalid(document.getElementById("chkLTLQuote"), 'You must select at least one quote type.\n\nIf no longer wish to see your list of previous quotations, please click on "Collapse This Section".'); }
}