/*FORUM
------------------------------------------------------------------------------*/


function changeRow(color,id){
  new Effect.Morph(id, {
    style: 'background:#'+color+';',
    duration: 0.3
  });
}




function hightlightMsg(cls, txt){
	var msg = $('msg');
	msg.addClassName(cls).update(txt);
  new Effect.Appear(msg, { from: 0, to: 1.0, duration: 0.7 })
}

function checkTheme(){
	if($('topic')){
		if($('topic').value == ''){
  		hightlightMsg('msg_nok','bitte einen titel angeben!');
    }
	}
  if($('post_content').value == ''){
  	hightlightMsg('msg_nok','bitte einen beitrag angeben!');
  }else{
    document.forms["postform"].submit();
  }
}

function openThemeForm(cat_id){
	var cat_id;
  alert(cat_id);
}
