var  hrefin = document.referrer;
var  artikel = document.URL;
artikel = artikel.replace("http://", "");
var temp = hrefin.split ("?");	
hrefstart = temp[0];

if ( hrefin.indexOf( "http://localhost" ) != -1)
{
	// hrefin = "buscafortunas";
}

if ( hrefstart.indexOf( "buscafortunas" ) == -1)
{
	if ( hrefin.indexOf( "http://" ) != -1)
	{
		hrefin = hrefin.replace("http://", "");
		document.refpic.src = "imgcnt.php?artikel=" + artikel + "&refer=" +hrefin;
	}
	else
	{
		document.refpic.src = "imgcnt.php?artikel=" + artikel + "&refer=DIREKT";
	}
}

function correo( )
{
	window.open( 'correo.php', 'MAIL', 'scrollbars=yes,width=440,height=500');
}

