/** Copyright © 2004. Polaris Software Lab Limited. All rights reserved. These materials are confidential and proprietary to Polaris Software Lab Limited and no part of these materials should be reproduced, published, transmitted or distributed in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, or stored in any information storage or retrieval system of any nature nor should the materials be disclosed to third parties or used in any other manner for which this is not authorized, without the prior express written authorization of Polaris Software Lab Limited. */ //Screen Code and Corresponding Vertical Code /***************************************************************************************** CHANGE LOG CHANGE CODE AUTHOR DESCRIPTION DATE CHG001 GUNEET S. ANAND Code modified to remove setting of focus 7/19/2005 to the target field in Calendar. This is done only if the target field is disabled. If the field is not disabled the existing flow remains. CHG002 Udesh.p CHanging Date based on UserPersonlization 19/09/2005 CHG003 Udesh.p CHanging Date based on UserPersonlization 10/11/2005 bug reported by Nagarajan on Clear Date CHG004 Udesh.p Code changed for disablin past date for TI & enabling the same for Inquiry and reports 22/02/2006 CHg005 Udesh.p IUT Fix for Future date 23/03/2006 CHG001_26719 Sushil Enhancement for Service Transaction 5/6/2006 22953_CHG001 Nagarajan Calendar Style change 20-5-2006 CHG32196 kandasamy Email validation 6/12/2008 *****************************************************************************************/ var screenArray = new Array(); screenArray["GIRO_T1"]="cash"; screenArray["COIT_T1"]="cash"; screenArray["CBPT_T2"]="cash"; screenArray["DFTT_T1"]="cash"; screenArray["COTT_T2"]="cash"; screenArray["CCQT_T2"]="cash"; screenArray["MCQT_T2"]="cash"; screenArray["INBT_T2"]="cash"; screenArray["CTTT_T2"]="cash"; screenArray["CSYT_T1"]="cash"; screenArray["FCCY_T1"]="cash"; screenArray["LCCY_T1"]="cash"; screenArray["LCRN_D1"]="trade"; screenArray["AMLC_D1"]="trade"; screenArray["SHIP_D1"]="trade"; screenArray["DELV_D1"]="trade"; screenArray["BGIP_D1"]="trade"; screenArray["BGIP_D2"]="trade"; screenArray["SETL_D1"]="trade"; screenArray["SETL_D2"]="trade"; /*Added by CHG001_26719 for Service Transaction on 5/4/2006*/ screenArray["STOP_D2"]="infra"; screenArray["CNCL_D2"]="infra"; screenArray["PAZC_DY"]="infra"; screenArray["DELT_D1"]="infra"; screenArray["STOP_D1"]="infra"; screenArray["CNCL_D1"]="infra"; /*Added for Tide booking*/ screenArray["TIDP_BK"]="invst"; /*if(top.parent.frames[1] !=null) top.parent.frames[1].focus(); if (window.Event) document.captureEvents(Event.MOUSEUP); document.oncontextmenu = norightclick; document.onmousedown = norightclick; */ /********* Function to disable right click in IE ***/ /* function nocontextmenu() { event.cancelBubble = true event.returnValue = false; return false; } */ function norightclick(e) { return true; if (window.Event) { if (e.which !=1) return false; } else{ if (event.button !=1) { event.cancelBubble = true; event.returnValue = false; return false; } } } /********* Function to disable right click Netscape ***/ /* 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)) { //alert("Sorry, right click is disabled for this form"); //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; if(document.all) document.onkeydown = captureF11; function captureF11(){ if(event.keyCode == 122 ){ top.parent.frames[1].focus(); event.keyCode = 0; return false; } else if(event.keyCode == 116) { event.keyCode = 0; return false; } } // disable right click if( document.all ){ document.oncontextmenu = onMouseDown; }else{ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=onMouseDown_NE; } function onMouseDown(){ return false; } function onMouseDown_NE(evt){ if(evt.which == 3) return false; return true; } // end */ /*************************************************************/ /* if(document.all) document.onkeydown = captureF11; function captureF11() { if(event.keyCode == 122 ) { event.keyCode = 0; return false; } } */ /**********************************************************************/ function global_width() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=screen.availWidth-180 //620 else nWidth=screen.availWidth-180 //620 }else{ if(document.all) nWidth=screen.availWidth-210 //804 else nWidth=screen.availWidth-180 //844 } // alert(nWidth) return nWidth } /*******************************************************/ var style_sheet= "";//Vijeesh added for dynamic stylesheet var weekend = [0];//22953_CHG001 var weekendColor = "#ADE684";//22953_CHG001 var nodateColor = "white" var fontface = "Verdana"; var fontsize = 2; var checkDates; //CHG004 var currYr; //CHG005 var enablingPastDates; //CHG004 var gNow = new Date(); var ggWinCal; isNav = (navigator.appName.indexOf("Netscape") != -1) ? true : false; isIE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false; Calendar.Months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; Calendar.Months1 = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]; // Non-Leap year Month days.. Calendar.DOMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; // Leap year Month days.. Calendar.lDOMonth = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; function Calendar(p_item, p_WinCal, p_month, p_year, p_format) { if ((p_month == null) && (p_year == null)) return; if (p_WinCal == null) this.gWinCal = ggWinCal; else this.gWinCal = p_WinCal; if (p_month == null) { this.gMonthName = null; this.gMonth = null; this.gYearly = true; } else { this.gMonthName = Calendar.get_month(p_month); this.gMonth = new Number(p_month); this.gYearly = false; } this.gYear = p_year; this.gFormat = p_format; this.gBGColor = "white"; this.gFGColor = "black"; this.gTextColor = "black"; this.gHeaderColor = "black"; this.gReturnItem = p_item; this.gReturnItemH = p_item; var befappend$ = this.gReturnItem.substring(0,this.gReturnItem.lastIndexOf(".")); var starappend$ = this.gReturnItem.substring(this.gReturnItem.lastIndexOf(".")+1,this.gReturnItem.length); var befappendH$ = this.gReturnItem.substring(0,this.gReturnItem.lastIndexOf(".")+1); var afterRemove$ = this.gReturnItem.substring(this.gReturnItem.indexOf("$")+1,this.gReturnItem.length); this.gReturnItemH = befappendH$ + afterRemove$ if(this.gReturnItem.indexOf("$")==-1) this.gReturnItem = befappend$ +".$"+starappend$; } Calendar.get_month = Calendar_get_month; Calendar.get_month1 = Calendar_get_month1; Calendar.get_daysofmonth = Calendar_get_daysofmonth; Calendar.calc_month_year = Calendar_calc_month_year; Calendar.print = Calendar_print; function Calendar_get_month(monthNo) { return Calendar.Months[monthNo]; } function Calendar_get_month1(monthNo) { return Calendar.Months1[monthNo]; } function Calendar_get_daysofmonth(monthNo, p_year) { /* Check for leap year .. 1.Years evenly divisible by four are normally leap years, except for... 2.Years also evenly divisible by 100 are not leap years, except for... 3.Years also evenly divisible by 400 are leap years. */ if ((p_year % 4) == 0) { if ((p_year % 100) == 0 && (p_year % 400) != 0) return Calendar.DOMonth[monthNo]; return Calendar.lDOMonth[monthNo]; } else return Calendar.DOMonth[monthNo]; } function Calendar_calc_month_year(p_Month, p_Year, incr) { /* Will return an 1-D array with 1st element being the calculated month and second being the calculated year after applying the month increment/decrement as specified by 'incr' parameter. 'incr' will normally have 1/-1 to navigate thru the months. */ var ret_arr = new Array(); if (incr == -1) { // B A C K W A R D if (p_Month == 0) { ret_arr[0] = 11; ret_arr[1] = parseInt(p_Year) - 1; } else { ret_arr[0] = parseInt(p_Month) - 1; ret_arr[1] = parseInt(p_Year); } } else if (incr == 1) { // F O R W A R D if (p_Month == 11) { ret_arr[0] = 0; ret_arr[1] = parseInt(p_Year) + 1; } else { ret_arr[0] = parseInt(p_Month) + 1; ret_arr[1] = parseInt(p_Year); } } return ret_arr; } function Calendar_print() { ggWinCal.print(); } function Calendar_calc_month_year(p_Month, p_Year, incr) { /* Will return an 1-D array with 1st element being the calculated month and second being the calculated year after applying the month increment/decrement as specified by 'incr' parameter. 'incr' will normally have 1/-1 to navigate thru the months. */ var ret_arr = new Array(); if (incr == -1) { // B A C K W A R D if (p_Month == 0) { ret_arr[0] = 11; ret_arr[1] = parseInt(p_Year) - 1; } else { ret_arr[0] = parseInt(p_Month) - 1; ret_arr[1] = parseInt(p_Year); } } else if (incr == 1) { // F O R W A R D if (p_Month == 11) { ret_arr[0] = 0; ret_arr[1] = parseInt(p_Year) + 1; } else { ret_arr[0] = parseInt(p_Month) + 1; ret_arr[1] = parseInt(p_Year); } } return ret_arr; } // This is for compatibility with Navigator 3, we have to create and discard one object before the prototype object exists. new Calendar(); Calendar.prototype.getMonthlyCalendarCode = function() { var vCode = ""; var vHeader_Code = ""; var vData_Code = ""; // Begin Table Drawing code here.. vCode = vCode + ""; vHeader_Code = this.cal_header(); vData_Code = this.cal_data(); vCode = vCode + vHeader_Code + vData_Code; vCode = vCode + "
"; vCode = vCode + "
Clear Date
"; //CHG001 start // " onMouseDown=\"if(!self.opener."+this.gReturnItem+".disabled){self.opener." + this.gReturnItem + ".value='';self.opener."+this.gReturnItem+".focus();window.close();} else {self.opener." + this.gReturnItem + ".value='';window.close();}\">Clear Date"; //commented by Udesh " onkeyDown=\"if(event.keyCode == 13){if(!self.opener."+this.gReturnItem+".disabled){self.opener." + this.gReturnItem + ".value='';self.opener."+this.gReturnItemH+".value='';self.opener."+this.gReturnItem+".focus();window.close();} else {self.opener." + this.gReturnItem + ".value='';self.opener."+this.gReturnItemH+".value='';window.close();}}\""+ " onMouseDown=\"if(!self.opener."+this.gReturnItem+".disabled){self.opener." + this.gReturnItem + ".value='';self.opener."+this.gReturnItemH+".value='';self.opener."+this.gReturnItem+".focus();window.close();} else {self.opener." + this.gReturnItem + ".value='';self.opener."+this.gReturnItemH+".value='';window.close();}\">Clear Date"; //CHG003 //CHG001 end return vCode; } Calendar.prototype.show = function() { var vCode = ""; this.gWinCal.document.open(); // Setup the page... this.wwrite(""); this.wwrite("Calendar"); this.wwrite(""); this.wwrite(""); this.wwriteA(""); this.wwriteA( this.gMonthName + " " + this.gYear); this.wwriteA("
"); // Show navigation buttons var prevMMYYYY = Calendar.calc_month_year(this.gMonth, this.gYear, -1); var prevMM = prevMMYYYY[0]; var prevYYYY = prevMMYYYY[1]; var nextMMYYYY = Calendar.calc_month_year(this.gMonth, this.gYear, 1); var nextMM = nextMMYYYY[0]; var nextYYYY = nextMMYYYY[1]; //22953_CHG001 this.wwrite("
"); this.wwrite("[<<<\/A>]"); this.wwrite("[<<\/A>]"); this.wwrite("[><\/A>]"); this.wwrite("[>><\/A>]

