/* * * File Name : common.js * * Description : This file provides the common javascript functions used for entitlement module. * * Author : Vinoth * Modified By : * Modified Date : * * Copyright (c) 2003 Polaris Software Lab All Rights Reserved. * * This software is the confidential and proprietary information of Polaris Software Lab. * (Confidential Information). You shall not disclose or use Confidential * Information without the express written agreement of Polaris Software Lab. /************************************************************************************************* CHANGE CODE AUTHOR DESCRIPTION DATE CHG001 Udesh.p CHanging language based on UserPersonlization 27/09/2005 CHG003_62679 Maehsh Height changed 04/02/2011 22953_CHG001 Nagarajan.Ka To disable Shift-enter 16/03/2006 26719_CHG001 sushil.behera One more method has been added 17/03/2006 CHG002 Udesh validation added for messagewindow close 05/04/06 7/03/2006 CHG002_01 Udesh Validation is added for the above change 12/04/06 Regression304 Hemalatha For Fixing Regression issue 304 18/09/07 Subhashini Fixing OrbiSolve 333 - GCIF Search Results page 03/10/2007 to have scroll bars, if required Subhashini Making error message window - scrollable one 08/10/2007 if required. Increasing the width of error window CHG32196_BO_14 S.kandasamy Unable to reject a Bulletin Board message 7/3/2008 IUT_118 Ashok 04/02/2011 IUT_198 Ashok Special character issues is handled 09/02/2011 IUT ASHWIN Disable Right click and Shift use 15/02/2011 IUT_228 karthika.v Pop up issue is handled 18/02/2011 IUT_332 karthika.v Allowing space in reject reason popup 18/2/2011 CHG001_65229 Vijayaragavamoorthy disable backspace in disabled text box 09/11/2011 CHG002_65229 Vijayaragavamoorthy enable backspace in text box 02/12/2011 CHG003_65229 Vijayaragavamoorthy disabling scroll bar in GCIF Lookup 02/12/2011 CHG004 Karthika.v SIT_44 - NBAD3.0 fix 18/09/2013 ISSUE_7209 Tamil Deleted corporates not displayed in audit report 16/Dec/2013 ************************************************************************************************* */ var strStyleSheet = ""; /** prasad - start **/ var jsCssName; function globalCSS(cssName){ jsCssName = cssName; } /** prasad - end **/ var reasonWin = null; var searchWin = null; var childWin1=null; var childStatus1=false; //added by sathees 100 var submitFlag=null; // end of add by sathees 100 var childWin2=null; var childStatus2=false; //Added by sushil to set the valid GCIF for validation - 3/17/2006 var enteredGcifByUser=""; /* Function Name : openReasonWindow Description : This function is used to open the reason window for getting the reason for rejection. */ /*This argument is used to call javascript method in jsp form modal dialog window */ var dArgs = {}; //CHG002_65229 Starts var submitFlag = false; function checkSubmitFlag(){ return submitFlag; } function setSubmitFlag(){ submitFlag = true; } //CHG002_65229 End function openReasonWindow() { /* Changes for showModalDialog window and browser capability - selvaraj */ if(window.navigator.appName=="Microsoft Internet Explorer") { if(checkReasonValid) { dArgs.checkReasonValid = checkReasonValid; } //modalDialogWindow("/EntlWeb/jsp/common/ShowModalDialogWindow.jsp?Reason=openReason",150,350,dArgs); messageWin={close:function(){}}; window.showModalDialog("/EntlWeb/jsp/common/ShowModalDialogWindow.jsp?Reason=openReason",dArgs,"dialogHeight:175px;dialogWidth:350px;center:yes;edge:raised;resizable:no;scroll:no;status:no;");//CHG001_62679 }else{ reasonWin = window.open(contxtPath + "/errblank.htm","ReasonWin", "width=400,height=200,top=200,left=300,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no") reasonWin.document.writeln(""); reasonWin.document.writeln(""); reasonWin.document.writeln(" Reason "); /* reasonWin.document.writeln(""); */ //reasonWin.document.writeln(strStyleSheet); //CHG32196_BO_14 //reasonWin.document.writeln(""); reasonWin.document.writeln(""); reasonWin.document.writeln(""); /* reasonWin.document.writeln(""); */ //IUT_228 Start //reasonWin.document.writeln(""); reasonWin.document.writeln("
"); reasonWin.document.writeln("
"); reasonWin.document.writeln("*Reason (Max 100 chars)");//CHG004 reasonWin.document.writeln(""); reasonWin.document.writeln("
"); reasonWin.document.writeln(""); //reasonWin.document.writeln("  "); reasonWin.document.writeln(""); //reasonWin.document.writeln(""); //replaced 'javascript:window.opener.checkReasonForNull()' with 'javascript:window.opener.checkReasonForValid()' by chandra // IUT_118 Start reasonWin.document.writeln(""); //IUT_118 End reasonWin.document.writeln("
"); reasonWin.document.writeln("
 CancelSave
