function showCookiesWarning(_id)
{
	if(!document.cookie ) {
		document.cookie = "testCookie=1; path=/";
		if( !document.cookie) {
			var node=document.getElementById(_id);
			if( node ) node.style.display='block';
		}
	}
}
function switcher(_id)
{
	var node = document.getElementById(_id);
	if( !node ) return false;
	
	if( "close"==node.className )
		node.className="open";
	else if ("open"==node.className )	
		node.className="close";
	else
		return false;
	return true;	
}

function charsCnt(_fieldId, _cntId, _maxLen)
{
	this.cntNode=document.getElementById(_cntId);
	this.field=document.getElementById(_fieldId);
	this.maxLen=_maxLen;
	
	var thisObj=this;
	
	this.field.onkeyup=function()	{	thisObj.showCnt();	}
	this.field.onchange=function()	{	thisObj.showCnt();	}
	this.field.setAttribute("maxlength",this.maxLen);

	
	this.showCnt=function()
	{
		if( this.field.value.length>this.maxLen )
			this.field.value=this.field.value.substr(0,this.maxLen);
		this.cntNode.innerHTML=(this.maxLen-this.field.value.length);
	}
	
	this.showCnt();
}
