var calendarWindow = null; var calendarColors = new Array(); var callFrom ; //calendarColors['bgColor'] = '#BDC5D0'; calendarColors['bgColor'] = '#f1f2f2'; calendarColors['borderColor'] = '#333366'; calendarColors['headerBgColor'] = '#143464'; //calendarColors['headerBgColor'] = '#f1f2f2'; calendarColors['headerColor'] = '#FFFFFF'; //calendarColors['dateBgColor'] = '#8493A8'; calendarColors['dateBgColor'] = '#BDC5D0'; calendarColors['dateColor'] = '#004080'; calendarColors['dateHoverBgColor'] = '#FFFFFF'; calendarColors['dateHoverColor'] = '#8493A8'; //var calendarFormat = 'y-m-d'; var calendarFormat = 'd-m-y'; var calendarStartMonday = false; function getCalendar(formField, blnYear) { //var cal_width = 415; //var cal_height = 310; var cal_width = 290; var cal_height = 225; callFrom ="" // IE needs less space to make this thing if ((document.all) && (navigator.userAgent.indexOf("Konqueror") == -1)) { cal_width = 290; } calendarTarget = formField; var intAvailWidth = screen.availWidth; var intAvailHeight = screen.availHeight; var intWidth = cal_width; var intHeight = cal_height; var url = "resources/jsp/calendar/calendar.jsp?blnYr=" + blnYear calendarWindow =window.open(url,'dateSelectorPopup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,dependent=no,width=' + intWidth + ',height=' + intHeight + ',titlebar=no,left=' + ((intAvailWidth - intWidth - 10) * .5) + ',top=' + ((intAvailHeight - intHeight - 30) * .5)) return false; } function killCalendar() { if (calendarWindow && !calendarWindow.closed) { calendarWindow.close(); } } function getCalendarNew(formField, blnYear, format) { //var cal_width = 415; //var cal_height = 310; var cal_width = 290; var cal_height = 225; callFrom ="" // IE needs less space to make this thing if ((document.all) && (navigator.userAgent.indexOf("Konqueror") == -1)) { cal_width = 290; } calendarTarget = formField; calendarFormat = format; var intAvailWidth = screen.availWidth; var intAvailHeight = screen.availHeight; var intWidth = cal_width; var intHeight = cal_height; var url = "resources/jsp/calendar/calendar.jsp?blnYr=" + blnYear calendarWindow =window.open(url,'dateSelectorPopup','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=0,dependent=no,width=' + intWidth + ',height=' + intHeight + ',titlebar=no,left=' + ((intAvailWidth - intWidth - 10) * .5) + ',top=' + ((intAvailHeight - intHeight - 30) * .5)) return false; }