"); reasonWin.document.writeln("
"); reasonWin.document.writeln(""); reasonWin.document.writeln(""); reasonWin.document.close(); childWin1=reasonWin; childStatus1=true; } } /* Added By Vinoth for Reject Reason Mandatory Check and Special Character check */ function searchAllProfileByProfileId(mode,strProfileId,submitFrame,currentFrameName) { var url ="/EntlWeb/SearchServlet?EVENT_ID=SEARCH_PROFILE_BY_PROFILE_ID&CALLING_FRAME="+currentFrameName+"&hdProfileId="+strProfileId+"&SEARCH_MODE="+mode; submitFrame.location.href = url; } function checkReasonForNull() { var reason = Trim(reasonWin.document.frmChild.txtReason.value); if(reason != "") { if(isValidName(reason) == false){ reasonWin.document.frmChild.txtReason.value = ""; reasonWin.document.frmChild.txtReason.focus(); showNewErrorMessage("No special characters allowed","2"); }else if(reason.length > 100){ showNewErrorMessage("Max length must be 100 characters","2");//CHG004 }else{ setReason(reason); reasonWin.close(); } }else { reasonWin.document.frmChild.txtReason.value = ""; reasonWin.document.frmChild.txtReason.focus(); showNewErrorMessage("Please enter the Reject Reason","2"); } } /* This checkReasonValid() function added for modal dialog window */ function checkReasonValid(reason) { /*CHG_70527 Starts*/ var reasonAfterRemovedSpace =Trim(reason) if(reasonAfterRemovedSpace != "") { if(checkForAngBrack(reasonAfterRemovedSpace)){ showNewErrorMessage("Input Contains Invalid characters","2"); }else if(reason.length > 100){ showNewErrorMessage("Max length must be 100 characters","2"); //SIT Issue No-44 }else{ setReason(reasonAfterRemovedSpace); } }else{ showNewErrorMessage("Please enter the Reject Reason","2"); } } /*CHG_70527 ends*/ //added by chandra to allow special charcters in reject reason function checkReasonForValid() { var reason = Trim(reasonWin.document.frmChild.txtReason.value); if(reason != "") { // IUT_198 - Start //IUT_332 - START //if(!isValidStringForLocale(trimValue(eval("reasonWin.document.frmChild.txtReason")).value)){ if(!isValidStringForRejectReason(trimValue(eval("reasonWin.document.frmChild.txtReason")).value, true)){ //CHG_70527 //IUT_332 - END reasonWin.document.frmChild.txtReason.value = ""; reasonWin.document.frmChild.txtReason.focus(); showNewErrorMessage("No Special characters allowed for this Reason field","2"); } // IUT_198 - End else if(checkForAngBrack(reason)){ reasonWin.document.frmChild.txtReason.value = ""; reasonWin.document.frmChild.txtReason.focus(); showNewErrorMessage("Input Contains Invalid characters","2"); }else if(reason.length > 100){ showNewErrorMessage("Max length must be 100 characters","2"); //CHG004 }else{ setReason(reason); reasonWin.close(); } }else { reasonWin.document.frmChild.txtReason.value = ""; reasonWin.document.frmChild.txtReason.focus(); showNewErrorMessage("Please enter the Reject Reason","2"); } } function checkForAngBrack(val) { if(val.indexOf(">")>=0 || val.indexOf("<")>=0) { return true; } return false; } /* function openResultWindowWithScroll(strMessage){ messageWin = window.open("","MessageWin", "width=300,height=125,top=200,left=300,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(" " + strMessage + " "); messageWin.document.writeln(strStyleSheet); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
  
"); messageWin.document.writeln(""); messageWin.document.writeln(strMessage); messageWin.document.writeln("
 "); messageWin.document.writeln(""); messageWin.document.writeln(" Close "); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.close(); childWin1=messageWin; childStatus1=true; } */ function openResultWindowWithScroll(strMessage, strtextmsg){ messageWin = window.open(contxtPath + "/errblank.htm","MessageWin", "width=360,height=125,top=200,left=300,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(" " + strMessage + " "); // messageWin.document.writeln(strStyleSheet); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
  
"); messageWin.document.writeln(""); messageWin.document.writeln(strMessage); messageWin.document.writeln("
"); messageWin.document.writeln(strtextmsg); messageWin.document.writeln("
 "); messageWin.document.writeln(""); messageWin.document.writeln("Close"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.close(); childWin1=messageWin; childStatus1=true; } /* Function Name : openResultWindow Description : This function is used to popup messages. */ //CHG002_01-start function openResultWindow(strMessage,strSimulationModeMsg) { /* Changes for showModalDialog window and browser capability - selvaraj */ if(window.navigator.appName=="Microsoft Internet Explorer") { if(resultWindowOK) { dArgs.resultWindowOK = resultWindowOK; } messageWin={close:function(){}}; window.showModalDialog(contxtPath + "/jsp/common/ShowModalDialogWindow.jsp?Confirm="+strMessage+"&strSimulation="+strSimulationModeMsg,dArgs,"dialogHeight:130px;dialogWidth:400px;center:yes;edge:raised;resizable:no;scroll:no;status:no;addressbar:no"); } //strStyleSheet=""; else { messageWin = window.open(contxtPath + "/errblank.htm","MessageWin","width=300,height=125,top=200,left=300,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(" Confirmation "); //messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("");//CHG002 messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln("Confirmation"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(""); if(strSimulationModeMsg && "false" !== strSimulationModeMsg){ messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(strSimulationModeMsg); messageWin.document.writeln("
