 function $(idek)
  {
    return document.getElementById(idek);
  }

  function checkLoginHaslo()
  {
    //if($('logLogin').value=='' || $('logPassword').value=='')
    //{
    //  alert('Wpisz login oraz haslo.');
    //}
    //else
    //{
      $('formLogowanie').submit();
    //}
  }

function overlib2(text,LEFT,CAPTION,tytul)
{
    //alert(text);
    //text=addslashes(text);
    //alert(text);
    if(text!="")
        {
    return overlib(text,LEFT,CAPTION,tytul);
        }
}

function addslashes (ch)
{
    ch = ch.replace(/\\/g, "\\\\");
    ch = ch.replace(/\'/g, "\'");
    ch = ch.replace(/\"/g," \\\"");
    return ch
}

