/**
 * captures redirect event, redirects to selected index from <select> node
 * @author Peter Kruithof
 */
function onRedirectFromSelection(e)
{
    if (e) {
        cancelEvent(e);

        var target = getTarget(e);

        if (target) {
            var loc = target.options[target.selectedIndex].value;
            document.location.href = loc;
        }
    }
}
