function go()
{
	x = document.theform.nick.value;
	if(x.length < 11)
	{
	  return 0;
	}
	var displayURL = x.replace("http://", "");
	y = document.location.search.substring(1,11);
	y = "";
	document.theform.thelink1.value = "http://anon.b-network.org/?" + x + "" + y;
	document.theform.thelink2.value = "<a href=\"http://anon.b-network.org/?" + x + "" + y + "\">Anonym zu " + displayURL + "</a>";
	document.theform.thelink3.value = "[url=http://anon.b-network.org/?" + x  + "" + y + "]Anonym zu " + displayURL + "[/url]";
	return false;
}
function generateCode(formName, displayIn)
{
	var script_path = "http://anon.b-network.org/anonymize.js";
	var keywords = document.forms[formName].elements["keywords"].value;
	keywords = keywords.replace(" ", "");
	var keywords_array = new Array();
	var the_code = "";
	keyword_array = keywords.split(",");
	the_code += "<script src=\"" +  script_path + "\" type=\"text/javascript\"></script>\n\n";
	the_code += "<script type=\"text/javascript\"><!--\n";
	the_code += "protected_links = \"" + keyword_array.join(", ") + "\";\n\n";
	the_code += "auto_anonymize();\n";
	the_code += "//--></script>\n";
	displayCode(displayIn, the_code);
}
function displayCode(displayIn, the_code)
{
	var the_element = document.getElementById(displayIn);
	the_element.value = "";
	the_element.value = the_code;
}
