 function popupkep(kep,scroll)
    {
      if (scroll==null) {scroll='no';}
      page='../favat/popup.php?kepfile='+kep+'&scroll='+scroll;
      w = 1;
      h = 1;
      l = 0;
      t = 0;
      settings = 'scrollbars=' + scroll + ',resizable=no,status=no,menubar=yes,width=' + w + ',height=' + h + ',left='
                 + l + ',top=' + t + ',screenX=' + l + ',screenY=' + t;
      win = window.open(page, 'popup21', settings);
      win.focus(); 
    }

function popupleiras(page, scroll, w, h)
    {
    if (w == null)
        {
        w = 721;
        }

    if (h == null)
        {
        h = 452;
        }

    h = h - 20;

    if (scroll == null)
        {
        scroll = 'no';
        }

    l = (window.screen.width - (w + 10))/2;
    t = (window.screen.height - (h + 75 + 62))/2;
    settings = 'scrollbars=' + scroll + ',resizable=no,status=no,menubar=no,width=' + w + ',height=' + h + ',left='
                 + l + ',top=' + t + ',screenX=' + l + ',screenY=' + t;
    win = window.open(page, 'popup1', settings);
    win.focus();
    }

function popupsitemap(page, scroll, w, h)
    {
    if (w == null)
        {
        w = 570;
        }

    if (h == null)
        {
        h = 430;
        }

    h = h - 20;

    if (scroll == null)
        {
        scroll = 'yes';
        }

    l = (window.screen.width - (w + 10))/2;
    t = (window.screen.height - (h + 55 + 62))/2;
    settings = 'scrollbars=' + scroll + ',resizable=no,status=no,menubar=yes,width=' + w + ',height=' + h + ',left='
                 + l + ',top=' + t + ',screenX=' + l + ',screenY=' + t;
    win = window.open(page, 'popupsitemap', settings);
    win.focus();
    }

function popupfull(page)
    {
        w = (window.screen.width - 10);
        h = (window.screen.height- 35);
        scrollb = 'no';


    l = (window.screen.availWidth - (w + 10))/2;
    t = (window.screen.height - (h + 35))/2;
    settings = 'scrollbars=' + scrollb + ',resizable=yes,status=nos,menubar=no,width=' + w + ',height=' + h + ',left='
                 + l + ',top=' + t + ',screenX=' + l + ',screenY=' + t;
    win = window.open(page, 'popup2', settings);
    win.focus();
    }



function popupfull_a(page)
    {
        w = (window.screen.width - 10);
        h = (window.screen.height- 35);
        scrollb = 'no';

    l = (window.screen.width - (w + 10))/2;
    t = (window.screen.height - (h + 35))/2;
    settings = 'scrollbars=' + scrollb + ',resizable=yes,status=no,menubar=no,width=' + w + ',height=' + h + ',left='
                 + l + ',top=' + t + ',screenX=' + l + ',screenY=' + t;
    win = window.open(page, 'popup_editor', settings);
    win.focus();
    }

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}  


