<!--
function full(url)
{
 window.open(url);
}

function linkopen(url)
{
window.location.href=url;
}


function foruminfo(uid) {
    var xc =(screen.width - 700) / 2;
    var yc =(screen.height - 500) / 2;
    userwin = window.open('index.php?f=4&uid='+uid);
  }


function forumeloz(mid) {
    var xc =(screen.width - 532) / 2;
    var yc =(screen.height -  300) / 2;    
    userwin = window.open('forumeloz.php?msgid='+mid,'msgwin'+mid,'width=532,height=300,status=0,resizable=0,scrollbars=yes');
    userwin.moveTo(xc, yc);
  }
  


function Send(frmid)
{
document.getElementById(frmid).submit();
}

function Send2(frmid,fnc)
{
document.getElementById(frmid).btnclick.value=fnc;
document.getElementById(frmid).submit();
}

function mailmod(a) 
{ 
a.href=a.href.replace(/NOSPA-M./g, ''); 
return true; 
}

function statusch(a, inout)
{
if (inout) 
	window.status=a.href.replace(/NOSPA-M./g, '');
else 
	window.status=''; 
}

function HideIt(elem)
{
    document.getElementById(elem).style.display='none';
    document.getElementById('reflink').href="javascript:ShowIt('ref');";
}

function ShowIt(elem)
{
    document.getElementById(elem).style.display='block';
    document.getElementById('reflink').href="javascript:HideIt('ref');";
} 

function TesztWindow(frmid)
{
formid=document.getElementById(frmid);

win=window.open('','testwin','toolbar=0,resizable=1,scrollbars=1'); 
formid.target='testwin';
win.focus();

}

function View(wth,hei,src) 
{
srcp="imgview.php?width="+wth+"&height="+hei+"&src="+src;

view=window.open(srcp,'user','width='+wth+',height='+hei+',status=0,resizable=0');
var xc =(screen.width - wth) / 2;
var yc =(screen.height - hei) / 2;
view.moveTo(xc, yc);
}

function CommentDel(bid,bmid,cid)
{
if( confirm("Valóban törölni akarod a hozzászólást ?"))
window.location.replace("index.php?f=7&s=5&blogid="+bid+"&bm="+bmid+"&comment="+cid);
}

function BlankOpen(sender)
{
window.open(sender.href); 
return false;
}

//---------------------Webaudit---------------
WEBAUDIT=function() {
    
  this.WACID=null;
  this.WACIDName="WACID";
  
  
  this.getCookie=function(name)  {
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for(var i=0;i < ca.length;i++)
    {
            var c = ca[i];
            while (c.charAt(0)==' ') c = c.substring(1,c.length);
            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
    }
    return null;
  }
  
  this.setCookie=function(name,value,topDomain) {
    var date = new Date(2020,12,31,23,59,59);
    var expires = "; expires="+date.toGMTString();
    document.cookie = name+"="+value+expires+"; path=/; domain=" + topDomain;  
  }
  
  this.generateID=function(splitter) {
    var sp=(splitter) ? splitter : 'A';
    var now=new Date();
    return Date.parse(now.toGMTString()) + sp + Math.floor(Math.random()*1000000000);
  }
  
  this.getTopDomain=function(fullDomain) {
    var darabok=fullDomain.split('.');
    return darabok[(darabok.length-2)] + '.' + darabok[(darabok.length-1)];
  }
  
  this.getDomain=function(url) {
    var urlDarabok=url.split('/');
    return urlDarabok[2];
  }
  
  this.WACID=this.getCookie(this.WACIDName);
}


function WebAuditCode()
{
var wa=new WEBAUDIT();
var felbontas = "";
var same =  Math.floor(Math.random()*1000000);
var wa_url = "@u=";
var wa_referrer = "@r=";

if(wa.WACID==null)
{
  wa.WACID=wa.generateID('A');
  wa.setCookie(wa.WACIDName,wa.WACID,wa.getTopDomain(wa.getDomain(document.URL)));
}

same = same + "@c=" + wa.WACID;
if(screen) felbontas='@s='+screen.width+'x'+screen.height;
if(document.referrer) wa_referrer=wa_referrer+document.referrer;
if(document.URL) wa_url=wa_url+document.URL;
same = same + felbontas + wa_url + wa_referrer;

document.write('<!-- Medián WebAudit Habostorta B13 Blog 1/2 --><img src="http://audit.median.hu/cgi-bin/track.cgi?uc=11576387263496&dc=1&ui='+same+'" width="1" height="1" style="display:none;">');
}
//--------------------------------------------

function BannerBillboard()
{
var ord=Math.round(Math.random()*100000000);
document.write('<iframe width=330 height=247 scrolling=no frameborder=0 marginwidth=0 noresize marginheight=0 vspace=0 hspace=0 src="http://ad.adverticum.net/html.prm?zona=22610&ord='+ord+'"><scr'+'ipt language=JavaScript src="http://ad.adverticum.net/js.prm?zona=22610&nah=!ie&ord='+ord+'"></scr'+'ipt></iframe>');
}

function BannerLayer(st)
{
if(st==0)
if(!window.goAdverticum)document.write('<sc'+'ript src="http://img.adverticum.net/scripts/gwloader.js?ord='+Math.floor(Math.random()*1000000000)+'" type="text/javascript"><\/sc'+'ript>');
if(st==1)
if(window.goAdverticum)goAdverticum.addZone(35199);
}

function Poll(formid)
{
document.getElementById(formid).submit();
document.getElementById('pollcont').innerHTML='<span class="b13secolor" style="margin-right:13px;">Küldés folyamatban...</span>';
}

//--------------------------------------------

function BlogPoll(sender,poll)
{
ajax_blogpoll.reset();
ajax_blogpoll.setVar("blogid", sender.form.blogid.value );

if(poll)
{
var pvalue=0;
pvalue=getCheckedValue(sender.form.b_poll);
}

ajax_blogpoll.setVar("pollvalue", pvalue );

ajax_blogpoll.element = 'bpcontainer'; 
ajax_blogpoll.requestFile = "modules/blog_pollresult.php";
ajax_blogpoll.runAJAX();
}
//--------------------------------------------
function getCheckedValue(radioObj) 
{
	if(!radioObj)
		return 0;
	var radioLength = radioObj.length;
	if(radioLength == undefined)
		if(radioObj.checked)
			return radioObj.value;
		else
			return 0;
	for(var i = 0; i < radioLength; i++) 
		{
		if(radioObj[i].checked) {
			return radioObj[i].value;
		}
	}
	return 0;
}


//-->
