// JavaScript Document
function replaceHtml(el, html) {
	var oldEl = typeof el === "string" ? document.getElementById(el) : el;
	/*@cc_on // Pure innerHTML is slightly faster in IE
		oldEl.innerHTML = html;
		return oldEl;
	@*/
	var newEl = oldEl.cloneNode(false);
	newEl.innerHTML = html;
	oldEl.parentNode.replaceChild(newEl, oldEl);
	/* Since we just removed the old element from the DOM, return a reference
	to the new element, which can be used to restore variable references. */
	return newEl;
};

function addchat(ide,ids,ime){
        var divTag = parent.document.createElement("div");
            prsTag = parent.document.createElement("div");
        divTag.id = ids;
        prsTag.id = ime;
		 
        
		divTag.setAttribute("align","center");
       
        /*divTag.style.margin = "0px auto";*/
        
		
        divTag.className ="dynamicDiv";
        prsTag.className ="prsnlcht";
        
		divTag.innerHTML = ide;
		
        prsTag.innerHTML = ide;
	
		parent.document.getElementById('cht_l').appendChild(divTag);
		parent.document.getElementById(ids).appendChild(prsTag);
				replaceHtml(prsTag,ime);	
    }
function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (parent.document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}



function reziselist() {
 	var h=window.innerHeight; 
	 document.getElementById('listbox').style.height="80%";
}