"); } messageWin.document.writeln(""); messageWin.document.writeln(strMessage); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln("Close"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.close(); childWin1=messageWin; childStatus1=true; } } function resultWindowOK() { if(window.navigator.appName!="Microsoft Internet Explorer") { messageWin.close(); } } //CHG002_01-end /* Function Name : showErrorMessage Description : This function is used to popup error messages. */ // CHG001 function showErrorMessage(){ var strMessage=""; var type="1"; if(arguments.length>0) strMessage= arguments[0]; if(arguments.length>2) type= arguments[2]; var count = countNoOfLines(strMessage); var height = 110 + 10 * (count-2); var top = 200 - 5 * (count-2); var title = "Error"; messageWin = window.open(contxtPath + "/IbsJsps/MessageNewPop.jsp?msg="+strMessage+"&windowType=1","MessageWin","width=300,height="+height+",top="+top+",left=300,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no"); if(type=="1"){ childWin1=messageWin; childStatus1=true; }else if(type=="2"){ childWin2=messageWin; childStatus2=true; } } function showNewErrorMessage(errorMsg){ /* Changes for showModalDialog window and browser capability - selvaraj */ if(window.navigator.appName=="Microsoft Internet Explorer") { var errorMessage=errorMsg.split("
"); var dynamicSize=170;//CHG001_62679 var msgSize=errorMessage.length; if(msgSize<=6){msgSize=msgSize+1;}; for(var i=3;i0) strMessage= arguments[0]; if(arguments.length>1) type= arguments[1]; if(arguments.length>2) if(arguments[2]) toScroll="yes"; //strStyleSheet=""; // To compute the Alert Box Size var count = countNoOfLines(strMessage); //height value changed from "100 + 10 * (count-2)" to "120 + 10 * (count-2)" as per Santander LookAndFeel guidelines var height = 120 + 10 * (count-2); var top = 200 - 5 * (count-2); var title = "Error"; messageWin = window.open("EntlWeb/errblank.htm","MessageWin","width=400,height="+height+",top="+top+",left=300,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars="+toScroll+",status=no");//UAT_3506 messageWin.document.writeln(""); messageWin.document.writeln(title); messageWin.document.writeln(""); //messageWin.document.writeln("");//UAT_3506 messageWin.document.writeln("");//UAT_3506 messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(title); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln("");//UAT_3506 messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(strMessage); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln("Ok"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.close(); if(type=="1"){ childWin1=messageWin; childStatus1=true; }else if(type=="2"){ childWin2=messageWin; childStatus2=true; } } } /* To Compute the number of lines in the given String */ function countNoOfLines(str) { var arrStr1 = str.split("
"); var arrStr2 = str.split("
"); return arrStr1.length+arrStr2.length; } function errorMessageOK(){ messageWin.close(); } // CHG0O1 function showConfirmMessage(strMessage){ var windowparam = "width=300,height=125,top="+((screen.height)/3.84)+",left="+((screen.width)/3.4)+",toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no"; messageWin = window.open(contxtPath + "/IbsJsps/MessageNewPop.jsp?msg="+strMessage+"&confirm=1","MessageWin",windowparam); } /* Changes for showModalDialog window and browser capability - selvaraj */ function showNewConfirmMessage(strMessage) { if(window.navigator.appName=="Microsoft Internet Explorer") { if(confirmMessageOK){dArgs.confirmMessageOK=confirmMessageOK;} messageWin={close:function(){}}; window.showModalDialog("/EntlWeb/jsp/common/ShowModalDialogWindow.jsp?MODE="+strMessage,dArgs,"dialogHeight:160px;dialogWidth:400px;center:yes;edge:raised;resizable:no;scroll:no;status:no;"); } else { var windowparam = "width=400,height=145,top="+((screen.height)/3.84)+",left="+((screen.width)/3.4)+",toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no";//UAT_3471 messageWin = window.open(contxtPath + "/errblank.htm","MessageWin", windowparam); messageWin.document.writeln(""); messageWin.document.writeln("Confirmation Required"); messageWin.document.writeln(""); //messageWin.document.writeln("");//UAT_3471 messageWin.document.writeln("");//UAT_3471 messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln("Please confirm to proceed with action"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(strMessage); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln("Yes"); messageWin.document.writeln("No"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.close(); childWin1=messageWin; childStatus1=true; } } /*function showConfirmMessage(strMessage){ var title = "Confirmation"; messageWin = window.open("","MessageWin", "width=300,height=125,top=200,left=300,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(" " + title + " "); messageWin.document.writeln(strStyleSheet); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
  
