function changeToImage (image, filename) {image.src = filename;} // General function to check a text field for all numerics // Parameter = form.textfield function checkTextField(aTextField) { if(! isNum(aTextField.value)) { aTextField.value = ""; // Wipe it out if not all numeric aTextField.focus(); // Set the focus to it } } // Test any value for all numerics function isNum(passedValue) { var countDecimals = 0; for(i = 0; i < passedValue.length; i++) { if((passedValue.charAt(i) < "0") || (passedValue.charAt(i) > "9")) { if(passedValue.charAt(i) != ".") { return(false); } countDecimals++; // Got one } if(countDecimals > 1) return(false); } return(true); } function MM_openBrWindow(theURL,winName,features) { window.open(theURL,winName,features); } function MM_swapImgRestore() { var i,x,a=document.MM_sr; for(i=0;a&&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_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; i0&&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&&id.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x; } function MM_goToURL() { var i, args=MM_goToURL.arguments; document.MM_returnValue = false; for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'"); } //********************************************************* //javascript utilities. these are for development use only //********************************************************* function checkPg(page) { var page; if (page == '1') { alert('all pages have loaded'); } else { alert('page loading '+page); } } function sniffBrow() { var x; var ver= navigator.appVersion; var os= navigator.platform; var plugs= navigator.plugins; var javen = navigator.javaEnabled(); x = new Object(); if (navigator.appName == "Netscape") { x=0; alert('Netscape '+x+'Operating System '+os+' Browser Version: '+ver+' Plugins Available: '+plugs+' java enabled? '+javen); } else { x=1; alert('Microsoft '+x+'Operating System '+os+' Browser Version: '+ver+' Plugins Available: '+plugs+' java enabled? '+javen); } } //*********************************************************** // END SCRIPT UTILITY SECTION //*********************************************************** // For the create section, Initial Title function setTextFocus() { document.updateReqTitleForm.Custponumber.focus(); } // For the Deny Item, Approve Section function setDenyItemFocus() { document.DenyLineItem.Scomments.focus(); } // For the Deny Order, Approve Section function setDenyOrderFocus() { document.DenyFromStatus.comments.focus(); } // For the Expedite Deny Order, Approve Section added by MD Yehiya on 27/05/2004 function setExpediteDenyOrderFocus() { document.ExpediteDenyFromStatus.comments.focus(); } // For SWUI Cancel Item, Needs Acceptance function setCancelLineItemSWUIFocus(){ document.wuiform.Oexternalcomments.focus(); } // For WUI Approve Item function setApproveNeedsMyApprovalFocus(){ document.OkApprovaCodeForm.approvalcode.focus(); } //For the admin bad password page. function setABPWFocus() { document.loginForm.principalID.focus(); } function setFocus() { document.mainForm.principalID.focus(); } function setApprovalCodeFieldFocus() { document.wuiform.approvalcode.focus(); } function setStoredOrderNameFieldFocus() { document.wuiform.storedOrderName.focus(); } //Grab focus in Preparer Add Screen on 26th April by Tarkeshwar function setPrepareUserFieldFocus() { document.wuiform.userName.focus(); } // For Punchout_Reg, Buyer Organization function setBuyerOrgFocus() { document.wuiForm.Ubusinessunit.focus(); } // For Punchout_Reg, Profile function setProfileFocus() { document.wuiForm.Uemail.focus(); } // For Punchout_Reg, Transmission function setTransmissionFocus() { document.wuiForm.Dpath.focus(); } // For Punchout_Reg, Shipping function setShippingFocus() { document.wuiForm.Cpath.focus(); } // For Punchout_Reg, Billing function setBillingFocus() { document.wuiForm.Ctype.focus(); } // For SWUI, ADD Product function setEnterProductFocus() { document.wuiForm.Pname.focus(); } // For the Receive section, Duplicate Order function setStoredOrderNameFieldFocus() { document.wuiform.storedOrderName.focus(); } function dateReturn(formatDate, formName, fieldName){ window.opener.document.forms[formName].elements[fieldName].value = formatDate; window.close(); } function dateReturnNone(formName, fieldName){ window.opener.document.forms[formName].elements[fieldName].value = ""; window.close(); } function settext(){ window.opener.document.form1.field.value=""; window.close(); } // For the reports - filter function setReportsChoiceInteraction(choiceName) { var index = document.forms[0].elements[choiceName].selectedIndex; window.location='/control/loadReportFilterBusinessUnit?businessUnitChoice=' + document.forms[0].elements[choiceName][index].value; } // For the report - change the action order href function changeActionReportsRunReports(){ document.wuiForm.action='/control/loadReportsRunReports'; document.wuiForm.submit(); } // For the report - change the action order href function changeActionReportsSelectFilters(){ document.wuiForm.action='/control/loadReportsSelectFilters'; document.wuiForm.target=''; document.wuiForm.submit(); } // For the report - submitting the report to open in a new window function openReportInNewWindow(){ document.wuiForm.target='_BLANK'; document.wuiForm.submit(); } // For the create - service search function setCreateServiceChoiceInteraction(choiceName) { var index = document.forms[0].elements[choiceName].selectedIndex; window.location='/control/loadSuppliersForService?Srefitem=' + document.forms[0].elements[choiceName][index].value; } // For the receive - partially shipped advance search function setReceivePartShippedChoiceInteraction(choiceName) { var index = document.forms[0].elements[choiceName].selectedIndex; window.location='/control/loadAdvancedPartiallyShippedBusinessUnit?businessUnitChoice=' + document.forms[0].elements[choiceName][index].value; } // For the receive - partially received advance search function setReceivePartRecChoiceInteraction(choiceName) { var index = document.forms[0].elements[choiceName].selectedIndex; window.location='/control/loadAdvancedPartiallyReceivedBusinessUnit?businessUnitChoice=' + document.forms[0].elements[choiceName][index].value; } // For the receive - all advance search function setReceiveAllChoiceInteraction(choiceName) { var index = document.forms[0].elements[choiceName].selectedIndex; window.location='/control/loadAdvancedAllBusinessUnit?businessUnitChoice=' + document.forms[0].elements[choiceName][index].value; } // For the approve - all advance search function setApproveChoiceInteraction(choiceName) { var index = document.forms[0].elements[choiceName].selectedIndex; window.location='/control/loadAdvancedSearchBusinessUnit?businessUnitChoice=' + document.forms[0].elements[choiceName][index].value; } // For the receive - advance search function setReceiveChoiceInteraction(choiceName) { var index = document.forms[0].elements[choiceName].selectedIndex; var index2 = document.forms[0].elements["orderChoice"].selectedIndex; var index3 = document.forms[0].elements["searchForChoice"].selectedIndex; window.location='/control/loadAdvancedSearchBusinessUnit?startDateField=' + document.forms[0].elements["startDateField"].value + '&endDateField=' + document.forms[0].elements["endDateField"].value + '&businessUnitChoice=' + document.forms[0].elements[choiceName][index].value + '&changeForBU=true&orderChoice=' + document.forms[0].elements["orderChoice"][index2].value + '&searchForChoice=' + document.forms[0].elements["searchForChoice"][index3].value; } // For the choice interaction of username vs business unit and user in the advanced search section function changeUsingChoice(choiceName) { var index = document.forms[0].elements[choiceName].selectedIndex; var index2 = document.forms[0].elements["orderChoice"].selectedIndex; if (document.forms[0].elements["usersBusinessUnitsChoice"]) { var index3 = document.forms[0].elements["usersBusinessUnitsChoice"].selectedIndex; window.location='/control/loadAdvancedSearchBusinessUnit?startDateField=' + document.forms[0].elements["startDateField"].value + '&endDateField=' + document.forms[0].elements["endDateField"].value + '&searchForChoice=' + document.forms[0].elements[choiceName][index].value + '&changeForUsing=true&orderChoice=' + document.forms[0].elements["orderChoice"][index2].value + '&businessUnitChoice=' + document.forms[0].elements["usersBusinessUnitsChoice"][index3].value; } else window.location='/control/loadAdvancedSearchBusinessUnit?startDateField=' + document.forms[0].elements["startDateField"].value + '&endDateField=' + document.forms[0].elements["endDateField"].value + '&searchForChoice=' + document.forms[0].elements[choiceName][index].value + '&changeForUsing=true&orderChoice=' + document.forms[0].elements["orderChoice"][index2].value; } // For the receive - SWUI advance search -BCUI function setSWUIChoiceInteraction() { var index = document.forms[0].elements["searchForChoice"].selectedIndex; var index2 = document.forms[0].elements["usersBusinessUnitsChoice"].selectedIndex; var index3 = document.forms[0].elements["orderChoice"].selectedIndex; var newLocation = '/control/loadSWUIAdvancedSearchBusinessUnit?searchForChoice=' + document.forms[0].elements["searchForChoice"][index].value + '&businessUnitChoice=' + document.forms[0].elements["usersBusinessUnitsChoice"][index2].value +'&orderChoice=' + document.forms[0].elements["orderChoice"][index3].value; if (document.forms[0].elements["dateTypeChoice"]) { var index4 = document.forms[0].elements["dateTypeChoice"].selectedIndex; newLocation = newLocation +'&dateTypeChoice=' + document.forms[0].elements["dateTypeChoice"][index4].value; } newLocation= newLocation +'&BUOnchange=TRUE'; window.location=newLocation; } // For the choice interaction of "Search For" vs business unit and user in the SWUI advanced search section -11/30/00 by BCui function changeSearchForChoice() { var newLocation = '/control/loadSWUIAdvancedSearchBusinessUnit?searchForChoice='; var index = document.forms[0].elements["searchForChoice"].selectedIndex; var index2 = document.forms[0].elements["orderChoice"].selectedIndex; newLocation = newLocation + document.forms[0].elements["searchForChoice"][index].value + '&orderChoice=' + document.forms[0].elements["orderChoice"][index2].value; if (document.forms[0].elements["usersBusinessUnitsChoice"]) { var index3 = document.forms[0].elements["usersBusinessUnitsChoice"].selectedIndex; newLocation = newLocation +'&businessUnitChoice=' + document.forms[0].elements["usersBusinessUnitsChoice"][index3].value; } if (document.forms[0].elements["dateTypeChoice"]) { var index4 = document.forms[0].elements["dateTypeChoice"].selectedIndex; newLocation = newLocation +'&dateTypeChoice=' + document.forms[0].elements["dateTypeChoice"][index4].value; } newLocation = newLocation + '&usingOnchange=TRUE'; window.location=newLocation; } function changeStatusChoiceHistory(choiceName) { var index = document.forms[0].elements[choiceName].selectedIndex; var index2 = document.forms[0].elements["searchForChoice"].selectedIndex; if (document.forms[0].elements["usersBusinessUnitsChoice"]) { var index3 = document.forms[0].elements["usersBusinessUnitsChoice"].selectedIndex; window.location='/control/loadAdvancedSearchBusinessUnit?orderChoice=' + document.forms[0].elements[choiceName][index].value + '&changeForHistory=true&searchForChoice=' + document.forms[0].elements["searchForChoice"][index2].value + '&businessUnitChoice=' + document.forms[0].elements["usersBusinessUnitsChoice"][index3].value; } else window.location='/control/loadAdvancedSearchBusinessUnit?orderChoice=' + document.forms[0].elements[choiceName][index].value + '&changeForHistory=true&searchForChoice=' + document.forms[0].elements["searchForChoice"][index2].value; } // For the choice interaction of payment types in punchout registration billing defaults function changePaymentChoice(choiceName) { var index = document.forms[0].elements[choiceName].selectedIndex; document.forms[0].action = '/control/loadBillingDefaultsPaymentType?paymentType=' + document.forms[0].elements[choiceName][index].value; document.forms[0].submit(); } // For the choice interaction of payment types in punchout registration summary edit payment function changePaymentChoiceFromSummary(choiceName) { var index = document.forms[0].elements[choiceName].selectedIndex; window.location='/control/loadSummaryPaymentType?paymentType=' + document.forms[0].elements[choiceName][index].value + '&formAction=/control/updateBuyingOrganizationPaymentMethodFromSummary'; } // This controls submitting of the advanced search form in the Product Catalog section. nick function searchCriteriaSubmitController(func) { var formRef = document.forms["wuiForm"]; if (arguments.length < 1) { formRef.action = "/control/performPCSearch"; } else { formRef.elements["func"].value=func; formRef.action = "/control/loadPCAdvancedSearchPage"; } formRef.submit(); } // For the receive - change the action order href function changeActionDuplicateOrder(){ document.wuiform.action='/control/loadDuplicateOrderPage'; document.wuiform.submit(); } //For the status order section function changeActionStoredSubmit(){ document.wuiform.action='/control/storedSubmit'; document.wuiform.submit(); } function changeActionStoredDelete(){ document.wuiform.action='/control/confirmDeleteStoredFromList'; document.wuiform.submit(); } function changeActionDuplicate(){ document.wuiform.action='/control/loadDuplicateOrderPage'; document.wuiform.submit(); } // For the receive - change the cancel href function changeActionCancelOrder(){ document.wuiform.action='/control/loadPartiallyShipCancelOrderPage'; document.wuiform.submit(); } // These are used in the History Section function changeActionStoredSubmit(){ document.wuiform.action='/control/storedSubmit'; document.wuiform.submit(); } //For the status order section //function changeActionStoredDelete(){ //document.wuiform.action='/control/deleteRepeatOrder'; //document.wuiform.submit(); //} //For the status order section function changeActionStatusSubmit(){ //Gopi Kumar , 13 May 2004 , LIC - Replaced /loadSubmitPage to /submitFromSummary for StoredOrder screeen removal document.wuiform.action='/control/submitFromSummary'; document.wuiform.submit(); } //For the status order section function changeActionStatusDelete(){ document.wuiform.action='/control/loadConfirmDeleteStatusPage'; document.wuiform.submit(); } //For the status order section function changeActionStatusDenied(){ document.wuiform.action='/control/LoadStatusDenyPage'; document.wuiform.submit(); } //For the status order section function changeActionStatusDuplicate(){ document.wuiform.action='/control/loadDuplicateOrderPage'; document.wuiform.submit(); } //For the status order section function changeActionstatusCancel(){ document.wuiform.action='/control/loadPartiallyShipCancelOrderPage'; document.wuiform.submit(); } //For the status order section function changeActionSubmittedDuplicate(){ document.wuiform.action='/control/loadDuplicateOrderPage'; document.wuiform.submit(); } function changeActionApprovedDuplicate(){ document.wuiform.action='/control/loadDuplicateOrderPage'; document.wuiform.submit(); } function changeActionStatusViewEdit(){ document.wuiform.action='/control/loadStatusOrderDetails'; document.wuiform.submit(); } function changeActionStatusView(){ document.wuiform.action='/control/loadStatusOrderDetails'; document.wuiform.submit(); } //For the Approve Section function changeactionapprovecode(){ document.wuiform.action='/control/loadApproveCodePage'; document.wuiform.submit(); } //For the Observe Section added by MD Yehiya on 5/20/2004 function changeactionobservecode(){ document.wuiform.action='/control/loadObserveCodePage'; document.wuiform.submit(); } function changeactiondenyFromApprove(){ document.wuiform.action='/control/LoadDenyPage'; document.wuiform.submit(); } function changeActionApproveView(){ document.wuiform.action='/control/LoadsummaryInfoFromApprove'; document.wuiform.submit(); } //Receive section's load details page with radio button function changeActionReceiveView(){ document.wuiform.action='/control/loadPartRecOrderDetailsPage'; document.wuiform.submit(); } // Supplier WUI Interface Development // Service Catalog Mgt function setAddServiceFieldFocus() { document.addServiceForm.Service.focus(); } function setEditServiceFieldFocus() { document.editServiceForm.Service.focus(); } // Purchase Order section's load details page with radio button function changeActionPurchaseOrderView(){ document.wuiform.action='/control/loadPurchaseOrderDetailsPage'; document.wuiform.submit(); } function changeActionPurchaseOrderAccept(){ document.wuiform.action='/control/PurchaseOrderAccept'; document.wuiform.submit(); } function changeActionPurchaseOrderCancel(){ document.wuiform.action='/control/loadCancelPurchaseOrderPage'; document.wuiform.submit(); } function changeActionPurchaseOrderLineItemAccept(){ document.wuiform.action='/control/PurchaseOrderAcceptLineItem'; document.wuiform.submit(); } function changeActionPurchaseOrderLineItemCancel(){ document.wuiform.action='/control/loadCancelPurchaseOrderLineItemPage'; document.wuiform.submit(); } // This code checks and routes links for CEM function checkValue() { var holder = ""; holder = document.outputForm.outputMode.options[document.outputForm.outputMode.selectedIndex].value; if (holder == "0") { document.outputForm.action='/control/reloadOrderOutput?STATE=0'; document.outputForm.submit(); } else if (holder == "1") { document.outputForm.action='/control/reloadOrderOutput?STATE=1'; document.outputForm.submit(); } else { document.outputForm.action='/control/reloadOrderOutput?STATE=2'; document.outputForm.submit(); } } // reloads proper radio button and display options for TypeAttributePage.jsp in CEM function reloadCEMTypeAttributePage() { document.wuiForm.action='/control/reloadTypeAttributePage'; document.wuiForm.submit(); } // reloads proper radio button and display options for TypeAttributePageFromSummary.jsp in CEM function reloadCEMTypeAttributePageFromSummary() { document.PAForm.action='/control/reloadTypeAttributePageFromSummary'; document.PAForm.submit(); } // handles submission for Assign PAG section in CEM function submitAssignPAG() { document.PAGForm.action='/control/assignPAG'; document.PAGForm.submit(); } // handles submission of XML type output for CEM function submitXML() { document.outputForm.action='/control/loadOutputSuccessPage'; document.outputForm.submit(); } // for PL assign pagination submit in CEM function submitCheckFormassignPaginationRedirect() { document.checkForm.action='/control/reloadAssignRemovePLCorporateEntitiesFromPagination?OPERATION=assign'; document.checkForm.submit(); } // for PL remove pagination submit in CEM function submitCheckFormremovePaginationRedirect() { document.checkForm.action='/control/reloadAssignRemovePLCorporateEntitiesFromPagination?OPERATION=remove'; document.checkForm.submit(); } // for Service assign pagination submit in CEM function submitCheckFormassignServicesPaginationRedirect() { document.checkForm.action='/control/reloadAssignRemoveServicesFromPagination?OPERATION=assign'; document.checkForm.submit(); } // for Service remove pagination submit in CEM function submitCheckFormremoveServicesPaginationRedirect() { document.checkForm.action='/control/reloadAssignRemoveServicesFromPagination?OPERATION=remove'; document.checkForm.submit(); } // for PAG assign pagination submit in CEM function submitCheckFormassignPAGPaginationRedirect() { document.checkForm.action='/control/reloadAssignRemovePAGFromPagination?OPERATION=assign'; document.checkForm.submit(); } // for PAG remove pagination submit in CEM function submitCheckFormremovePAGPaginationRedirect() { document.checkForm.action='/control/reloadAssignRemovePAGFromPagination?OPERATION=remove'; document.checkForm.submit(); } // used to record checkbox status in hidden field for CEM checkbox pages function processChange(inputname) { // when we click something, note that it has been changed. document.checkForm.elements[inputname].value = 'changed'; } // checks/unchecks all checkboxes in CEM Services section function checkAll(checkAllBox) { for (var i = 0; i < document.checkForm.elements.length; i++) { var currItem = document.checkForm.elements[i]; if ((currItem.name != checkAllBox.name) && (currItem.type == 'checkbox')) { currItem.checked = checkAllBox.checked; } else { if ((currItem.type == 'hidden') && (currItem.value == 'changed')) { currItem.value = 'unchanged'; } } } return; } function refreshAll() { for (var i = 0; i < document.checkForm.elements.length; i++) { var currItem = document.checkForm.elements[i]; if ((currItem.type == 'hidden') && (currItem.value == 'changed')) { currItem.value = 'unchanged'; } } return; } //History section's load details page with radio button function changeActionHistoryView(){ document.wuiform.action='/control/loadStoredOrderDetails'; document.wuiform.submit(); } function changeActionHistoryReceivedView(){ document.wuiform.action='/control/loadOrderDetails'; document.wuiform.submit(); } function loadSWUIHelpWindow(base, pageName) { var newBase = base.substring(0, base.lastIndexOf("/")-1) newBase = newBase.substring(0, newBase.lastIndexOf("/")+1) var URLString = 'Ketera' URLString += '' URLString += '' URLString += '<body bgcolor="#FFFFFF" text="333333" link="333333" vlink="333333" alink="333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">' URLString += '</body>' helpWindow = window.open(newBase + "wuihelp/index.html") helpWindow.document.write(URLString) } function loadHelpWindow(base, pageName) { var newBase = base.substring(0, base.lastIndexOf("/")-1) newBase = newBase.substring(0, newBase.lastIndexOf("/")+1) //glu: 7/5/2001 changed title to Ketera var URLString = 'Ketera' URLString += '' URLString += '' URLString += '<body bgcolor="#FFFFFF" text="333333" link="333333" vlink="333333" alink="333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">' URLString += '</body>' helpWindow = window.open(newBase + "wuihelp/index.html") helpWindow.document.write(URLString) } function loadPunchInHelpWindow(base, pageName) { var newBase = base.substring(0, base.lastIndexOf("/")-1) newBase = newBase.substring(0, newBase.lastIndexOf("/")+1) var url = newBase + "wuihelp/" + pageName window.open(url, "window", "location=no, menubar=no, scrollbars=yes") } function loadLoginHelpWindow(base, pageName) { var newBase = base var URLString = 'Ketera' URLString += '' URLString += '<body bgcolor="#FFFFFF" text="333333" link="333333" vlink="333333" alink="333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">' URLString += '</body>' helpWindow = window.open("") helpWindow.document.write(URLString) } function loginHelpWindow(base, pageName) { var URLString = 'Ketera' URLString += '' URLString += '<body bgcolor="#FFFFFF" text="333333" link="333333" vlink="333333" alink="333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">' URLString += '</body>' helpWindow = window.open("") helpWindow.document.write(URLString) } function loadHelpWindowMin(base, pageName) { var newBase = base.substring(0, base.lastIndexOf("/")-1) newBase = newBase.substring(0, newBase.lastIndexOf("/")+1) var URLString = 'Ketera' URLString += '' URLString += '<body bgcolor="#FFFFFF" text="333333" link="333333" vlink="333333" alink="333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">' URLString += '</body>' helpWindow = window.open(newBase + "wuihelp/index.html") helpWindow.document.write(URLString) } // checks/unchecks all checkboxes in section function checkBoxes() { for (var i = 0; i < document.wuiForm.elements.length; i++) { var currItem = document.wuiForm.elements[i]; if ((currItem.name != 'checkall') && (currItem.type == 'checkbox')) currItem.checked = document.wuiForm.checkall.checked; } } //AddProduct section's Select Commodity Code select lists function selectCommodityCode(){ document.wuiForm.action='/control/loadCommodityCodes'; document.wuiForm.submit(); } function loadAPImagePath(){ var imagePath = document.wuiForm.Picturename.value; document.wuiForm.action="/control/loadPCEnterProductPage?imagePath="+imagePath; document.wuiForm.submit(); } function loadAPImagePathSummary(){ var imagePath = document.wuiForm.Picturename.value; document.wuiForm.action="/control/loadPCAddProductSummaryPage?imagePath="+imagePath; document.wuiForm.submit(); } function loadEPImagePath(){ var imagePath = document.wuiForm.Picturename.value; document.wuiForm.action="/control/loadPCEditItemPage?imagePath="+imagePath; document.wuiForm.submit(); } function loadEPImagePathSummary(){ var imagePath = document.wuiForm.Picturename.value; document.wuiForm.action="/control/loadPCEditProductSummaryPage?imagePath="+imagePath; document.wuiForm.submit(); } function saveEditPrice(irefitem, prefitem) { document.wuiForm.action="/control/loadPCAddPriceBreakPage?Irefitem="+irefitem+"&Prefitem="+prefitem; document.wuiForm.submit(); } // Added by vaitheeswaran on 17/03/2003 for self Admin features. function saveSupplier() { document.all.save.disabled=true; // document.all.email.disabled=true; document.all.faxButton.disabled=true; document.all.assignusers.disabled=true; document.all.cancel.disabled=true; document.all.activate.disabled=true; document.wuiform.action="/control/SAsaveSupplierDraft"; document.wuiform.submit(); } function submitSACancel() { document.wuiform.action="/control/SAListSuppliers?currSelectedSection=SupplierList"; document.wuiform.submit(); } function submitSAAddSupplier() { document.wuiform.action="/control/SAAddSupplier?currSelectedSection=AddSupplier"; document.wuiform.submit(); } // Modified by Rajarajan on 04/30/2004 to include the req param frompage for AssignUsers performance fix function submitSAAssignUsers() { document.wuiform.action="/control/SAAssignUsers?currSelectedSection=AssignUsers&fromPage=SupplierListPage"; document.wuiform.submit(); } function submitDeleteUser() { document.wuiform.action="/control/SACheckDelete"; document.wuiform.submit(); } function saveAndTestFax() { document.all.save.disabled=true; // document.all.emailButton.disabled=true; document.all.faxButton.disabled=true; document.all.assignusers.disabled=true; document.all.cancel.disabled=true; document.all.activate.disabled=true; document.wuiform.action="/control/SAtestFAXFromAdd"; document.wuiform.submit(); } function saveEditTestPOEmail(){ document.all.emailButton.disabled=true; document.wuiform.action="/control/SATestPOEmailFromEdit"; document.wuiform.submit(); } function saveAndTestPOEmail() { document.all.save.disabled=true; // document.all.faxButton.disabled=true; document.all.emailButton.disabled=true; document.all.assignusers.disabled=true; document.all.cancel.disabled=true; document.all.activate.disabled=true; document.wuiform.action="/control/SATestPOEmailFromAdd"; document.wuiform.submit(); } function assignUsers() { document.all.save.disabled=true; // document.all.email.disabled=true; document.all.faxButton.disabled=true; document.all.assignusers.disabled=true; document.all.cancel.disabled=true; document.all.activate.disabled=true; document.wuiform.action="/control/SAAssignFromAdd"; document.wuiform.submit(); } function saveAndActivateSupplier() { document.all.save.disabled=true; // document.all.email.disabled=true; document.all.faxButton.disabled=true; document.all.assignusers.disabled=true; document.all.activate.disabled=true; document.all.cancel.disabled=true; document.wuiform.action="/control/SAActivateFromAdd"; document.wuiform.submit(); } function changestatus() { var len = null; var status = null; len = document.wuiform.CrefItem.length; if ( len == null ) { if (document.wuiform.CrefItem.checked) { CrefItem = document.wuiform.CrefItem.value; CrefItem = "s"+CrefItem; status = eval("document.wuiform." + CrefItem).value; } } for (i=0;i