");
}
function topicPaging(tid,replies)
{
var total = replies/topicpagesize;
if ((total % 1) > 0)
total = (total - (total % 1)) + 1;
if (total > 1)
{
document.write("
");
for (x = 1; x <= total; x++)
{
if (x && ((x % 15) == 0)) document.write("
")
}
}
function findMemberName(id)
{
var x = 0;
while ((x < authors.length) && (authors[x] > 0))
{
if (authors[x] == id) return(authors[x+1]);
x += 2;
}
return("");
}
// code to switch to another page.. called by internal code only
function ChangePage()
{
document.PageNum.submit();
}
function t_options_bar(ndays,sort_order,pagenum,totalpages)
{
var mainURL = link+"?fa="+forum_id;
var mainImage = getForumIcon(forum_id);
var mainTitle = getForumTitle(forum_id);
var mainTooltip = mainTitle;
document.write("
");
if ((whichauthor == 0) || (whichauthor == memberID))
{
forumMods = "-- مواضيعك فقط --";
}
else if (whichauthor > 0)
{
forumMods = "مواضيع العضو: " + whichname;
}
else if (forumMods.length > 0)
{
var splitArray = forumMods.split("|");
forumMods = "
"
+ "
" + forum_moderated_by + ":
";
y = 0;
x = 0;
while (x < splitArray.length)
{
if (y == 4)
{
forumMods += "
");
document.write("");
if (whichauthor >= 0) document.write("");
document.write(page_selector_title+" ");
document.write("
");
if (totalpages == 0) document.optionsForm.pg.value = "";
document.write("
إذهب إلى أرشيف منتدى: ");
forumsSelectorArchive();
document.write("
");
document.write("
");
if (forumExtra.length > 0)
document.write(forumExtra);
}
function t_show_topics()
{
var x = 0;
if (topics[x+1] == 0)
{
document.write("
"
+ forum_no_topics_found + "
");
}
else
{
while ((x < topics.length) && (topics[x+1] > 0))
t(topics[x++],topics[x++],topics[x++],topics[x++],topics[x++],topics[x++]);
}
}
function submitForm() {if (document.optionsForm.pg.value == -1) document.location.href = link + "?f=" + forum_id ; else document.optionsForm.submit(); return 0;}
function render_content()
{
document.write("");
t_show_topics();
t_footer();
t_table_close();
}
function forumsSelectorArchive()
{
// note the form tag is opened in main_options_area() so that the table remains small
document.write("");
}