/*

   Copyright (C) 2010, Bálint Kis (balint@k-i-s.net)
   All rights reserved.

*/

function toggleDisplay(hide, show) {
    var hideID = window.document.getElementById(hide);
    var showID = window.document.getElementById(show);
    showID.style.display = hideID.style.display;
    hideID.style.display = 'none';
}

function move_horizontal(identifier, offset) {
    var element_to_move = window.document.getElementById(identifier);
    var left_value = parseInt(element_to_move.style.left.split('px')[0]);
    if (!left_value)
        left_value = -30;
    element_to_move.style.left = left_value + offset + "px";
}

function clear_box(box_id, default_value) {
    if (document.getElementById(box_id).value == default_value)
        document.getElementById(box_id).value="";

    return false;
}

