// Input Parameter - 1. Combo Object // 2. Text of the option // 3. Value that is to be returned, when the option is selected // Output Parameter - None // Functionality - This function dynamically adds an option to the combo. function getComboUpdated(comboObj,strDispValue, strKey) { var option = new Option(strDispValue, strKey); // Add a new option to the combo var i = comboObj.length; comboObj.options[i]=option; } // ~getComboUpdated() // Input Parameter - 1. Url of the popup frame // 2. Url of screen to be opened in the frame // 3. object name to be passed to the popup screen. // 4. object name to be passed to the popup screen. // 5. object name to be passed to the popup screen. // 6. object name to be passed to the popup screen. // Output Parameter - None // Functionality - This is used to open flm in popup mode.. function openFlmAsPopup(frameName,url,context1,context2,context3,context4) { strURL = frameName; if(context1 != null) { strURL = strURL + "&enq_context1="; strURL = strURL + context1; } if(context2 != null) { strURL = strURL + "&enq_context2="; strURL = strURL + context2; } if(context3 != null) { strURL = strURL + "&enq_context3="; strURL = strURL + context3; } if(context4 != null) { strURL = strURL + "&enq_context4="; strURL = strURL + context4; } strURL=strURL + '&url='+escape(url+'&popup=true'); //alert('url constructed is'+strURL); openPopupWindowWithPos(strURL, '870', '550', '20', '40'); } function populateGR(objField, HiddenFieldvalue) { if ((objField.value).length == 0) { objField.value=HiddenFieldvalue; } } function RefreshOpenerWindowAndCloseMe(strUrl) { if(window.opener) { // refresh the opener window...as user has selected one of the customer records from the table window.opener.location.href = strUrl; // close the current window after refreshing the opener window.close(); } } function openPopupWindow(strUrl, lngWidth, lngHeight) { var strWindowName = ""; var strWindowFeatures; strWindowFeatures = "toolbar=no,resize=yes,titlebar=no,"; strWindowFeatures = strWindowFeatures + "location=no,directories=no,status=no,scrollbars=yes," strWindowFeatures = strWindowFeatures + "menubar=no,width=" + lngWidth + ",height=" + lngHeight + ",maximize=null"; // open the window window.open(strUrl, "", strWindowFeatures); } function callSubmit(strAction) { var errorArray = new Array([document.frmPremAdd.number,"N"],[document.frmPremAdd.city,"S"]); if (checkAndDisplayErrors(errorArray)) { document.frmPremAdd.Action.value = strAction; document.frmPremAdd.submit(); } } /** * This method will display the lookup screen * @param url URL of the lookup window * @param contextField Context field pointer. * @param lookupid ID of the lookup window, * @param soundex Set it true to show sounex control * @param contextArray parameters passed to the Lookup. */ function openLookup(url, contextField, lookupId, soundex, contextArray) { //strURL = "<%=JspUtils.getURLEncoded(pageContext,"/forward/LookUp") %>"; strURL = url; //add lookupid strURL = strURL + "&enq_lookupid="; strURL = strURL + lookupId; //add soundex strURL = strURL + "&enq_soundex="; strURL = strURL + soundex; //add enq_mode strURL = strURL + "&enq_mode="; if (contextField.value == "") { strURL = strURL + "input"; } else { strURL = strURL + "search"; } //add enq_context in url strURL = strURL + "&enq_context="; strURL = strURL + contextField.name; //add enq_context value strURL = strURL + "&enq_context_value="; strURL = strURL + contextField.value; if(contextArray != null) { var len=contextArray.length; for (i=0;i