// Title: Tigra Calendar

// Description: See the demo at url

// URL: http://www.softcomplex.com/products/tigra_calendar/

// Version: 3.1 (American date format)

// Date: 08-08-2002 (mm-dd-yyyy)

// Feedback: feedback@softcomplex.com (specify product title in the subject)

// Note: Permission given to use this script in ANY kind of applications if

//    header lines are left unchanged.

// Note: Script consists of two files: calendar?.js and calendar.htmll

// About us: Our company provides offshore IT consulting services.

//    Contact us at sales@softcomplex.com if you have any programming task you

//    want to be handled by professionals. Our typical hourly rate is $20.



// if two digit year input dates after this year considered 20 century.

var NUM_CENTYEAR = 30;

// is time input control required by default

var BUL_TIMECOMPONENT = false;

// are year scrolling buttons required by default

var BUL_YEARSCROLL = true;



var calendars = [];

var RE_NUM = /^\d+$/;



function calendar2(obj_target) {



	// assing methods

	this.gen_date = cal_gen_date2;

	this.gen_time = cal_gen_time2;

	this.gen_tsmp = cal_gen_tsmp2;

	this.prs_date = cal_prs_date2;

	this.prs_time = cal_prs_time2;

	this.prs_tsmp = cal_prs_tsmp2;

	this.popup    = cal_popup2;



	// validate input parameters

	if (!obj_target)

		return cal_error("Error calling the calendar: no target control specified");

	if (obj_target.value == null)

		return cal_error(