"); // Get the complete calendar code for the month.. vCode = this.getMonthlyCalendarCode(); this.wwrite(vCode); this.wwrite(""); this.gWinCal.document.close(); } Calendar.prototype.showY = function() { var vCode = ""; var i; var vr, vc, vx, vy; // Row, Column, X-coord, Y-coord var vxf = 285; // X-Factor var vyf = 200; // Y-Factor var vxm = 10; // X-margin var vym; // Y-margin if (isIE) vym = 75; else if (isNav) vym = 25; this.gWinCal.document.open(); this.wwrite(""); this.wwrite("Calendar"); this.wwrite(""); this.wwrite(""); this.wwrite(""); this.wwrite(""); this.wwrite("Year : " + this.gYear); this.wwrite("
"); // Show navigation buttons var prevYYYY = parseInt(this.gYear) - 1; var nextYYYY = parseInt(this.gYear) + 1; this.wwrite("
"); this.wwrite("[<<<\/A>]"); this.wwrite("[Print]"); this.wwrite("[>><\/A>]

"); // Get the complete calendar code for each month.. var j; for (i=11; i>=0; i--) { if (isIE) this.wwrite("
"); else if (isNav) this.wwrite(""); this.gMonth = i; this.gMonthName = Calendar.get_month(this.gMonth); vCode = this.getMonthlyCalendarCode(); this.wwrite(this.gMonthName + "/" + this.gYear + "
"); this.wwrite(vCode); if (isIE) this.wwrite("
"); else if (isNav) this.wwrite(""); } this.wwrite("

