function decideContent(url) {
	if(document.location.href.indexOf('kinosaal')>=0) {
		getAdvContent(url);	
	} else {
		getContent(url)
	}
}

function getContent(url)
{
	$('centercontent').hide();
	$('popup_content').setStyle({
		display: 'block',
		background: 'none'
	});
	new Ajax.Updater('popup_content', url, {asynchronous:true, evalScripts:true, method:'post'});

	//return true;
}

function restoreContent()
{
	$('popup_content').hide();
	if($('centercontent'))
	{
		new Effect.Appear('centercontent');
	}
	else if($('centercontent_cinema'))
	{
		new Effect.Appear('centercontent_cinema');
	}
	return true;
}

function checkLength(el,len) {
	if(el.value.length>len) {
		el.value = el.value.substr(0,len);
	}
}
