var targ;
function show_forced(str, text, is_new)
{
	targ = str;
	document.getElementById('myforced').style.left = 400;
	document.getElementById('myforced').style.display = 'block';
	window.scrollTo(0,500);
	if (is_new == 1)
	{
		document.getElementById('btext').innerHTML="Bitte auf den obrigen Partner-Link klicken um zum gewünschten <ablink><span style=\"color: #0000CC;\">Eintrag " + text + "</span></ablink> zu gelangen!";
	}
	else
	{
		document.getElementById('btext').innerHTML="Bitte auf den obrigen Partner-Link klicken um zur gewünschten <ablink><span style=\"color: #0000CC;\">Kategorie " + text + "</span></ablink> zu gelangen!";
	}
}

var t = setTimeout("closeadlayer()", 20000);

function closeadlayer(page)
{
	document.getElementById('myadlayer').style.display = 'none';
}

function openlink(page)
{
	window.open(targ,'mainwindow' + Math.floor(Math.random()*101));
	
	document.getElementById('myforced').style.left = -2000;
	document.getElementById('myforced').style.display = 'none';
	
	var width;
	var height;
	width = (screen.width > 0) ? screen.width : 1024;
	height = (screen.height > 0) ? screen.height : 768;
	height = Math.round(0.7 * height);
	height = height - 80;
	
	var windowprops = "width=" + width + ",height=" + height + ",top=50,left=10,location=no,menubar=no,toolbar=no,scrollbars=no,resizable=no";
	newWindow = window.open(page,'forcedpopup',windowprops);

	window.focus();
}

