function GetCalEvntDate(dtmSelDate, strObjName, strFormName)
{
  openWindow('/shop/calendar/cal.asp?dtmSelDate='+ dtmSelDate + '&strObjName=' + strObjName + '&strFormName=' + strFormName, 'CAL', '160', '175')
}

function openWindow(strURL, strName, lngHeight, lngWidth)
{
  var strFeatures = "resizable=no,height=" + lngHeight.toString() + 
    ",width=" + lngWidth.toString();
  rVal = top.window.open(strURL, strName, strFeatures);
  if (!rVal.opener) rVal.opener = self;
  rVal.focus();
}

function y2k(number) { return (number < 1000) ? number + 1900 : number; }

function isDate (day,month,year)
{
  var today = new Date();
  year = ((!year) ? y2k(today.getFullYear()):year);
  month = ((!month) ? today.getMonth():month-1);
  if (!day) return false
  var test = new Date(year,month,day);
  if ( (y2k(test.getFullYear()) == year) &&
       (month == test.getMonth()) &&
       (day == test.getDate()) )
      return true;
  else
      return false
}