// filename: gen.js
// date: 2010.01.26

function goToWebcode()
{
	webcode = document.forms.webcodeform.textfield.value;
	if (webcode == 'Webcode'){window.location = 'index.php';return false;}
	seite=webcode.substring(0,3);

	if (seite=="649")
	{
		detail=webcode.substring(3);
		window.location = 'index.php?id='+seite+"&idkurs="+detail;
	}
	else
	{	
		window.location = 'index.php?id='+webcode;
	}
	return false;
}
