/* ******************************************************************** Softricks Popup Date Picker Calendar Author : Kedar R. Bhave # ************************************************************************* # COPYRIGHT NOTICE # Copyright (c) 2000 Softricks.com, All rights reserved. # This script may be used and modified free of charge by anyone as long as # this copyright notice and the comments above are kept in their original # form. By using this script, you agree to the disclaimer notices as on the # softricks.com site. # # Selling the code for this script, without prior written consent from the # author, is not allowed. Redistributing this script over the internet or # in any medium should be done only with author's written permission. # # IN ALL CASES COPYRIGHT AND HEADERS MUST REMAIN INTACT. # # If you plan to use the script on a commercial site, we suggest that you # provide a link or a reference to Softricks.com somewhere on your site. # # Distributed under the GNU General Public License. # For more information visit: http://www.gnu.org/copyleft/lgpl.html # # Visit the website for more information on Softricks.com's Copyright, # Privacy, Disclaimer and Terms of use policies. ************************************************************************ */ /************************************************************************ # Viewlocity Inc., changes include removal of support for INLINE calendar # and change in color schemes. Most of the colors are derived through the # Viewlocity stylesheet. All exceptions are noted. ************************************************************************/ function name_values(instring) { // Assumption: ';' is a restricted character in a value. // Returns an array of variable names set by this function. var vars = new Array(); rc = "\235"; instring = instring.replace(/\\\;/g, rc); var pattern = /[a-zA-Z0-9]+\=[\/:#a-zA-Z0-9\. \235]+/gi; var y = instring.match(pattern); for (i=0; i"; vHeader_Code = this.cal_header(); vData_Code = this.cal_data(); vCode = vCode + vHeader_Code + vData_Code; vCode = vCode + ""; return vCode; } Calendar.prototype.onclickfn = function() { // This should return the code string for the onclickfn in the calendar document. // This is the reference to the return object // window.opener.document. / window.document. ... .value var whois = this.WHO + ((this.gType == "POPUP") ? "document." + v_NSHierarchy : "window.document." + v_NSHierarchy) + this.gReturnItem + ".value"; // apchar will turn out to be either " = " or " += ''" or " += ';'" var apchar = (this.returnMode == "Replace") ? " = " : " += "; var retCode = "apchar = ''" + ((this.returnMode == "Replace") ? ";" : " + ") + "((" + whois + " == '') ? '' : '" + this.appendChar + "');\n" + whois + apchar + "apchar + pday;\n"; return retCode; } Calendar.prototype.show = function() { var vCode = ""; if (this.gType == "POPUP") this.gWinCal.document.open(); // Setup the page... this.wwrite(""); this.wwrite("" + "" + "Control Tower Platform" + "" ) ; if (this.gType == "POPUP") this.wwrite("