function objGet(x) {
   if (typeof x != 'string') return x;
   else if (Boolean(document.getElementById))
      return document.getElementById(x);
   else if (Boolean(document.all))
      return eval('document.all.'+x);
   else if (Boolean(document.ids))
      return eval('document.ids.'+x);
   else
      return null;
}

  function openWindow(url){
    wasOpen  = false;
    win = window.open(url);    
    return (typeof(win)=='object')?true:false;
  }
  function openWindowSize(url,popis,width,height){
   lWidth= (window.screen.width/2)-(width/2);
   lHeight= (window.screen.height/2)-(height/2);
    wasOpen  = false;
    win = window.open(url,popis,'width='+width+',height='+height+',left='+lWidth+',top='+lHeight);    
    return (typeof(win)=='object')?true:false;
  }

function openWindow2(url,width,height) {
	window.open(url,'popis','width='+width+',height='+height+',scrollbars=1');
}

function addsmilie(thesmilie) {
	objGet("vzkaz").value += thesmilie+" ";
	objGet("vzkaz").focus();
}
