function checkSearch()
{
	var result = true;
	if (document.forms['search'].elements['searchvalue'].value == "" || document.forms['search'].elements['searchvalue'].length < 3)
	{
		alert("Fehler! Ihr Suchbegriff muss mindestens 3 Zeichen lang sein.");
		document.forms['search'].elements['searchvalue'].focus();
		result = false;
	}
	return result;
}

function popupRS(url, name, width, height)
{
	p = window.open(url, name, 'dependent=yes,width='+width+',height='+height+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=1');
	if (p)
		p.focus();
}

function goQuickLink(val)
{
	findme1 = val.search(/anfahrt/);
	findme2 = val.search(/newsletter/);
	if (findme1 != -1)
	{
		popupRS('http://kontakt.kunzmann.de/anfahrt.php?lang=de&standort=stockstadt','kunzmann_anfahrt',672,750);
	}
	else if (findme2 != -1)
	{
		popupRS('http://kontakt.kunzmann.de/newsletter.php?list=13','kunzmann_nlabo',600,600);
	}
	else
	{
		self.location.href = val;
	}
}


