// JavaScript Document

//for calendar select month/year


//for calendar select event date
function updateEndMonth()
{
var theStartMonthList = document.forms[0].cboMonthStart;
var theEndMonthList = document.forms[0].cboMonthEnd;
var theIndex = theStartMonthList.selectedIndex;
theEndMonthList.options[theIndex].selected = true;
}
function updateEndDay()
{
var theStartDayList = document.forms[0].cboDayStart;
var theEndDayList = document.forms[0].cboDayEnd;
var theIndex = theStartDayList.selectedIndex;
theEndDayList.options[theIndex].selected = true;
}
function updateEndYear() {
var theStartYearList = document.forms[0].cboYearStart;
var theEndYearList = document.forms[0].cboYearEnd;
var theIndex = theStartYearList.selectedIndex;
theEndYearList.options[theIndex].selected = true;
}

//text counter for events
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
else 
countfield.value = maxlimit - field.value.length;
}
function openWin( windowURL, windowName, windowFeatures )
{ 
return window.open( windowURL, windowName, windowFeatures ) ; 
}