"); this.gWinCal.document.close(); } Calendar.prototype.wwrite = function(wtext) { this.gWinCal.document.writeln(wtext); } Calendar.prototype.wwriteA = function(wtext) { this.gWinCal.document.write(wtext); } Calendar.prototype.cal_header = function() { var vCode = ""; vCode = vCode + ""; vCode = vCode + "Su"; vCode = vCode + "Mo"; vCode = vCode + "Tu"; vCode = vCode + "We"; vCode = vCode + "Th"; vCode = vCode + "Fr"; vCode = vCode + "Sa"; vCode = vCode + ""; return vCode; } Calendar.prototype.cal_data = function() { var vDate = new Date(); vDate.setDate(1); vDate.setMonth(this.gMonth); vDate.setFullYear(this.gYear); var vFirstDay=vDate.getDay(); var vDay=1; var vLastDay=Calendar.get_daysofmonth(this.gMonth, this.gYear); var vOnLastDay=0; var vCode = ""; /* Get day for the 1st of the requested month/year.. Place as many blank cells before the 1st day of the month as necessary. */ vCode = vCode + ""; for (i=0; i" + //CHG001 starts "';self.opener." + this.gReturnItemH + ".value='" + this.format_dataH(vDay)+"'; if(self.opener."+this.gReturnItem+".disabled) window.close(); else {self.opener."+this.gReturnItem+".focus();window.close();}\" "+ "onkeydown=\"if(event.keyCode == 13) {self.opener." + this.gReturnItem + ".value='" + this.format_data(vDay)+ //CHG001 old code - "';self.opener."+this.gReturnItem+".focus();window.close();\">" + //CHG001 starts "';self.opener." + this.gReturnItemH + ".value='" + this.format_dataH(vDay)+"'; if(self.opener."+this.gReturnItem+".disabled) window.close(); else {self.opener."+this.gReturnItem+".focus();window.close();}}\">"+ //CHG001 ends this.format_day(vDay) + " " }else { //CHG004 vCode = vCode + "" + this.format_day(vDay) +" "; } //CHG004 vCode = vCode + ""; vDay=vDay + 1; } vCode = vCode + ""; // Write the rest of the weeks for (k=2; k<7; k++) { vCode = vCode + ""; for (j=0; j<7; j++) { var dayStyle = ""; for (wechk=0; wechk" + //CHG001 starts "'; ;self.opener." + this.gReturnItemH + ".value='" + this.format_dataH(vDay)+"';if(self.opener."+this.gReturnItem+".disabled) window.close(); else {self.opener."+this.gReturnItem+".focus();window.close();}\" "+ "onkeydown=\"if(event.keyCode == 13) {self.opener." + this.gReturnItem + ".value='" + this.format_data(vDay)+ //CHG001 old code - "';self.opener."+this.gReturnItem+".focus();window.close();\">" + //CHG001 starts "';self.opener." + this.gReturnItemH + ".value='" + this.format_dataH(vDay)+"'; if(self.opener."+this.gReturnItem+".disabled) window.close(); else {self.opener."+this.gReturnItem+".focus();window.close();}}\">"+ //CHG001 ends this.format_day(vDay) + "" }else { //CHG004 vCode = vCode + "" + this.format_day(vDay) +" "; } //CHG004 vCode = vCode + ""; vDay=vDay + 1; if (vDay > vLastDay) { vOnLastDay = 1; break; } } if (j == 6) vCode = vCode + ""; if (vOnLastDay == 1) break; } // Fill up the rest of last week with proper blanks, so that we get proper square blocks for (m=1; m<(7-j); m++) { var dayStyle = ""; for (wechk=0; wechk"; else vCode = vCode + m + ""; } return vCode; } // this full method CHG004 && CHg005_start Calendar.prototype.curr_day = function(vday) { var vNowDay = gNow.getDate(); var vNowMonth = gNow.getMonth(); var vNowYear = gNow.getFullYear(); if (enablingPastDates=="Y"){ return 1; }else { if(this.gYear >= currYr) { if(vday>=vNowDay && parseInt(this.gMonth) == parseInt(checkDates)) { return 1; }else if(this.gYear == currYr && this.gMonth > checkDates){ return 1; }else if(this.gYear > currYr) { return 1; } }else if(vday" + vday + ""); else return (vday); } Calendar.prototype.write_weekend_string = function(vday) { var i; // Return special formatting for the weekend day. for (i=0; i "); } return "  "; } /* Calendar.prototype.format_data = function(p_day) { var vData; var vMonth = 1 + this.gMonth; vMonth = (vMonth.toString().length < 2) ? "0" + vMonth : vMonth; // var vMon = Calendar.get_month(this.gMonth).substr(0,3).toUpperCase(); var vMon = Calendar.get_month1(this.gMonth); var vFMon = Calendar.get_month(this.gMonth).toUpperCase(); var vY4 = new String(this.gYear); var vY2 = new String(this.gYear.substr(2,2)); var vDD = (p_day.toString().length < 2) ? "0" + p_day : p_day; switch (this.gFormat) { case "MM\/DD\/YYYY" : vData = vMonth + "\/" + vDD + "\/" + vY4; break; case "MM\/DD\/YY" : vData = vMonth + "\/" + vDD + "\/" + vY2; break; case "MM-DD-YYYY" : vData = vMonth + "-" + vDD + "-" + vY4; break; case "MM-DD-YY" : vData = vMonth + "-" + vDD + "-" + vY2; break; case "DD\/MON\/YYYY" : vData = vDD + "\/" + vMon + "\/" + vY4; break; case "DD\/MON\/YY" : vData = vDD + "\/" + vMon + "\/" + vY2; break; case "DD-MON-YYYY" : //vData = vDD + "-" + vMon + "-" + vY4; vData = vDD + "\/" + vMon + "\/" + vY4; break; case "DD-MON-YY" : vData = vDD + "-" + vMon + "-" + vY2; break; case "DD\/Month\/YYYY" : vData = vDD + "\/" + vFMon + "\/" + vY4; break; case "DD\/Month\/YY" : vData = vDD + "\/" + vFMon + "\/" + vY2; break; case "DD-Month-YYYY" : vData = vDD + "-" + vFMon + "-" + vY4; break; case "DD-Month-YY" : vData = vDD + "-" + vFMon + "-" + vY2; break; case "DD\/MM\/YYYY" : vData = vDD + "\/" + vMonth + "\/" + vY4; break; case "DD\/MM\/YY" : vData = vDD + "\/" + vMonth + "\/" + vY2; break; case "DD-MM-YYYY" : vData = vDD + "-" + vMonth + "-" + vY4; break; case "DD-MM-YY" : vData = vDD + "-" + vMonth + "-" + vY2; break; default : vData = vMonth + "\/" + vDD + "\/" + vY4; } return vData; } */ Calendar.prototype.format_data = function(p_day) { var vData; var vMonth = 1 + this.gMonth; vMonth = (vMonth.toString().length < 2) ? "0" + vMonth : vMonth; // var vMon = Calendar.get_month(this.gMonth).substr(0,3).toUpperCase(); var vMon = Calendar.get_month1(this.gMonth); var vFMon = Calendar.get_month(this.gMonth).toUpperCase(); var vY4 = new String(this.gYear); var vY2 = new String(this.gYear.substr(2,2)); var vDD = (p_day.toString().length < 2) ? "0" + p_day : p_day; switch (this.gFormat) { case "MM\/DD\/YYYY" : vData = vMonth + "\/" + vDD + "\/" + vY4; break; case "MM-dd-yyyy" : // added by udesh vData = vMonth + "-" + vDD + "-" + vY4; break; case "MM-dd-yy" : vData = vMonth + "-" + vDD + "-" + vY2; break; case "MM\/dd\/yyyy" : // added by udesh CHG002 vData = vMonth + "\/" + vDD + "\/" + vY4; break; case "MM\/dd\/yy" : vData = vMonth + "\/" + vDD + "\/" + vY2; break; case "MM-dd-yyyy" : // added by udesh CHG002 vData = vMonth + "-" + vDD + "-" + vY4; break; case "MM-dd-yy" : vData = vMonth + "-" + vDD + "-" + vY2; break; case "MM#dd#yyyy" : // added by udesh CHG002 vData = vMonth + "#" + vDD + "#" + vY4; break; case "MM#dd#yy" : vData = vMonth + "#" + vDD + "#" + vY2; break; case "MM.dd.yyyy" : // added by udesh CHG002 vData = vMonth + "." + vDD + "." + vY4; break; case "MM.dd.yy" : vData = vMonth + "." + vDD + "." + vY2; break; case "MON\/DD\/YYYY" : // added by Udesh for DateFormat vData = vMon + "\/" + vDD + "\/" + vY4; break; case "MON\/DD\/YY" : // added by Udesh for DateFormat vData = vMon + "\/" + vDD + "\/" + vY2; break; case "MMM\/DD\/YY" : // added by Udesh for DateFormat vData = vMon + "\/" + vDD + "\/" + vY2; break; case "MMM-DD-YY" : // added by Udesh for DateFormat vData = vMon + "-" + vDD + "-" + vY2; break; case "MMM\/DD\/YYYY" : // added by Udesh for DateFormat vData = vMon + "\/" + vDD + "\/" + vY4; break; case "MMM-DD-YYYY" : // added by Udesh for DateFormat vData = vMon + "-" + vDD + "-" + vY4; break; case "dd-MMM-YYYY" : // added by Udesh for DateFormat vData = vDD + "-" + vMon + "-" + vY4; break; case "dd\/MMM\/YYYY" : // added by Udesh for DateFormat vData = vDD + "\/" + vMon + "\/" + vY4; break; case "dd-MMM-YY" : // added by Udesh for DateFormat vData = vDD + "-" + vMon + "-" + vY2; break; case "dd\/MMM\/YY" : // added by Udesh for DateFormat vData = vDD + "\/" + vMon + "\/" + vY2; break; case "MON-DD-YYYY" : // added by Udesh for DateFormat vData = vMon + "-" + vDD + "-" + vY4; break; case "MON-DD-YY" : // added by Udesh for DateFormat vData = vMon + "-" + vDD + "-" + vY2; break; case "MON.DD.YYYY" : // added by Udesh for DateFormat vData = vMon + "." + vDD + "." + vY4; break; case "MON.DD.YY" : // added by Udesh for DateFormat vData = vMon + "." + vDD + "." + vY2; break; case "MM.DD.YYYY" : // added by Udesh for DateFormat vData = vMonth + "." + vDD + "." + vY4; break; case "MM.DD.YY" : // added by Udesh for DateFormat vData = vMonth + "." + vDD + "." + vY2; break; case "DD\/MON\/YYYY" : vData = vDD + "\/" + vMon + "\/" + vY4; break; case "DD\/MON\/YY" : vData = vDD + "\/" + vMon + "\/" + vY2; break; case "DD-MON-YYYY" : //vData = vDD + "-" + vMon + "-" + vY4; vData = vDD + "\/" + vMon + "\/" + vY4; break; case "DD-MON-YY" : vData = vDD + "-" + vMon + "-" + vY2; break; case "DD\/Month\/YYYY" : vData = vDD + "\/" + vFMon + "\/" + vY4; break; case "DD\/Month\/YY" : vData = vDD + "\/" + vFMon + "\/" + vY2; break; case "DD-Month-YYYY" : vData = vDD + "-" + vFMon + "-" + vY4; break; case "DD-Month-YY" : vData = vDD + "-" + vFMon + "-" + vY2; break; case "DD\/MM\/YYYY" : vData = vDD + "\/" + vMonth + "\/" + vY4; break; case "dd\/MM\/yyyy" : //added by Udesh for supported date format vData = vDD + "\/" + vMonth + "\/" + vY4; break; case "dd\/MM\/yy" : vData = vDD + "\/" + vMonth + "\/" + vY2; break; case "DD-MM-YYYY" : vData = vDD + "-" + vMonth + "-" + vY4; break; case "dd-MM-yyyy" : // added by Udesh for DateFormat vData = vDD + "-" + vMonth + "-" + vY4; break; case "dd-MM-yy" : vData = vDD + "-" + vMonth + "-" + vY2; break; case "DD.MON.YYYY" : // added by Udesh for DateFormat vData = vDD + "." + vMon + "." + vY4; break; case "DD.MON.YY" : // added by Udesh for DateFormat vData = vDD + "." + vMon + "." + vY2; break; case "DD.MM.YYYY" : // added by Udesh for DateFormat vData = vDD + "." + vMonth + "." + vY4; break; case "DD.MM.YY" : // added by Udesh for DateFormat vData = vDD + "." + vMonth + "." + vY2; break; case "YYYY.MON.DD" : // added by Udesh for DateFormat vData = vY4 + "." + vMon + "." + vDD; break; case "YY.MON.DD" : // added by Udesh for DateFormat vData = vY2 + "." + vMon + "." + vDD; break; case "YYYY.MM.DD" : // added by Udesh for DateFormat vData = vY4 + "." + vMonth + "." + vDD ; break; case "YY.MM.DD" : // added by Udesh for DateFormat vData = vY2 + "." + vMonth + "." + vDD ; break; case "YYYY\/MON\/DD" : // added by Udesh for DateFormat vData = vY4 + "\/" + vMon + "\/" + vDD; break; case "YY\/MON\/DD" : // added by Udesh for DateFormat vData = vY2 + "\/" + vMon + "\/" + vDD; break; case "YYYY\/MM\/DD" : // added by Udesh for DateFormat vData = vY4 + "\/" + vMonth + "\/" + vDD ; break; case "YY\/MM\/DD" : // added by Udesh for DateFormat vData = vY2 + "\/" + vMonth + "\/" + vDD ; break; case "YYYY\/DD\/MON" : // added by Udesh for DateFormat vData = vY4 + "\/" + vDD + "\/" + vMon; break; case "YY\/DD\/MON" : // added by Udesh for DateFormat vData = vY2 + "\/" + vDD + "\/" + vMon; break; case "YYYY\/DD\/MM" : // added by Udesh for DateFormat vData = vY4 + "\/" + vDD + "\/" + vMonth ; break; case "YY\/DD\/MM" : // added by Udesh for DateFormat vData = vY2 + "\/" + vDD + "\/" + vMonth ; break; case "YYYY-DD-MON" : // added by Udesh for DateFormat vData = vY4 + "-" + vDD + "-" + vMon; break; case "YY-DD-MON" : // added by Udesh for DateFormat vData = vY2 + "-" + vDD + "-" + vMon; break; case "dd-MMM-yyyy" : // added by Udesh for DateFormat vData = vDD + "-" + vMon + "-" + vY4 ; break; case "yyyy-dd-MM" : // added by Udesh for DateFormat vData = vY4 + "-" + vDD + "-" + vMonth ; break; case "yy-dd-MM" : // added by Udesh for DateFormat vData = vY2 + "-" + vDD + "-" + vMonth ; break; case "dd#MM#yyyy" : // added by Udesh for DateFormat vData = vDD + "#" + vMonth + "#" + vY4; break; case "dd#MM#yy" : //added by Udesh for supported date format vData = vDD + "#" + vMonth + "#" + vY2; break; case "yyyy#dd#MM" : //added by Udesh for supported date format vData = vY4 + "#" + vDD + "#" + vMonth; break; case "yy#dd#MM" : //added by Udesh for supported date format vData = vY2 + "#" + vDD + "#" + vMonth; break; case "yyyy.dd.MM" : //added by Udesh for supported date format vData = vY4 + "." + vDD + "." + vMonth; break; case "yy.dd.MM" : //added by Udesh for supported date format vData = vY2 + "." + vDD + "." + vMonth; break; case "yyyy\/dd\/MM" : //added by Udesh for supported date format vData = vY4 + "\/" + vDD + "\/" + vMonth ; break; case "yyyy\/MM\/dd" : //added by Udesh for supported date format vData = vY4 + "\/" + vMonth + "\/" + vDD ; break; case "yy\/MM\/dd" : //added by Udesh for supported date format vData = vY2 + "\/" + vMonth + "\/" + vDD ; break; case "dd\/MM\/yyyy" : //added by Udesh for supported date format vData = vDD + "\/" + vMonth + "\/" + vY4 ; break; case "dd\/MM\/yy" : //added by Udesh for supported date format vData = vDD + "\/" + vMonth + "\/" + vY2 ; break; default : vData = vMonth + "\/" + vDD + "\/" + vY4; } return vData; } ////////// Calendar.prototype.format_dataH = function(p_day) { var vData; var vMonth = 1 + this.gMonth; vMonth = (vMonth.toString().length < 2) ? "0" + vMonth : vMonth; // var vMon = Calendar.get_month(this.gMonth).substr(0,3).toUpperCase(); var vMon = Calendar.get_month1(this.gMonth); var vFMon = Calendar.get_month(this.gMonth).toUpperCase(); var vY4 = new String(this.gYear); var vY2 = new String(this.gYear.substr(2,2)); var vDD = (p_day.toString().length < 2) ? "0" + p_day : p_day; vData = vDD + "\/" + vMon + "\/" + vY4; /* switch (this.gFormat) { case "MM\/DD\/YYYY" : vData = vMonth + "\/" + vDD + "\/" + vY4; break; case "MM\/DD\/YY" : vData = vMonth + "\/" + vDD + "\/" + vY2; break; case "MM-DD-YYYY" : vData = vMonth + "-" + vDD + "-" + vY4; break; case "MM-DD-YY" : vData = vMonth + "-" + vDD + "-" + vY2; break; case "MM-dd-yyyy" : // added by udesh vData = vMonth + "-" + vDD + "-" + vY4; break; case "MM-DD-yyyy" : vData = vMonth + "-" + vDD + "-" + vY4; break; case "MM-DD-YYYY" : vData = vMonth + "-" + vDD + "-" + vY4; break; case "MM-dd-yy" : vData = vMonth + "-" + vDD + "-" + vY2; break; case "MM-DD-yy" : vData = vMonth + "-" + vDD + "-" + vY2; break; case "MM-DD-YY" : vData = vMonth + "-" + vDD + "-" + vY2; break; case "MM\/dd\/yyyy" : // added by udesh CHG002 vData = vMonth + "-" + vDD + "\/" + vY4; break; case "MM\/DD\/yyyy" : vData = vMonth + "-" + vDD + "\/" + vY4; break; case "MM\/DD\/YYYY" : vData = vMonth + "-" + vDD + "\/" + vY4; break; case "MM\/dd\/yy" : vData = vMonth + "-" + vDD + "\/" + vY2; break; case "MM\/DD\/yy" : vData = vMonth + "-" + vDD + "\/" + vY2; break; case "MM\/DD\/YY" : vData = vMonth + "\/" + vDD + "\/" + vY2; break; case "MON\/DD\/YYYY" : // added by Udesh for DateFormat vData = vMon + "\/" + vDD + "\/" + vY4; break; case "MON\/DD\/YY" : // added by Udesh for DateFormat vData = vMon + "\/" + vDD + "\/" + vY2; break; case "MMM\/DD\/YY" : // added by Udesh for DateFormat vData = vMon + "\/" + vDD + "\/" + vY2; break; case "MMM-DD-YY" : // added by Udesh for DateFormat vData = vMon + "-" + vDD + "-" + vY2; break; case "MMM\/DD\/YYYY" : // added by Udesh for DateFormat vData = vMon + "\/" + vDD + "\/" + vY4; break; case "MMM-DD-YYYY" : // added by Udesh for DateFormat vData = vMon + "-" + vDD + "-" + vY4; break; case "dd-MMM-YYYY" : // added by Udesh for DateFormat vData = vDD + "-" + vMon + "-" + vY4; break; case "dd\/MMM\/YYYY" : // added by Udesh for DateFormat vData = vDD + "\/" + vMon + "\/" + vY4; break; case "dd-MMM-YY" : // added by Udesh for DateFormat vData = vDD + "-" + vMon + "-" + vY2; break; case "dd\/MMM\/YY" : // added by Udesh for DateFormat vData = vDD + "\/" + vMon + "\/" + vY2; break; case "MON-DD-YYYY" : // added by Udesh for DateFormat vData = vMon + "-" + vDD + "-" + vY4; break; case "MON-DD-YY" : // added by Udesh for DateFormat vData = vMon + "-" + vDD + "-" + vY2; break; case "MON.DD.YYYY" : // added by Udesh for DateFormat vData = vMon + "." + vDD + "." + vY4; break; case "MON.DD.YY" : // added by Udesh for DateFormat vData = vMon + "." + vDD + "." + vY2; break; case "MM.DD.YYYY" : // added by Udesh for DateFormat vData = vMonth + "." + vDD + "." + vY4; break; case "MM.DD.YY" : // added by Udesh for DateFormat vData = vMonth + "." + vDD + "." + vY2; break; case "DD\/MON\/YYYY" : vData = vDD + "\/" + vMon + "\/" + vY4; break; case "DD\/MON\/YY" : vData = vDD + "\/" + vMon + "\/" + vY2; break; case "DD-MON-YYYY" : //vData = vDD + "-" + vMon + "-" + vY4; vData = vDD + "\/" + vMon + "\/" + vY4; break; case "DD-MON-YY" : vData = vDD + "-" + vMon + "-" + vY2; break; case "DD\/Month\/YYYY" : vData = vDD + "\/" + vFMon + "\/" + vY4; break; case "DD\/Month\/YY" : vData = vDD + "\/" + vFMon + "\/" + vY2; break; case "DD-Month-YYYY" : vData = vDD + "-" + vFMon + "-" + vY4; break; case "DD-Month-YY" : vData = vDD + "-" + vFMon + "-" + vY2; break; case "DD\/MM\/YYYY" : vData = vDD + "\/" + vMonth + "\/" + vY4; break; case "DD\/MM\/YY" : vData = vDD + "\/" + vMonth + "\/" + vY2; break; case "DD-MM-YYYY" : vData = vDD + "-" + vMonth + "-" + vY4; break; case "dd-MM-yyyy" : // added by Udesh for DateFormat vData = vDD + "-" + vMonth + "-" + vY4; break; case "DD-MM-YY" : vData = vDD + "-" + vMonth + "-" + vY2; break; case "DD.MON.YYYY" : // added by Udesh for DateFormat vData = vDD + "." + vMon + "." + vY4; break; case "DD.MON.YY" : // added by Udesh for DateFormat vData = vDD + "." + vMon + "." + vY2; break; case "DD.MM.YYYY" : // added by Udesh for DateFormat vData = vDD + "." + vMonth + "." + vY4; break; case "DD.MM.YY" : // added by Udesh for DateFormat vData = vDD + "." + vMonth + "." + vY2; break; case "YYYY.MON.DD" : // added by Udesh for DateFormat vData = vY4 + "." + vMon + "." + vDD; break; case "YY.MON.DD" : // added by Udesh for DateFormat vData = vY2 + "." + vMon + "." + vDD; break; case "YYYY.MM.DD" : // added by Udesh for DateFormat vData = vY4 + "." + vMonth + "." + vDD ; break; case "YY.MM.DD" : // added by Udesh for DateFormat vData = vY2 + "." + vMonth + "." + vDD ; break; case "YYYY\/MON\/DD" : // added by Udesh for DateFormat vData = vY4 + "\/" + vMon + "\/" + vDD; break; case "YY\/MON\/DD" : // added by Udesh for DateFormat vData = vY2 + "\/" + vMon + "\/" + vDD; break; case "YYYY\/MM\/DD" : // added by Udesh for DateFormat vData = vY4 + "\/" + vMonth + "\/" + vDD ; break; case "YY\/MM\/DD" : // added by Udesh for DateFormat vData = vY2 + "\/" + vMonth + "\/" + vDD ; break; case "YYYY\/DD\/MON" : // added by Udesh for DateFormat vData = vY4 + "\/" + vDD + "\/" + vMon; break; case "YY\/DD\/MON" : // added by Udesh for DateFormat vData = vY2 + "\/" + vDD + "\/" + vMon; break; case "YYYY\/DD\/MM" : // added by Udesh for DateFormat vData = vY4 + "\/" + vDD + "\/" + vMonth ; break; case "YY\/DD\/MM" : // added by Udesh for DateFormat vData = vY2 + "\/" + vDD + "\/" + vMonth ; break; case "YYYY-DD-MON" : // added by Udesh for DateFormat vData = vY4 + "-" + vDD + "-" + vMon; break; case "YY-DD-MON" : // added by Udesh for DateFormat vData = vY2 + "-" + vDD + "-" + vMon; break; case "YYYY-DD-MM" : // added by Udesh for DateFormat vData = vY4 + "-" + vDD + "-" + vMonth ; break; case "YY-DD-MM" : // added by Udesh for DateFormat vData = vY2 + "-" + vDD + "-" + vMonth ; break; case "dd-MMM-yyyy" : // added by Udesh for DateFormat vData = vDD + "-" + vMon + "-" + vY4 ; break; default : vData = vMonth + "\/" + vDD + "\/" + vY4; }*/ return vData; } /////////// function Build(p_item, p_month, p_year, p_format) { var p_WinCal = ggWinCal; gCal = new Calendar(p_item, p_WinCal, p_month, p_year, p_format); // Customize your Calendar here.. gCal.gBGColor="white"; gCal.gLinkColor="black"; gCal.gTextColor="black"; gCal.gHeaderColor="#000000"; // Choose appropriate show function if (gCal.gYearly) gCal.showY(); else gCal.show(); } function show_calendar() { if ( !(document.all) && top.opWin && top.opWin.opener && !top.opWin.opener.closed) top.opWin.close(); if ( !(document.all) && top.opWinLarge && top.opWinLarge.opener && !top.opWinLarge.opener.closed) top.opWinLarge.close(); /* p_month : 0-11 for Jan-Dec; 12 for All Months. p_year : 4-digit year p_format: Date format (mm/dd/yyyy, dd/mm/yy, ...) p_item : Return Item. */ p_item = arguments[0]; if (arguments[1] == null) p_month = new String(gNow.getMonth()); else p_month = arguments[1]; if (arguments[2] == "" || arguments[2] == null) p_year = new String(gNow.getFullYear().toString()); else p_year = arguments[2]; if (arguments[3] == null) p_format = "DD-MON-YYYY"; else p_format = arguments[3]; if(arguments[4]==null || arguments[4]=="N") //CHG004 enablingPastDates = "N" else enablingPastDates = "Y" //Added by Vijeesh //To recieve the css files to be used if (arguments[5] == null) style_sheet = new String("online.css"); else style_sheet = arguments[5]; checkDates = p_month; //adding current month while loading screen CHG004 currYr = p_year //CHG005 vWinCal = window.open("", "Calendar", "width=175,height=215,status=no,resizable=no,top=100,left=200"); top.opCalWin=vWinCal; vWinCal.opener = self; ggWinCal = vWinCal; Build( p_item,p_month, p_year, p_format); } /* Yearly Calendar Code Starts here */ function show_yearly_calendar(p_item, p_year, p_format) { // Load the defaults.. if (p_year == null || p_year == "") p_year = new String(gNow.getFullYear().toString()); if (p_format == null || p_format == "") p_format = "MM/DD/YYYY"; var vWinCal = window.open("", "Calendar", "scrollbars=yes"); vWinCal.opener = self; ggWinCal = vWinCal; Build(p_item, null, p_year, p_format); } function openNewWin(message){ /* -------- function to open message window to display the type of validation to be made ------- */ if (!(document.all) && top.opCalWin && top.opCalWin.opener && !top.opCalWin.opener.closed) top.opCalWin.close(); var autoclose = true open("MessagePop.jsp?msg="+message,"Test","scrollbar=no,height=195,width=400,left=200,top=200"); } function openWin(message){ /* -------- function to open message window to display the type of validation to be made ------- */ if (!(document.all) && top.opCalWin && top.opCalWin.opener && !top.opCalWin.opener.closed) top.opCalWin.close(); var autoclose = true; //open("contxtPath/IbsJsps/MessageNewPop.jsp?msg="+message,"Test","scrollbars=yes,height=195,width=390,left=200,top=200,modal=yes "); open("contxtPath/IbsJsps/MessageNewPop.jsp?msg="+message,"Test","scrollbars=yes,height=195,width=420,left=200,top=200,modal=yes "); /* newWin = open("","Test","scrollbar=no,height=195,width=400,left=200,top=200"); top.opWin=newWin; newWin.document.open(); newWin.document.writeln("Welcome to Intellect Online"); newWin.document.writeln(""); newWin.document.writeln("") newWin.document.write("") newWin.document.write(""); newWin.document.write("
"); newWin.document.write(""); newWin.document.write(""); newWin.document.write(""); newWin.document.write(""); newWin.document.write(""); newWin.document.write(""); newWin.document.write(""); newWin.document.write("
   

