/*
 * Version: $Revision: 47507 $
 * Author: BeSite <info@besite.nl>
 * Copyright 2008-2011 BeSite
 */

var timeHoursValue = new Array();

function TimeHoursKeyUp( eElement, iIndex, sDefault )
{
    if ( !timeHoursValue[iIndex] )
    {
        timeHoursValue[iIndex] = "---";
    }
    if ( eElement.value.length >= 2 && timeHoursValue[iIndex] != eElement.value && !( eElement.value == sDefault && timeHoursValue[iIndex] == "---" ) )
    {
        var min = document.getElementById( "CalendarTimeMinutes" + iIndex );
        if ( min )
        {
            min.focus();
            if ( typeof min.select == 'function' ) // if input
            {
                min.select();
            }
        }
    }
    timeHoursValue[iIndex] = eElement.value;
}
