74:function pricingAssistInit()
75:{
76: var reqHdr = document.getElementById('hiddenReqHdr').innerText;
77: var outstation = document.getElementById('hiddenOutstation').innerText;
78: var reqDate = document.getElementById('hiddenReqDate').innerText;
79:
80: var target = "?control=direction_summary";
81: target += "&reqHdr=" + reqHdr
82: + "&outstation=" + outstation
83: + "&reqDate=" + reqDate;
84: document.frames['direction_summary_frame'].location.replace(target);
85:
86: // disable the PNR generation if it is not allowed for this request
87: if ( isPnrGenAllowed() == 0 )
88: {
89: disableButton('confirm');
90: disableButton('approve');
91: }
92:
93: // disable the reject button if the request is created through the UI
94: var requestSource = document.getElementById('hiddenRequestSource').inne
:rText;
95: if (requestSource == 3)
96: {
97: disableButton("rejectButton");
98: }
99: else
100: {
101: enableButton("rejectButton");
102: }
103:}