var incFrm;
var incDiv;
var locSrch;
var y;
var n;
var www = "http://"+document.domain;
function getcontent(inc,incDiv,w,h,resz)
{
var straturl=www+"/wesima_extra/includes/getcontent.php?wesima=y&template="+template;
if (typeof artid !='undefined')
straturl += "&artid="+artid;
if (typeof pg !='undefined')
straturl += "&pg="+pg;
if (typeof r2author !='undefined')
straturl += "&r2author="+r2author;
if (typeof enable_comments !='undefined')
straturl += "&enable_comments="+enable_comments;
if (typeof nbid !='undefined')
straturl += "&nbid="+nbid;

straturl += "&inc="+inc;
    locSrch=window.location.href.split('?');
if (locSrch.length > 1)
{
    locSrch=locSrch[1];
	straturl += "&"+locSrch;
}
else
{
if (typeof catid !='undefined')
straturl += "&catid="+catid;
}
if (inc=="adverts")
straturl=www+"/wesima_extra/includes/adverts/adverts.scr.php";
incFrm=inc+"Frm";
document.getElementById(incDiv).innerHTML = "<iframe id="+incFrm+" name="+incFrm+" ALLOWTRANSPARENCY='true' src='"+straturl+"' onload='setTimeout(\"getcon("+incFrm+","+resz+")\",200)' width="+w+" height="+h+" marginwidth=0 scrolling=no marginheight=0 frameborder=0 vspace=0 hspace=0></iframe>";
}
function getcon(ifrm,resz)
{
var frmName = ifrm.name;
if (resz==1)
{
document.getElementById(frmName).style.height=document.frames[frmName].document.body.scrollHeight;
}
}


