function nextField(that, a_field)
{
    if ($(that).val().length > 1)
    {
        $('#'+a_field).focus();
    }
}


function maximizeMediaplayer()
{
    $('#player').css('width', 820+'px');
    $('#player').css('height', 718+'px');
}

function minimizeMediaplayer()
{
    $('#player').css('width', 351+'px');
    $('#player').css('height', 307+'px');
}


function showZoWeg(url, title)
{
    $('#popup').dialog(
    {
        title: title,
        draggable: false,
        resizable: false,
        width: 660,
        height: 560,
        modal: true,
        autoOpen: true,
        open: function()
        {
            $('#popup').html("<iframe allowTransparency='true' frameborder='0' style='width: 630px; height: 500px;' src='"+url+"' />");
        }   
    });
}


function setZoweg()
{
    //var iDoc = document.getElementById('zoweg');
    //alert(iDoc);
    //alert(iDoc.contentDocument.body.clientHeight); //.height);   
}
