var PageDateFieldValue = "";
var character_groups={
  'special':/[\W]/g,
  'quotes':/['\''&'\"']/g,
  'onlyints':/[^\d]/g,
  'onlyletters':/[\W&\d]/g
}
function populateOtherDateFields(FieldValue)
{
    if (PageDateFieldValue != FieldValue)
    {
	if (Date.isDate(FieldValue))
	{
	    alert("FieldValue = " + FieldValue);
	    MyDate = new Date(new Date().equals(Date.parse(FieldValue)));
	    alert("MyDateMonth = " + MyDate.getMonth());
	}
    }
}
function setPointer(theRow, thePointerColor)
{
    if (thePointerColor == '' || typeof(theRow.style) == 'undefined') {
        return false;
    }
    if (typeof(document.getElementsByTagName) != 'undefined') {
        var theCells = theRow.getElementsByTagName('td');
    }
    else if (typeof(theRow.cells) != 'undefined') {
        var theCells = theRow.cells;
    }
    else {
        return false;
    }

    var rowCellsCnt  = theCells.length;
    for (var c = 0; c < rowCellsCnt; c++) {
        theCells[c].style.backgroundColor = thePointerColor;
    }

    return true;
}
function stop_character_groups(object, groupname)
{
  object.value = object.value.replace(character_groups[groupname],'');
}
function stop_and_uppercase_character_groups(object, groupname)
{
  object.value = object.value.replace(character_groups[groupname],'');
  object.value = object.value.toUpperCase();
}

function calendar_onmouseover()
{
   if (timeoutId)
   {
      clearTimeout(timeoutId);
   }
   window.status='Show Calendar';
   return true;
}

function calendar_onmouseout()
{
   if (timeoutDelay)
   {
      calendarTimeout();
   }
   window.status='';
}