" + message + "

  
Close this window     
  
  
"); newWin.document.close();*/ } function openLoginWin(message){ /* -------- function to open message window to display the type of validation to be made ------- */ if (!(document.all) && top.opCalWin && top.opCalWin.opener && !top.opCalWin.opener.closed) top.opCalWin.close(); var autoclose = true newWin = open("","Test","scrollbar=no,height=195,width=400,left=200,top=200"); top.opWin=newWin; newWin.document.open(); newWin.document.writeln("Al Islami Connect"); newWin.document.writeln(""); newWin.document.writeln("") newWin.document.write("") newWin.document.write(""); newWin.document.write("
"); newWin.document.write(""); newWin.document.write(""); newWin.document.write(""); newWin.document.write(""); newWin.document.write(""); newWin.document.write(""); newWin.document.write(""); newWin.document.write("
   

  • " + message + "
  •   
    Close     
      
      
    "); newWin.document.close(); } function openWinLarge(message){ /* -------- function to open message window to display the type of validation to be made ------- */ if (!(document.all) && top.opCalWin && top.opCalWin.opener && !top.opCalWin.opener.closed) top.opCalWin.close(); var autoclose = true newWinLarge = open("","Test","scrollbar=no,height=250,width=400,left=200,top=200"); top.opWinLarge=newWinLarge; newWinLarge.document.open(); newWinLarge.document.write("Commercial Bank Of Kuwait"); newWinLarge.document.writeln(""); newWinLarge.document.writeln("") newWinLarge.document.write("") newWinLarge.document.write(""); newWinLarge.document.write("
    "); newWinLarge.document.write(""); newWinLarge.document.write(""); newWinLarge.document.write(""); newWinLarge.document.write(""); newWinLarge.document.write(""); newWinLarge.document.write(""); newWinLarge.document.write("
       

    " + message + "

    Close this window     
      
      
    "); newWinLarge.document.close(); } /************************************************************************/ function global_trim(str) { str=ltrim(str); str=rtrim(str); return str; } /*--------------------------used by global_trim function-------------*/ function ltrim(str) { if(str.charAt(0)==' ') { if(str.charAt(0)==' ') str=str.substr(1); else str=str.substr(2); return ltrim(str); } else { return str; } } /*--------------------------used by global_trim function-------------*/ function rtrim(str) { if(str.charAt(str.length-1)==' ') { if(str.charAt(str.length-1)==' ') str=str.substr(0,str.length-1); else str=str.substr(0,str.length-2); return rtrim(str); } else { return str; } } /********************************************************************/ /* -------------------------- Function for Validating Amount ------------------------------- */ // It takes a amount filed object as a parameter var whitespace = " \t\n\r"; var curArr=new Array("ITL","JPY","TRL","AED","ATS","AUD","BDT","BEF","BEL","CAD","CHF","CNY","CYP","DEM","DJF","DKK","EGC","EGP","ESP","EUR","FIM","FRF","GBP","GRD","HKD","IEP","INR","IRC","IRR","JDW","LBP","LKR","LYD","MAD","MTL","MYR","NLG","NOK","NZD","PHP","PKR","QAR","SAR","SDP","SEK","SGD","SOS","SYP","USD","XAG","XAU","XEU","YER","ALL","LCY","BHD","IQD","JOD","KWD","OMR","YDD") var curDeci=new Array("0","0","0","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2", "2","2","2","2","3","3","3","3","3","3") var msg0="
  • No decimals are allowed for this currency.
  • "; var msg2="
  • Only two digits after decimal is allowed.
  • "; var msg3="
  • Only three digits after decimal is allowed.
  • "; var msg4="
  • Only four digits after decimal is allowed.
  • "; var msg=""; function global_amt(ptr,cho){ var checkFlag=true; amount=ptr.value; if(isWhitespace(amount)){ return "
  • Please enter the Amount.
  • "; } if ( !isCharsInBag( amount, "0123456789." )){ return ",STP_AMT_NUM"; } if(isNaN(amount)){ return "
  • Amount is invalid.
  • "; } for(i=0;iValue required after the decimal point."; for(i=0;i parseInt(curDeci[i],10)) { msg=eval("msg"+curDeci[i]) return msg; break } } if ( amount.indexOf(".") >13) return "
  • Amount exceeds the max no of Integers.
  • "; } else { if (amount.length>13){ return "
  • Amount exceeds the max no of Integers.
  • "; } } if(amount<=0){ return "
  • Amount should be greater than zero
  • "; } if ( amount.length > 16 ) { return "
  • The amount entered exceeds the allowable range.
  • "; } return ""; } /* -------------------------- Function called by global_amt() ------------------------------- */ function isEmpty(amt){ return ((amt == null) || (amt.length == 0)) } /* -------------------------- Function called by global_amt() ------------------------------- */ function isWhitespace (amt){ var whitespace = " \t\n\r"; var i; if (isEmpty(amt)) return true; // Search through string's characters one by one until we find a non-whitespace character. // When we do, return false; if we don't, return true. for (i = 0; i < amt.length; i++) { // Check that current character isnt whitespace. var c = amt.charAt(i); if (whitespace.indexOf(c) == -1) return false; } // All characters are whitespace. return true; } /* -------------------------- Function called by global_amt() ------------------------------- */ function isCharsInBag (amt, bag){ var i; // Search through strings characters one by one. If character is in bag, append to returnString. for (i = 0; i < amt.length; i++){ // Check that current character isnt whitespace. var c = amt.charAt(i); if (bag.indexOf(c) == -1) return false; } return true; } //---------------------------------------common functions------------ function isAlpha(str) { alpha="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz "; for(i=0;i "+fieldName+" required. "; varReturn = false ; } if((varReturn) && ((date.charAt(2)==septr)&&(date.charAt(5)==septr) && ( date.length == 10 ))) { year=date.substring(6,10); month=date.substring(3,5); day=date.substring(0,2); DateObj=new Date(year,month,day); if( isNaN(year) || isNaN(month) || isNaN(day) ) { if((varReturn) && ( isNaN(day) ) ) { errMsgStr = errMsgStr + "
  • "+fieldName + ": Day should be Numeric.
  • "; varReturn = false; } if((varReturn) && ( isNaN(month) ) ) { errMsgStr = errMsgStr + "
  • "+fieldName + ": Month should be Numeric.
  • "; varReturn = false; } if((varReturn) && ( isNaN(year) ) ) { errMsgStr = errMsgStr + "
  • "+fieldName + ": Year should be Numeric.
  • "; varReturn = false; } } if(global_trim(day).length!=2 || global_trim(month).length!=2 || global_trim(year).length!=4 || (global_trim(day)=="00") || global_trim(month)=="00" ){ if((varReturn) && ( global_trim(day).length!=2 || global_trim(day)=="00" ) ) { errMsgStr = errMsgStr + "
  • "+fieldName + ": Invalid Day.
  • "; varReturn = false; } if((varReturn) && ( global_trim(month).length!=2 || global_trim(month)=="00" ) ) { errMsgStr = errMsgStr + "
  • "+fieldName + ": Invalid Month.
  • "; varReturn = false; } if((varReturn) && ( global_trim(year).length!=4 ) ) { errMsgStr = errMsgStr + "
  • "+fieldName + ": Invalid Year.
  • "; varReturn = false; } } if((varReturn) && ((parseInt(date.substring(0,2),10))<=0||(parseInt(date.substring(0,2),10))>31 || (parseInt(date.substring(3,5),10))>12)) { if((parseInt(date.substring(0,2)))>31) { errMsgStr = errMsgStr + "
  • "+fieldName + ": Invalid Day.
  • "; varReturn = false; } if((varReturn) && ((parseInt(date.substring(3,5),10)) <= 0 || (parseInt(date.substring(3,5),10))>12) ) { errMsgStr = errMsgStr + "
  • "+fieldName + ": Invalid Month.
  • "; varReturn = false; } if((varReturn) && (parseInt(date.substring(6,10),10)) <= 0) { errMsgStr = errMsgStr + "
  • "+fieldName + ": Invalid Year.
  • "; varReturn = false; } } var check=leapCheck(year,month,day); if( (varReturn) && (check==false)) { errMsgStr = errMsgStr + "
  • " +fieldName + ": Invalid Day Month Year Combination.
  • "; varReturn = false; } } if((varReturn) && ((date.charAt(2)!=septr) || (date.charAt(5)!=septr) || (date.length < 10 ))) { errMsgStr = errMsgStr + "
  • Invalid "+ fieldName +" format. Please enter the Date in DD"+septr+"MM"+septr+"YYYY format.
  • "; varReturn = false ; } return errMsgStr; } /* This function used to check whether the the given date containds a valid day,month and year combination. */ /*--------------------------used by global_dateCheck function-------------*/ function leapCheck(fryear,frmonth,frdate) { if ((frmonth==1)||(frmonth==3)||(frmonth==5)||(frmonth==7)||(frmonth==8)||(frmonth==10)||(frmonth==12)) { if (frdate>31) { return false; } } if ((frmonth==4)||(frmonth==6)||(frmonth==9)||(frmonth==11)) { if (frdate>30) { return false; } } if (frmonth==2) { if ((fryear%4)==0) { if ((fryear%100)==0) // if century { if ((fryear%400)==0) // it should 29 is ok (eg if 2000) { if (frdate>29) { return false } } else // if not only 28 eg 1700 not leap { if (frdate>28) { return false; } } } else // not a century div by 4 is enough { // leap if (frdate>29) { return false; } } } else // div not by 4 { // not a leap if (frdate>28) { return false; } } }// if feb // if not no problem return true; }// func ends function checkFocus() { iCardNumber=document.forms[0].atmcardno.value if(iCardNumber.length == 16) { if(!((iCardNumber.substring(0,6)=="480944") ||(iCardNumber.substring(0,6)=="424677")) ) document.forms[0].AccNo.blur(); } } function check() { var iError = false; var iCardType="NULL"; //var iCardNumber=document.forms[0].atmcardno.value var iLogin= document.forms[0].login.value var iATMPin=document.forms[0].Pin.value; iCardType = validateCardNumber(iCardNumber); if(iCardType=="FALSE") { //document.forms[0].atmcardno.value=""; document.forms[0].atmcardno.focus(); return false; } if(iCardType!="CREDIT") { iError = validateAccountIdentifier(iAccountNumber); if (iError == false) { //document.forms[0].AccNo.value=""; document.forms[0].AccNo.focus(); return false; } } if(iAccountNumber!="") { iError = validateAccountIdentifier(iAccountNumber); if (iError == false) { //document.forms[0].AccNo.value=""; document.forms[0].AccNo.focus(); return false; } } iError = validateATMPin(iATMPin); if (iError == false) { //document.forms[0].Pin.value=""; document.forms[0].Pin.focus(); return false; } return true; } function validateCardNumber(iCardNumber) { var iCount=0; var szCardType="NULL"; if(iCardNumber!="") { for(iCount=0;iCount= '0' && iCardNumber.charAt(iCount) <= '9')) { openWin("
  • Credit Card number / Debit Card number must only be numeric.
  • "); szCardType="FALSE"; return szCardType; } } if( !(iCardNumber.length == 16 )) { openWin("
  • Credit Card number / Debit Card number has to be 16 Digits.
  • "); szCardType="FALSE"; return szCardType; } if((iCardNumber.substring(0,6)=="480944") ||(iCardNumber.substring(0,6)=="424677") ) { szCardType="DEBIT"; return szCardType; } else { szCardType="CREDIT"; document.forms[0].AccNo.value=""; return szCardType; } } else return szCardType; } function validateAccountIdentifier(szAccountIdentifier) { var iCount=0; if(szAccountIdentifier=="") { // openWin("
  • Account no cannot be blank if you are using a Debit Card.
  • "); openWin("
  • Please authenticate yourself using your Credit Card / ATM Card or Account Number.
  • "); return false; } for(iCount=0;iCount= '0' && szAccountIdentifier.charAt(iCount) <= '9')) { openWin("
  • Account number must only be numeric.
  • "); return false; } } if( !(szAccountIdentifier.length == 10 )) { openWin("
  • Account number has to be 10 Digits.
  • "); return false; } } function validateATMPin(szATMPin) { var iCount=0; if(szATMPin== "") { openWin("
  • PIN cannot be blank.
  • "); return false; } for(iCount=0;iCount= '0' && szATMPin.charAt(iCount) <= '9')) { openWin("
  • PIN must only be numeric.
  • "); return false; } } if( !(szATMPin.length == 4 )) { openWin("
  • PIN has to be 4 Digits.
  • "); return false; } } /*32196*/ function global_EmailCheck( paramObjValue ) { var filter=/^.+@.+\..{2,3}$/; var errMsgStr=""; var varReturn = true; if(paramObjValue.indexOf('.')-paramObjValue.indexOf('@')==-1) { errMsgStr = errMsgStr +"
  • Enter valid Email Id.
  • "; } if (!filter.test(paramObjValue)) { errMsgStr = errMsgStr +"
  • Enter valid Email Id.
  • "; varReturn = false ; } return errMsgStr; } function global_mailCheck( paramObjValue ) { var errMsgStr=""; var varReturn = true; at=paramObjValue.indexOf('@') dt=paramObjValue.indexOf('.') id=paramObjValue var len=id.length /*if((varReturn ) && (global_trim(id).length==0)) { errMsgStr = errMsgStr +"
  • Email Id required .
  • "; varReturn = false ; }*/ if(global_trim(id).length==0) return errMsgStr; if( (varReturn ) && (at==-1 || dt==-1)) { errMsgStr = errMsgStr +"
  • Enter valid Email Id.
  • "; varReturn = false ; } if((varReturn ) && (global_trim(id.charAt(at-1)).length==0)) { errMsgStr = errMsgStr +"
  • Enter valid Email Id.
  • "; varReturn = false ; } if( (varReturn ) && (global_trim(id.charAt(at+1))==0 || id.charAt(at+1)=='.')) { errMsgStr = errMsgStr +"
  • Enter valid Email Id.
  • "; varReturn = false ; } var valaft = id.charAt(len-1); if( (varReturn ) && !isCharsInBag(valaft, "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz")) { errMsgStr = errMsgStr +"
  • Enter valid Email Id.
  • "; varReturn = false ; } if( (varReturn ) && (global_trim(id.charAt(at+1))==0 || id.charAt(at+1)=='@')) { errMsgStr = errMsgStr +"
  • Enter valid Email Id.
  • "; varReturn = false ; } if( (varReturn ) && (global_trim(id.charAt(dt+1))==0)) { errMsgStr = errMsgStr +"
  • Enter valid Email Id.
  • "; varReturn = false ; } bef=id.substring(0,paramObjValue.indexOf('@')) if ( (varReturn ) && !isCharsInBag( bef, "._-ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" )) { errMsgStr = errMsgStr +"
  • Enter valid Email Id.
  • "; varReturn = false ; } return errMsgStr; } /*********************************************************************/ function normal_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=582 }else{ if(document.all) nWidth=780 else nWidth=790 } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function loan_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=605 else nWidth=608 }else{ if(document.all) nWidth=815 else nWidth=936 } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function secondloan_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=605 else nWidth=608 }else{ if(document.all) nWidth=815 else nWidth=940 } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function secondloans_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=605 else nWidth=608 }else{ if(document.all) nWidth=815 else nWidth=940 } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Credit_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=605 else nWidth=610 }else{ if(document.all) nWidth=815 else nWidth=826 } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Star_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=588 else nWidth=588 }else{ if(document.all) nWidth=810 else nWidth=910 } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function deposit_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=597 //internet else nWidth=603 //netscape }else{ if(document.all) nWidth=815 else nWidth=826 } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function seconddeposit_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=605 else nWidth=608 }else{ if(document.all) nWidth=815 else nWidth=826 } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function normal_downline() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=550 // INternet else nWidth=457 // Netscape }else{ if(document.all) nWidth=650 else nWidth=635 } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Credit_downline() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=535 else nWidth=400 }else{ if(document.all) nWidth=655 else nWidth=665 } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Utility_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=460 else nWidth=450 }else{ if(document.all) nWidth=540 else nWidth=600 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Utilitypreconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=530 }else{ if(document.all) nWidth=740 else nWidth=780 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Utilityconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=540 else nWidth=570 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Charity_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=490 else nWidth=430 }else{ if(document.all) nWidth=540 else nWidth=610 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function charitypreconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=530 }else{ if(document.all) nWidth=740 else nWidth=740 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Charityconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=540 else nWidth=570 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Cheque_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=460 else nWidth=450 }else{ if(document.all) nWidth=540 else nWidth=570 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function chequepreconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=530 }else{ if(document.all) nWidth=740 else nWidth=740 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Chequeconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=574 else nWidth=430 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Stop_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=260 else nWidth=250 }else{ if(document.all) nWidth=340 else nWidth=400 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Stoppreconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=530 }else{ if(document.all) nWidth=740 else nWidth=790 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Stopconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=574 else nWidth=574 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function FTOA_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=460 else nWidth=450 }else{ if(document.all) nWidth=540 else nWidth=500 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function FTOApreconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=530 }else{ if(document.all) nWidth=740 else nWidth=740 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function FTOAconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=574 else nWidth=500 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function FTOAconf_line1() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=574 else nWidth=580 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function FTAN_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=460 else nWidth=450 }else{ if(document.all) nWidth=540 else nWidth=500 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function FTANpreconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=530 }else{ if(document.all) nWidth=740 else nWidth=740 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function FTANconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=574 else nWidth=500 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function FTNA_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=460 else nWidth=450 }else{ if(document.all) nWidth=540 else nWidth=550 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function FTNApreconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=530 }else{ if(document.all) nWidth=740 else nWidth=740 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function FTNAconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=574 else nWidth=574 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function RelStop_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=260 else nWidth=250 }else{ if(document.all) nWidth=440 else nWidth=470 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function RelStoppreconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=530 }else{ if(document.all) nWidth=650 else nWidth=650 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function RelStoppreconf1_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=530 }else{ if(document.all) nWidth=740 else nWidth=790 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function RelStopconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=574 else nWidth=574 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Replost_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=260 else nWidth=250 }else{ if(document.all) nWidth=440 else nWidth=470 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Streqline() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=260 else nWidth=250 }else{ if(document.all) nWidth=640 else nWidth=640 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function RelStreqconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=770 else nWidth=770 //net } document.writeln("") } /*********************************************************************/ /**********************************************************************/ function RelStreqconfpre_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=400 else nWidth=400 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function StRepcredit_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=260 else nWidth=250 }else{ if(document.all) nWidth=470 else nWidth=440 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function StRepcreditpreconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=770 else nWidth=770 //net } document.writeln("") } /*********************************************************************/ /**********************************************************************/ function RelStreqcredconfpre_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=400 else nWidth=400 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function RepostCard_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=490 else nWidth=430 }else{ if(document.all) nWidth=540 else nWidth=610 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Replostcrepreconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=770 else nWidth=770 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function RepostCurrentCard_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=490 else nWidth=430 }else{ if(document.all) nWidth=540 else nWidth=510 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function BenCbk_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=460 else nWidth=450 }else{ if(document.all) nWidth=540 else nWidth=470 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Benepreconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=770 else nWidth=770 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function loanInstallment() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=260 else nWidth=250 }else{ if(document.all) nWidth=470 else nWidth=440 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Starlinkpay() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=260 else nWidth=250 }else{ if(document.all) nWidth=470 else nWidth=440 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function loanpreset() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=770 else nWidth=770 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function Strpreset() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=540 }else{ if(document.all) nWidth=770 else nWidth=900 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function noncbksetup_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=260 else nWidth=250 }else{ if(document.all) nWidth=440 else nWidth=470 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function starconflink_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=260 else nWidth=250 }else{ if(document.all) nWidth=440 else nWidth=470 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function noncbkcityup_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=260 else nWidth=250 }else{ if(document.all) nWidth=440 else nWidth=490 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function noncbkconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=530 }else{ if(document.all) nWidth=740 else nWidth=840 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function noncbknepreconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=530 }else{ if(document.all) nWidth=740 else nWidth=870 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function noncbklastconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=530 }else{ if(document.all) nWidth=740 else nWidth=840 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function sinoncbkintialline() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=460 else nWidth=450 }else{ if(document.all) nWidth=540 else nWidth=570 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function sinoncbkpreconf_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=570 else nWidth=530 }else{ if(document.all) nWidth=740 else nWidth=840 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function siowncbkintialline() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=460 else nWidth=450 }else{ if(document.all) nWidth=540 else nWidth=570 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function sinoncbkfinalline() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=460 else nWidth=450 }else{ if(document.all) nWidth=540 else nWidth=570 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function PINline() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=460 else nWidth=450 }else{ if(document.all) nWidth=540 else nWidth=520 //net } document.writeln("") } /*********************************************************************/ /*********************************************************************/ function amend_line() { var nWidth if(screen.availWidth==800){ if(document.all) nWidth=490 else nWidth=430 }else{ if(document.all) nWidth=680 else nWidth=700 //net } document.writeln("") } /*********************************************************************/ /******** Added by Akila for calling Save as Template Window as Popup *************/ function save_template(){ NewWin = window.open("","NewWin","width=450,height=230,status=no,resizable=no,top=0,left=0"); NewWin.document.writeln("Save as Template"); NewWin.document.writeln(""); NewWin.document.write("") NewWin.document.write(""); NewWin.document.write("
    "); NewWin.document.write("
    "); NewWin.document.write(""); NewWin.document.write(""); NewWin.document.write("
    Save as Template

    Home >> Payments and Transfers >> Fund TransferIntrabank Fund Transfer - own Accounts
    "); NewWin.document.write(""); NewWin.document.write(""); NewWin.document.write(""); NewWin.document.write(""); NewWin.document.write(""); NewWin.document.write("
     
     Template Name

      Public Template
      Private Template
    "); NewWin.document.write("
    "); NewWin.document.write(""); NewWin.document.write(""); NewWin.document.write("
    Public Template will be available for use by all users in the Corporate.
    Private Template will be available for use only by you.
    "); NewWin.document.write("
    "); NewWin.document.write(""); NewWin.document.write("
     Cancel "); NewWin.document.write("Save
    "); NewWin.document.write("
    "); NewWin.document.close(); //method added by Ravi on 1st Oct for resetting the values of the textboxes and combo //to empty when cancel button is clicked on the page //note: the method now supports only clearing the select and text fields. can add the func for radio and check buttons } /* function clearFields() { for(var iCtr=0;iCtr');