// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
function toggleTextOrList(fieldName){
    $(fieldName + '_text').toggle();
    $(fieldName + '_list_link').toggle();
    $(fieldName).toggle();
    $(fieldName + '_text_link').toggle();    
    return false;
}

function updateTime(sourceId,targetId){
 var targetValue = $F(targetId)
 if(targetValue.empty) $(targetId).setValue($F(sourceId))   
}