"); messageWin.document.writeln(""); messageWin.document.writeln(strMessage); messageWin.document.writeln("
 "); messageWin.document.writeln(""); messageWin.document.writeln(" Yes "); messageWin.document.writeln("  "); messageWin.document.writeln(" No "); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.close(); childWin1=messageWin; childStatus1=true; }*/ function confirmMessageOK(){ if(window.navigator.appName!="Microsoft Internet Explorer") { messageWin.close(); } } function confirmMessageCancel(){ messageWin.close(); } function authconfirmMessageCancel(){ messageWin.close(); } /* Function Name : getComboValues Description : This function is used to get the list of values for the given the code. This is used for the dyanamic combo generation. Parameters : valueString - is the name value pair to build the query string. For example, cboStatus=A&cboProductCode=100 frmName - is the form's name descName - is the destination combo object name eventId - is the Event Id for the getting the values */ function getComboValues(valueString,frmName,destnObjName,eventId) { var queryString = contxtPath + "/" + valueString; queryString += "&FORM_NAME=" + frmName + "&DEST_OBJ_NAME=" + destnObjName; queryString += "&EVENT_ID=" + eventId; parent.BlankFrame.document.location.href = queryString; } function getComboSubmitValues(valueString,frmName,destnObjName,eventId) { var queryString = contxtPath + "/" + valueString; queryString += "&FORM_NAME=" + frmName + "&DEST_OBJ_NAME=" + destnObjName; queryString += "&EVENT_ID=" + eventId; var frmObj = eval("document."+frmName); frmObj.target = "BlankFrame"; frmObj.action = queryString; frmObj.method = "post"; frmObj.submit(); //parent.BlankFrame.document.location.href = queryString; } function getComboValuesWithFrame(valueString,frmName,destnObjName,eventId) { var frmObj = eval("document."+frmName); var queryString = contxtPath + "/" + valueString; queryString += "&FORM_NAME=" + frmName + "&DEST_OBJ_NAME=" + destnObjName; queryString += "&EVENT_ID=" + eventId; parent.parent.BlankFrame.document.location.href = queryString; //parent.MainFrame.document.body.style.cursor = 'wait'; window.document.body.style.cursor = 'wait'; } /** Added by Prasad for getting Roles & Profiles for Bank User without using ajax call - start **/ function getBUComboValuesWithFrame(valueString,frmName,roleField,profileField,eventId) { var queryString = "/EntlWeb/" + valueString; queryString += "&FORM_NAME=" + frmName + "&DEST_ROLE_NAME=" + roleField + "&DEST_PROFILE_NAME=" + profileField; queryString += "&EVENT_ID=" + eventId; parent.BlankFrame.document.location.href = queryString; } /* * This function opens the confirm window on clicking of cancel and based on the buttons pressed * navigate the flow * */ function openConfirmWindow(strMessage){ if(window.navigator.appName=="Microsoft Internet Explorer") { if(callCancel) { dArgs.callCancel = callCancel; } messageWin={close:function(){}}; modalDialogWindow(contxtPath + "/jsp/common/ShowModalDialogWindow.jsp?MODE="+strMessage,150,400,dArgs); } else { messageWin = window.open(contxtPath + "/errblank.htm","MessageWin", "width=300,height=125,top=200,left=300,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); // messageWin.document.writeln(strStyleSheet); //messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(strMessage); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln("Yes"); messageWin.document.writeln("No"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.close(); childWin1=messageWin; childStatus1=true; } } /* * This function opens the window which confirms Delete clicking of OK and * navigate the flow * */ function openDeleteWindow(strMessage){ //checkReasonValid if(window.navigator.appName=="Microsoft Internet Explorer") { if(callDelete) { dArgs.callDelete = callDelete; } messageWin={close:function(){}}; modalDialogWindow("/EntlWeb/jsp/common/ShowModalDialogWindow.jsp?MODE="+strMessage,150,400,dArgs); } else { messageWin = window.open(contxtPath + "/errblank.htm","MessageWin", "width=300,height=125,top=200,left=300,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); //messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(strMessage); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln("Yes"); messageWin.document.writeln("No"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.close(); childWin1=messageWin; childStatus1=true; } } // Added By Muthu function search(mode) { var url =contxtPath + "/jsp/entl/GcifSearchPage.jsp?SEARCH_MODE="+mode; // searchWin = window.open(url,"SearchWindow","width=700,height=390,top=150,left=175,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); if(window.navigator.appName=="Microsoft Internet Explorer") { if(setGcifValue){ dArgs.setGcifValue = setGcifValue; } modalDialogWindow(url,"","",dArgs); } else { searchWin = window.open(url,"SearchWindow","width=700,height=390,top=150,left=175,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } } function searchCoporateadd() { var mode = "CORPORATE"; var url =contxtPath + "/jsp/entl/GcifSearchPage.jsp?SEARCH_MODE="+mode; //searchWin = window.open(url,"SearchWindow","width=550,height=220,top=100,left=120,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no"); /* Changes for showModalDialog window and browser capability - selvaraj */ if(window.navigator.appName=="Microsoft Internet Explorer") { if(setGcifValue) { dArgs.setGcifValue = setGcifValue; } modalDialogWindow(url,"230","420",dArgs); } else{ var width = 410;//CHG003_65229 var height = 190; var left = parseInt((screen.availWidth/2) - (width/2)); var top = parseInt((screen.availHeight/2) - (height/2)); searchWin = window.open(url,"SearchWindow","width="+width+",height="+height+",top="+top+",left="+left+",toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } } function searchCoporate() { //height value changed from 460 to 220 and set scrollbars=no as per the Santander LookAndFeel guidelines var mode = "CORPORATE_CUSTOMERS"; var url = contxtPath + "/jsp/entl/GcifSearchPage.jsp?SEARCH_MODE="+mode; //searchWin = window.open(url,"SearchWindow","width=550,height=220,top=100,left=120,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no"); /* Changes for showModalDialog window and browser capability - selvaraj */ if(window.navigator.appName=="Microsoft Internet Explorer") { if(setGcifValue) { dArgs.setGcifValue = setGcifValue; } modalDialogWindow(url,"230","420",dArgs); } else{ var width = 410;//CHG003_65229 var height = 190; var left = parseInt((screen.availWidth/2) - (width/2)); var top = parseInt((screen.availHeight/2) - (height/2)); searchWin = window.open(url,"SearchWindow","width="+width+",height="+height+",top="+top+",left="+left+",toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } } function searchCoporateGCIF(){ var mode = "CORPORATE_CUSTOMERS_BY_GCIF"; var url ="/EntlWeb/jsp/entl/GcifSearchPage.jsp?SEARCH_MODE="+mode; if(window.navigator.appName=="Microsoft Internet Explorer") { if(setGcifValue) { dArgs.setGcifValue = setGcifValue; } modalDialogWindow(url,"230","420",dArgs); } else{ var width = 410;//CHG003_65229 var height = 190; var left = parseInt((screen.availWidth/2) - (width/2)); var top = parseInt((screen.availHeight/2) - (height/2)); searchWin = window.open(url,"SearchWindow","width="+width+",height="+height+",top="+top+",left="+left+",toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } } //CHG002_65229 STARTS function searchAllCoporateGCIF(){ var mode = "CORPORATE_ALL_CUSTOMERS_BY_GCIF"; var url ="/EntlWeb/jsp/entl/GcifSearchPage.jsp?SEARCH_MODE="+mode; if(window.navigator.appName=="Microsoft Internet Explorer") { if(setGcifValue) { dArgs.setGcifValue = setGcifValue; } modalDialogWindow(url,"230","420",dArgs); } else{ var width = 410; //CHG003_65229 var height = 190; var left = parseInt((screen.availWidth/2) - (width/2)); var top = parseInt((screen.availHeight/2) - (height/2)); searchWin = window.open(url,"SearchWindow","width="+width+",height="+height+",top="+top+",left="+left+",toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } } //CHG002_65229 ENDS //Customer Profile starts function searchProfileAll() { var mode = "ALL_PROFILES"; var url ="/EntlWeb/jsp/entl/ProfileSearchPage.jsp?SEARCH_MODE="+mode; searchWin = window.open(url,"SearchWindow","width=550,height=360,top=100,left=120,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } function searchAllProfileByProfileId(mode,strProfileId,submitFrame,currentFrameName) { var url ="/EntlWeb/SearchServlet?EVENT_ID=SEARCH_PROFILE_BY_PROFILE_ID&CALLING_FRAME="+currentFrameName+"&hdProfileId="+strProfileId+"&SEARCH_MODE="+mode; submitFrame.location.href = url; } //Customer Profile starts function searchCustomerProfileAll() { var mode = "ALL_CUST_PROFILES"; //var url ="/EntlWeb/jsp/entl/CustomerProfileSearchPage.jsp?SEARCH_MODE="+mode; var url ="/EntlWeb/EntlServlet?EVENT_ID=ALL_CUST_PROFILES&SEARCH_MODE="+mode; searchWin = window.open(url,"SearchWindow","width=550,height=360,top=100,left=120,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } function searchAllCustomerProfileByProfileId(mode,strProfileId,submitFrame,currentFrameName) { var url ="/EntlWeb/SearchServlet?EVENT_ID=CUST_SEARCH_PROFILE_BY_PROFILE_ID&CALLING_FRAME="+currentFrameName+"&hdProfileId="+strProfileId+"&SEARCH_MODE="+mode; submitFrame.location.href = url; } //Customer Profile ends // 62829 Ashok function searchCustomerSetupSource(){ var mode = "CUSTOMER_SETUP_SOURCE"; var url ="/EntlWeb/jsp/entl/GcifSearchPage.jsp?SEARCH_MODE="+mode; if(window.navigator.appName=="Microsoft Internet Explorer") { if(setGcifValue) { dArgs.setGcifValue = setGcifValue; } modalDialogWindow(url,"230","420",dArgs); } else{ var width = 410; //CHG003_65229 var height = 190; var left = parseInt((screen.availWidth/2) - (width/2)); var top = parseInt((screen.availHeight/2) - (height/2)); searchWin = window.open(url,"SearchWindow","width="+width+",height="+height+",top="+top+",left="+left+",toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } } function searchCoporateSource(){ var mode = "CORPORATE_CUSTOMERS_SOURCE"; var url ="/EntlWeb/jsp/entl/GcifSearchPage.jsp?SEARCH_MODE="+mode; //searchWin = window.open(url,"SearchWindow","width=550,height=220,top=100,left=120,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no"); /* Changes for showModalDialog window and browser capability - selvaraj */ if(window.navigator.appName=="Microsoft Internet Explorer") { if(setGcifValue) { dArgs.setGcifValue = setGcifValue; } modalDialogWindow(url,"230","420",dArgs); } else{ var width = 420; var height = 190; var left = parseInt((screen.availWidth/2) - (width/2)); var top = parseInt((screen.availHeight/2) - (height/2)); searchWin = window.open(url,"SearchWindow","width="+width+",height="+height+",top="+top+",left="+left+",toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } } function searchGCIFCoporate(){ //height value changed from 460 to 220 and set scrollbars=no as per the Santander LookAndFeel guidelines var mode = "CORPORATE_CUSTOMERS_GCIF"; var url ="/EntlWeb/jsp/entl/GcifSearchPage.jsp?SEARCH_MODE="+mode; //searchWin = window.open(url,"SearchWindow","width=550,height=220,top=100,left=120,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no"); /* Changes for showModalDialog window and browser capability - selvaraj */ if(window.navigator.appName=="Microsoft Internet Explorer") { if(setGenerateGcif) { dArgs.setGenerateGcif = setGenerateGcif; } modalDialogWindow(url,"230","420",dArgs); } else{ var width = 410;//CHG003_65229 var height = 190; var left = parseInt((screen.availWidth/2) - (width/2)); var top = parseInt((screen.availHeight/2) - (height/2)); searchWin = window.open(url,"SearchWindow","width="+width+",height="+height+",top="+top+",left="+left+",toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } } function searchCorporateGCIF(){ var mode = "CUSTOMERS_SETUP_GCIF"; var url ="/EntlWeb/jsp/entl/GcifSearchPage.jsp?SEARCH_MODE="+mode; if(window.navigator.appName=="Microsoft Internet Explorer") { if(setGcifValue) { dArgs.setGcifValue = setGcifValue; } modalDialogWindow(url,"230","420",dArgs); } else{ var width = 410;//CHG003_65229 var height = 190; var left = parseInt((screen.availWidth/2) - (width/2)); var top = parseInt((screen.availHeight/2) - (height/2)); searchWin = window.open(url,"SearchWindow","width="+width+",height="+height+",top="+top+",left="+left+",toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } } function searchCIFAccountNumber(sourceSys){ var mode = "CIF_ACCOUNT_NUMBER"; var url ="/EntlWeb/jsp/entl/GcifAccountSearchPage.jsp?SEARCH_MODE="+mode+"&SOURCE_SYSTEM="+sourceSys; if(window.navigator.appName=="Microsoft Internet Explorer") { if(setAccGenerateGcif) { dArgs.setAccGenerateGcif = setAccGenerateGcif; } modalDialogWindow(url,"230","450",dArgs); } else{ var width = 410; var height = 190; var left = parseInt((screen.availWidth/2) - (width/2)); var top = parseInt((screen.availHeight/2) - (height/2)); searchWin = window.open(url,"SearchWindow","width="+width+",height="+height+",top="+top+",left="+left+",toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } } /* Added by selvaraj - oct2010 This function is used to user can't switch to another page until it closes the modal dialog box.*/ function modalDialogWindow(url,iheight,iwidth,dArgs) { var vheight; var vwidth; if (iheight=='') { vheight=200; } else { vheight=iheight; } if (iwidth=='') { vwidth=410;//CHG003_65229 } else { vwidth=iwidth; } if(!dArgs) { dArgs = {}; } var sFeatures="dialogHeight: " + vheight + "px;dialogWidth:" + vwidth + "px;center:yes;edge:raised;resizable:no;scroll:yes;status:no;"; var returnVal = window.showModalDialog(url,dArgs,sFeatures); return returnVal; } function showCustomConfirmMessageBox(strMessage){ /* Changes for showModalDialog window and browser capability - selvaraj */ if(window.navigator.appName=="Microsoft Internet Explorer") { if(confirmMessageOKBox) { dArgs.confirmMessageOKBox = confirmMessageOKBox; } messageWin={close:function(){}}; modalDialogWindow(contxtPath + "/jsp/common/ShowModalDialogWindow.jsp?MODE="+strMessage,150,350,dArgs); } else { var windowparam = "width=300,height=125,top="+((screen.height)/3.84)+",left="+((screen.width)/3.4)+",toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=no,status=no"; confirmMessageWin = window.open("","confirmMessageWin", windowparam); confirmMessageWin.document.writeln(""); confirmMessageWin.document.writeln("Confirmation Required"); confirmMessageWin.document.writeln(""); //confirmMessageWin.document.writeln(""); confirmMessageWin.document.writeln(""); confirmMessageWin.document.writeln(""); confirmMessageWin.document.writeln(""); confirmMessageWin.document.writeln("
