function Redirect( sId )
{
	str=document.location.hash,idx=str.indexOf('#');
	if(idx>=0) str=str.substr(1);
	if( window.name != "m" && ( sId != str) )
	{
		if (document.location.host.toLowerCase().indexOf("forarifo.") < 0)
		{
			window.location.replace("index.html#" + sId);
			return 1;
		}
		else
		{
			Pfad = document.location.pathname;
			window.location.replace("http://www.vexilli.net/ForaRifo/index.html#http://www.vexilli.net/ForaRifo" + Pfad);
		}
	}
	return 0;
}
function Load()
{
	str=document.location.hash,idx=str.indexOf('#');
	if(idx>=0) str=str.substr(1);
	if(str) m.location.replace(str);
}

function schreib(nn, dd) 
{
	function evtl(sub) {ii = (document.title.toLowerCase().indexOf(sub.toLowerCase())>=0) ? sub.replace(/\s/, "") : ii}

	if (!nn) nn="spieler"; // gilt leider auch bei nn="" !
	else
	{
		c=".com";
		if     (nn=="Thomas")	{nn="arandeth"; dd="paradise.net.nz"}
		else if(nn=="Edward")	{nn="MoonBase"; dd="Qnet"+c}
		else if(nn=="Bondurand"){nn="bondurand.talents"; dd="imageforce"+c}
		else if(nn=="Max")	{dd="anasuya"+c}
		else if(nn=="Stolfi")	{dd="bestway.com.br"}
		else if(nn=="André")	{nn="superpinga"; dd="hotmail"+c}// ?oder? {nn="estontetso"; dd="yahoo.co.uk"}
		else if(nn=="David")	{nn="dharper"; dd="golden.net"}
		else if(nn=="Kjell")	{nn="formative"; dd="hotmail"+c}
		else if(nn=="Mike")	{nn="mikeham"; dd="jaggedblue"+c}
		else if(nn=="George")	{nn="egroeg"; dd="tmlp"+c}
		else if(nn=="Bo")	{nn="bernvill"; dd="swipnet.se"}
		else if(nn=="Risto")	{nn="tunjo"; dd="saunalahti.fi"}
	}
	if(!dd)
	{
		ii="";
		evtl("vexilli.net");
		evtl("feniz");
		evtl("Fora Rifo");
		evtl("ulnovabad");
		evtl("Geographic"); 
	}
	else	ii=dd;

	post="ma"; an="to"; bei="&#x0040;"; vex="vex"; i="i"; l="l"; netz="net"; dp=":"; pt="."; 
	dom = (ii.indexOf(".")>=0) ? ii : ((ii=="") ? "" : ii+pt) + vex+i+l+l+i+pt+netz;
	los = window.open(post+i+l+an+dp+nn+bei+dom); // dazu <a href="javascript:schreib(...)">...</a>
}
