﻿
var appForum=new Object();
appForum._data=new Array();

appForum.getData=function(strKey) { return appForum._data[strKey]; }
appForum.setData=function(strKey,strValue) { appForum._data[strKey]=strValue; }


appForum.doSwitch=function(strer)
{
	return dcs.pages.doBlockSwitch(strer,strer+"_icon");
}

appForum.doVoteCheckUp=function()
{
	var tmpDeadline=this.getData("vote.deadline");
	var tmpDisplay="";
	if (this.getData("vote.isoverdue")=="yes") tmpDisplay="none";
	else tmpDisplay="";
	if (tmpDeadline=="" || tmpDeadline=="always") tmpDeadline=this.getData("lang.vote.forover");
	$("forum_vote_deadline").innerHTML=tmpDeadline;
	$("forum_vote_button").style.display=tmpDisplay;
}

appForum.doExpressJump=function(strURL,strObject)
{
	var tmpValue=strObject.options[strObject.selectedIndex].value;
	if(tmpValue!="")
	{
		location.href=dcs.common.toDisp(strURL,"fid",tmpValue);
	}
}