"); confirmMessageWin.document.writeln("
"); confirmMessageWin.document.writeln("Please confirm to proceed with action"); confirmMessageWin.document.writeln("
"); confirmMessageWin.document.writeln("
"); confirmMessageWin.document.writeln(strMessage); confirmMessageWin.document.writeln("
"); confirmMessageWin.document.writeln("
"); confirmMessageWin.document.writeln(""); confirmMessageWin.document.writeln(""); confirmMessageWin.document.writeln(""); confirmMessageWin.document.writeln(""); confirmMessageWin.document.writeln("
"); confirmMessageWin.document.writeln("Yes"); confirmMessageWin.document.writeln("No"); confirmMessageWin.document.writeln("
"); confirmMessageWin.document.writeln("
"); confirmMessageWin.document.writeln("
"); confirmMessageWin.document.writeln(""); confirmMessageWin.document.close(); childWin1=confirmMessageWin; childStatus1=true; } } //added by chandra function searchCorpForUserCreation() { var mode = "CORPORATE_CUSTOMERS_DET"; var url =contxtPath + "/jsp/entl/GcifSearchPage.jsp?SEARCH_MODE="+mode; if(window.navigator.appName=="Microsoft Internet Explorer") { if(setGcifValue){ dArgs.setGcifValue = setGcifValue; } modalDialogWindow(url,"","",dArgs); } else { searchWin = window.open(url,"SearchWindow","width=550,height=360,top=100,left=120,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } } function searchAll() { /* Changes for showModalDialog window and browser capability - selvaraj */ var mode = "ALL_CUSTOMERS"; var url =contxtPath + "/jsp/entl/GcifSearchPage.jsp?SEARCH_MODE="+mode; if(window.navigator.appName=="Microsoft Internet Explorer") { if(setGcifValue) { dArgs.setGcifValue = setGcifValue; } modalDialogWindow(url,200,420,dArgs);//CHG007_62679 } else { var width = 410;//CHG007_62679 //CHG003_65229 var height = 170; var left = parseInt((screen.availWidth/2) - (width/2)); var top = parseInt((screen.availHeight/2) - (height/2)); searchWin = window.open(url,"SearchWindow","width="+width+",height="+height+",top="+top+",left="+left+",toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } } //ISSUE_7209 starts /** Added for load the all corporates Bank User Audit Report & Bank User Audit Report Download **/ function searchAllforBOAuditRepots() { var mode = "CORP_ALL_CUSTOMERS_FOR_BO_AUDIT_REP"; var url =contxtPath + "/jsp/entl/GcifSearchPage.jsp?SEARCH_MODE="+mode; if(window.navigator.appName=="Microsoft Internet Explorer") { if(setGcifValue) { dArgs.setGcifValue = setGcifValue; } modalDialogWindow(url,200,420,dArgs); } else { var width = 410; var height = 170; var left = parseInt((screen.availWidth/2) - (width/2)); var top = parseInt((screen.availHeight/2) - (height/2)); searchWin = window.open(url,"SearchWindow","width="+width+",height="+height+",top="+top+",left="+left+",toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } } //ISSUE_7209 ends /** Bank User Profile Mapping-Added by prasad for fetching all pending users for profile mapping - start **/ function searchAllUserIds() { var mode = "ALL_USERS"; var url ="/EntlWeb/jsp/entl/UserIdSearchPage.jsp?SEARCH_MODE="+mode; searchWin = window.open(url,"SearchWindow","width=550,height=360,top=100,left=120,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } function searchAllUsers() { var mode = "ALL_MAPPING_USERS"; var url ="/EntlWeb/jsp/entl/UserIdSearchPage.jsp?SEARCH_MODE="+mode; searchWin = window.open(url,"SearchWindow","width=550,height=360,top=100,left=120,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } function searchAllUsersByUserId(mode,strUserId,submitFrame,currentFrameName){ var url ="/EntlWeb/SearchServlet?EVENT_ID=SEARCH_USER_BY_USERID&CALLING_FRAME="+currentFrameName+"&txtUserId="+strUserId+"&SEARCH_MODE="+mode; submitFrame.location.href = url; } function searchAllUsersByUser(mode,strUserId,submitFrame,currentFrameName){ var url ="/EntlWeb/SearchServlet?EVENT_ID=SEARCH_USER_BY_USERID&CALLING_FRAME="+currentFrameName+"&txtUserId="+strUserId+"&SEARCH_MODE="+mode; submitFrame.location.href = url; } /**Bank User Profile Mapping- Added by prasad for fetching all pending users for profile mapping - end **/ //Added by Nagarajan for BO Retro - 108 (13/4/05) function searchAllAdd() { /* Changes for showModalDialog window and browser capability - selvaraj */ var mode = "ALL_CUSTOMERS_ADD"; var url =contxtPath + "/jsp/entl/GcifSearchPage.jsp?SEARCH_MODE="+mode; if(window.navigator.appName=="Microsoft Internet Explorer") { if(setGcifValue) { dArgs.setGcifValue = setGcifValue; } modalDialogWindow(url,"","",dArgs); } else { searchWin = window.open(url,"SearchWindow","width=550,height=360,top=100,left=120,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } } function searchAllCompanyByGCIF(mode,strGCIF,submitFrame,currentFrameName){ var url =contxtPath + "/SearchServlet?EVENT_ID=SEARCH_COMPANY_BY_GCIF&CALLING_FRAME="+currentFrameName+"&hdGCIF="+strGCIF+"&SEARCH_MODE="+mode; submitFrame.location.href = url; } // Ashok 62829 function searchAllCorporateByCIF(mode,strGCIF,submitFrame,currentFrameName){ var url ="/EntlWeb/SearchServlet?EVENT_ID=SEARCH_CUSTOMER_SETUP_BY_CIF&CALLING_FRAME="+currentFrameName+"&hdGCIF="+strGCIF+"&SEARCH_MODE="+mode; submitFrame.location.href = url; } function searchCorporateSetupByGCIF(mode,strGCIF,submitFrame,currentFrameName){ var url ="/EntlWeb/SearchServlet?EVENT_ID=SEARCH_CORPORATE_SETUP_BY_GCIF&CALLING_FRAME="+currentFrameName+"&hdGCIF="+strGCIF+"&SEARCH_MODE="+mode; submitFrame.location.href = url; } function searchAllCustomerByGCIF(mode,strGCIF,submitFrame,currentFrameName){ var url ="/EntlWeb/SearchServlet?EVENT_ID=SEARCH_CORPORATE_BY_GCIF&CALLING_FRAME="+currentFrameName+"&hdGCIF="+strGCIF+"&SEARCH_MODE="+mode; submitFrame.location.href = url; } function searchAllCustomerSetupByGCIF(mode,strGCIF,submitFrame,currentFrameName){ var url ="/EntlWeb/SearchServlet?EVENT_ID=SEARCH_CORPORATE_SETUP_BY_GCIF&CALLING_FRAME="+currentFrameName+"&hdGCIF="+strGCIF+"&SEARCH_MODE="+mode; submitFrame.location.href = url; } //END - Added by Nagarajan for BO Retro - 108 (13/4/05) //Added By Karthik function searchCompanyByGCIF(strGCIF,submitFrame,currentFrameName){ var url =contxtPath + "/SearchServlet?EVENT_ID=SEARCH_COMPANY_BY_GCIF&CALLING_FRAME="+currentFrameName+"&hdGCIF="+strGCIF; submitFrame.location.href = url; } function searchRegisteredCompany(strGCIF,submitFrame,currentFrameName){ var url =contxtPath + "/SearchServlet?EVENT_ID=SEARCH_REG_COMPANY&CALLING_FRAME="+currentFrameName+"&hdGCIF="+strGCIF; submitFrame.location.href = url; } /*Added by chandra to get the comapany address*/ function searchRegisteredCompanyDetails(strGCIF,submitFrame,currentFrameName){ var url =contxtPath + "/SearchServlet?EVENT_ID=SEARCH_REG_COMPANY_DETAILS&CALLING_FRAME="+currentFrameName+"&hdGCIF="+strGCIF; submitFrame.location.href = url; } //Added by sushil to set the valid GCIF to a global flag variable - 3/17/2006 function setEnteredGcif(strGCIF){ enteredGcifByUser=strGCIF; } //sushil end - 3/17/2006 /* Added By Vinoth For Retail Setup User Search */ //Added By Vinoth function searchRetailUser(mode) { var url =contxtPath + "/jsp/entl/GcifSearchPage.jsp?SEARCH_MODE="+mode; searchWin = window.open(url,"SearchWindow","width=550,height=360,top=100,left=120,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } function checkExistingCompany() { var queryString = contxtPath + "/" + valueString; queryString += "&FORM_NAME=" + frmName + "&DEST_OBJ_NAME=" + destnObjName; queryString += "&EVENT_ID=" + eventId; parent.BlankFrame.document.location.href = queryString; } function checkExistingValues(valueString,frmName) { var queryString = valueString; var frmObj = eval("document."+frmName); frmObj.target = "BlankFrame"; frmObj.action = queryString; frmObj.method = "post"; frmObj.submit(); return true; } /* Added By Vinoth For Trimming the spaces in between the number */ function trimNumber(txtObj) { var number = txtObj.value; while(number.indexOf(" ") != -1) { number = number.replace(" ",""); } txtObj.value = number; return number; } //Added By Vinoth For Trimming String function trimValue(txtObj) { txtObj.value = Trim(txtObj.value); return txtObj; } function Trim(TRIM_VALUE) { if(TRIM_VALUE.length < 1) { return""; } TRIM_VALUE = RTrim(TRIM_VALUE); TRIM_VALUE = LTrim(TRIM_VALUE); if(TRIM_VALUE=="") { return ""; } else { return TRIM_VALUE; } } //End Function function RTrim(VALUE) { var w_space = String.fromCharCode(32); var v_length = VALUE.length; var strTemp = ""; if(v_length < 0) { return""; } var iTemp = v_length -1; while(iTemp > -1) { if(VALUE.charAt(iTemp) == w_space) { } else { strTemp = VALUE.substring(0,iTemp +1); break; } iTemp = iTemp-1; } //End While return strTemp; } //End Function function LTrim(VALUE) { var w_space = String.fromCharCode(32); if(v_length < 1) { return""; } var v_length = VALUE.length; var strTemp = ""; var iTemp = 0; while(iTemp < v_length) { if(VALUE.charAt(iTemp) == w_space) { } else { strTemp = VALUE.substring(iTemp,v_length); break; } iTemp = iTemp + 1; } //End While return strTemp; } //End Function //Change For Help File By Anoop function setHelpFileCode(helpFileName){ top.bottom.strHelpFileCode = helpFileName; } //End Of Change /* Used To Implement The Drag and Drop Functionality */ function moveToAnotherListBox(listbox1, listbox2) { var len = eval(listbox1).length; var field = eval(listbox2).options; var counter = eval(listbox2).options.length; for(i=0;i 0;i--){ selbox.options[i] = null; } if(eval(listbox).length > 0){ for(i=0;i < eval(listbox).length;i++){ eval(selbox).options[(i+1)] = new Option(listbox.options[i].text,listbox.options[i].value); } } } /** Added by Falak for moving selected values from one side to another - end **/ /* Code for Orphan window */ function openChildWindow(url,winName,argument,type){ if(type=="1"){ childWin1 = window.open(url,winName,argument); childStatus1=true; childWin1.focus(); }else if(type=="2"){ childWin2 = window.open(url,winName,argument); childStatus2=true; childWin2.focus(); } } function childClose(type){ var windowname =""; if(type=="1"){ childStatus1 = false; if(childWin1 != null){ childWin1.close(); } }else if(type=="2"){ childStatus2 = false; if(childWin2 != undefined){ childWin2.close(); } } } function ifChildFocus(type){ if(type=="1"){ if(childStatus1==true){ if(childWin1!=null){ focusIndividualScreen(1); } } }else if(type=="2"){ if(childStatus2== true){ focusIndividualScreen(2); } } } function focusIndividualScreen(type){ if(type=="1"){ if(childWin1 != null){ if(childWin1.closed==false){ childWin1.focus() } } }else if(type=="2"){ if(childWin2 != undefined){ if(childWin2.closed==false){ childWin2.focus() } } } } //Disable right click, Alt+left arrow, Alt+right arrow, backspace /*var browserName = navigator.appName; if(browserName=="Netscape"){ document.addEventListener('keypress',navigatorKeyEvent,false); } if (document.layers) { document.captureEvents(Event.KEYPRESS); } document.onkeydown = getKey; function getKey(keyStroke) { if(browserName=="Microsoft Internet Explorer"){ var keyCode = (document.layers) ? keyStroke.which : event.keyCode; var actElt= document.activeElement.type; if(actElt=="checkbox"){ if( keyCode == 8 ) { event.keyCode = 0; return false; } } if(event.altKey){ return false; } if(event.ctrlKey){ return false; } //CHG002_65229 if ((event.keyCode == 8 && (event.srcElement.form == null || event.srcElement.isTextEdit == false)) ) { event.keyCode = 0; return false; } if( keyCode == 122 ) { event.keyCode = 0; return false; } if( keyCode == 116 ) { event.keyCode = 0; return false; } if( keyCode == 114 ) { event.keyCode = 0; return false; } else if( keyCode == 13 && submitFlag == 0 ) //SubmitForm(); if(actElt=="text" || actElt=="textarea" ||actElt=="select"||actElt=="password"){ }else{ if( keyCode == 8 ) { event.keyCode = 0; return false; } } } } function navigatorKeyEvent(){ document.captureEvents(Event.KEYPRESS); document.onkeypress=function(event) { var actElt = event.target.type; if(actElt=="checkbox"||actElt=="submit"||actElt=="reset"||actElt=="image"||actElt=="radio"){ if( event.keyCode== 8 ) { return false; } } if(actElt!=undefined){ }else{ if( event.keyCode== 8 ) { return false; } } if(event.altKey==true){ return false; } if(event.ctlrKey==true){ return false; } } } //CHG001_65229 Start //disable backspace in a textbox function disableBackspace(keyStroke) { if(browserName=="Microsoft Internet Explorer"){ var keyCode = (document.layers) ? keyStroke.which : event.keyCode; var actElt= document.activeElement.type; if(actElt=="text"){ if( keyCode == 8 ) { event.keyCode = 0; return false; } } } } //CHG001_65229 End //disable right click if (window.Event) document.captureEvents(Event.MOUSEUP); document.oncontextmenu = norightclick; document.onmousedown = norightclick; function nocontextmenu(){ event.cancelBubble = true event.returnValue = false; return false; } function norightclick(e) { if (window.Event) { if (e.which !=1) return false; }else if (event.button !=1) { event.cancelBubble = true; event.returnValue = false; return false; } } function right(e) { if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false; else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) { return false; } return true; } document.onmousedown=right; document.onmouseup=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN); if (document.layers) window.captureEvents(Event.MOUSEUP); window.onmousedown=right; window.onmouseup=right; */ /* End of Disable right click, Alt+left arrow, Alt+right arrow, backspace */ function mouseDown(e) { var shiftPressed=0; if (parseInt(navigator.appVersion)>3) { if (navigator.appName=="Netscape") shiftPressed=(e.modifiers-0>3); else shiftPressed=event.shiftKey; if (shiftPressed) { showNewErrorMessage("'Shift + Click' is disabled."); return false; } } return true; } if (parseInt(navigator.appVersion)>3) { document.onmousedown = mouseDown; if (navigator.appName=="Netscape") document.captureEvents(Event.MOUSEDOW); } function cancelLink () { return false; } function disableLink (link) { if (link.onclick) link.oldOnClick = link.onclick; link.onclick = cancelLink; if (link.style) link.style.cursor = 'default'; } function toggleLink (link) { if (link.disabled) { //do nothing } else { for(i=0;i"); messageWin.document.writeln("Confirmation Required"); messageWin.document.writeln(""); //messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln("Please confirm to proceed with action"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(strMessage); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln(""); messageWin.document.writeln("
"); messageWin.document.writeln("Yes"); messageWin.document.writeln("No"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln("
"); messageWin.document.writeln(""); messageWin.document.close(); childWin1=messageWin; childStatus1=true; } } /*Bank Dept Setup - starts */ function searchAllDepartment() { var mode = "ALL_CUSTOMERS"; var url ="/EntlWeb/jsp/entl/DepartmentSearchPage.jsp?SEARCH_MODE="+mode; searchWin = window.open(url,"SearchWindow","width=550,height=360,top=100,left=120,toolbar=no,titlebar=no,location=no,directories=no,menubar=no,resizable=no,scrollbars=yes,status=no"); } function searchDepartmentByID(mode,strID,submitFrame,currentFrameName){ var url ="/EntlWeb/SearchServlet?EVENT_ID=SEARCH_DEPARMENTT_BY_ID&CALLING_FRAME="+currentFrameName+"&deptID="+strID+"&SEARCH_MODE="+mode; submitFrame.location.href = url; } /*Bank Dept Setup - ends */ function toggleLinkEnable (link,enable) { for(i=0;i 0;i--){ selbox.options[i] = null; } if(eval(listbox).length > 0){ for(i=0;i < eval(listbox).length;i++){ eval(selbox).options[(i+1)] = new Option(listbox.options[i].text,listbox.options[i].value); } } }