/**
 * scripts.js - soubor s JavaScriptovymi funkcemi
 * (c) 2005 Atway CZ s.r.o., Tomas Holy
 * vytvoreni souboru: 1.8.2004 22:00
 */

function add_smile(t)
{ 
    document.all.AddMessage.Komentar.value += '' + t + '';
}

function noveokno(theURL,winName,features)
{ //v2.0  otevreni oken
    okno=window.open(theURL,"popupwin",features);
    okno.focus();
    //var locX = (screen.width/2)-(wdth/2);
    //var locY = (screen.height/2)-(hght/2);
    //okno.moveTo(locX,locY);
    //okno.resizeTo(screen.width,screen.height-30);
}

function nove_okno(stranka, wdth, hght)
{
    okno = open(stranka, "popupwin", "directories=0,menubar=0,location=0,resizable=0,scrollbars=1,status=0,toolbar=0,height="+hght+",width="+wdth); 
    okno.focus();
    var locX = (screen.width/2)-(wdth/2);
    var locY = (screen.height/2)-(hght/2);
    okno.moveTo(locX,locY);
}

function MM_openBrWindow(theURL,winName,features)
{ //v2.0  otevreni oken
    okno=window.open(theURL, "popupwin", features);
    okno.focus();
    /*var locX = (screen.width/2)-(wdth/2);
    var locY = (screen.height/2)-(hght/2);
    okno.moveTo(locX,locY);*/
}

function showAktualities()
{
    document.all.StareAktuality.style.display = '';
    document.all.Zobrazit.style.display = 'none';
}

//vyskakovací okýnko (Pop up)
function index_form()
{
    okno = window.open("PHP/Pop_Up.php","newroom","menubar=no,scrollbars=no,toolbar=no,location=no,directories=no,status=no,resizable=no,copyhistory=no,top=150,left=100,height=250,width=400");
    var locX = (screen.width/2)-(420/2);
    var locY = (screen.height/2)-(180/2);
    okno.moveTo(locX,locY);
}
//index_form();


function foto_window(stranka, wdth, hght)
{
    okno=window.open(stranka, "popupwin", "directories=0,menubar=0,location=0,resizable=0,scrollbars=0,status=0,toolbar=0,height="+hght+",width="+wdth); 
    okno.focus();
    var locX = (screen.width/2)-(wdth/2);
    var locY = (screen.height/2)-(hght/2);
    okno.moveTo(locX,locY);
    okno.resizeTo(wdth,hght);
}
