if( typeof play == "undefined" ) { play = {} }

play={
	addComm:function(ids)
	{
		this.btn=$('smb');
		this.btn.disabled=true;
		this.postautor=$('postautor');
		//this.title=$('title');
		this.commtxt=$('commtxt');
		var go=true;
		if((this.postautor.value).trim(this.postautor.value)==''){
			this.postautor.className='err';go=false;
		}else{
			this.postautor.className='nmr';
		}
		//if((this.title.value).trim(this.title.value)==''){
		//	this.title.className='err';go=false;
		//}else{
		//	this.title.className='nmr';
		//}
		if((this.commtxt.value).trim(this.commtxt.value)==''){
			this.commtxt.className='err';go=false;
		}else{
			this.commtxt.className='nmr';
		}
		if(go)
			ajax_addComment({author:this.postautor.value,/*title:this.title.value,*/comm:this.commtxt.value,id:ids});
		else
			this.btn.disabled=false;
	}
}
