function sendAnswear()
{
    new Ajax.Request(
        "/question_of_the_day/answear/",
        {
            evalScripts:true,
            parameters:$('questionOfTheDay').serialize(),
            onComplete:function(){
                loadQuestion();
            }
        }
    );
}
function loadQuestion()
{
    new Ajax.Updater(
        "question_box",
        "/question_of_the_day/load/",
        {
            evalScripts:true
        }
    );
}
function showCurrent()
{
    $('previousQuestion').style.display = "none";
    $('currentQuestion').style.display = "block";
}
function showPrevious()
{
    $('currentQuestion').style.display = "none";
    $('previousQuestion').style.display = "block";
}
function change_right_side()
{
    if($('news_box').style.display == 'block') {
        $('que_box').style.display = 'block';
        $('news_box').style.display = 'none';
    } else {
        $('news_box').style.display = 'block';
        $('que_box').style.display = 'none';
    }
    new Ajax.Request('/pages/change_right_block');   
}
