var newablak;
function winOpen(url,n,width,height){
    var sw=screen.width;    
    var sh=screen.height;
    
    if(width=="maxw")
	width=sw-100;
    if(height=="maxh")
	height=sh-100;
	
    var left=sw?(sw-width)/2:0;
    var top=sh?(sh-height)/2:0;
    
    newablak=window.open(url,n,"width="+width+",height="+height+",top="+top+",left="+left+",directories=no,resizable=1,location=no,status=yes,toolbar=no,scrollbars=yes");
}

function showHide(div){
    var divElement=document.getElementById(div);
    if(divElement.style.display=="none"){
        divElement.style.display="block";
    }else{
        divElement.style.display="none";
    }
}
function flashfix(swf,w,h,name,bgcolor){
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'" id="'+name+'" align="middle">');
    document.write('<param name="allowScriptAccess" value="sameDomain">');
    document.write('<param name="movie" value="'+swf+'">');
    document.write('<param name="quality" value="high">');
    document.write('<param name="bgcolor" value="'+bgcolor+'">');
    document.write('<embed src="'+swf+'" quality="high" bgcolor="'+bgcolor+'" width="'+w+'" height="'+h+'" name="'+name+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
    document.write('</object>');
}
function elrejt(d){
    document.getElementById(d).style.display="none";
}
function kijelol(f,allapot){
    var len=f.length;
    for(i=0;i<len;i++){
        if(f.elements[i].type=="checkbox"){
            f.elements[i].checked=allapot;
        }
    }
}
function bookmarksite(title,url){
    if(window.sidebar){
        window.sidebar.addPanel(title,url,"");
    }else if(window.opera&&window.print){
        var elem=document.createElement("a");
        elem.setAttribute("href",url);
        elem.setAttribute("title",title);
        elem.setAttribute("rel","sidebar");
        elem.click();
    }else if(document.all){
        window.external.AddFavorite(url,title);
    }
}