/* ------------------------------------------------------------ */

function UnCryptMailto( s )
{
	var n = 0;
	var r = "";
	for( var i = 0; i < s.length; i++)
	{
		n = s.charCodeAt( i );
		if( n >= 8364 )
		{
			n = 128;
		}
		r += String.fromCharCode( n - 1 );
	}
	return r;
}

function UnCryptM( s, x )
{
	location.href=UnCryptMailto( s ) + ' ' + x;
}

//---------------------------------------------------------------------------//

function showhide(id)
{
	if (document.getElementById){
		obj = document.getElementById(id);
		if (obj.style.display == "none"){
			obj.style.display = "";
		} else {
			obj.style.display = "none";
		}
	}
}


//---------------------------------------------------------------------------//

var popup_offen = false;

function PopUp(MyUrl,MyName,MyFeatures)
{

	//JavaScript:"PopUp(urlparam , 'Fenstername', 'scrollbars=0,resizable=1,width=440,height=425')"

	if(popup_offen == true){popup.close();}
	
	popup = window.open(MyUrl, MyName, MyFeatures);
	popup_offen = true;	
	popup.focus();
}

function popup_close()
{
	//popup.focus();
	popup.close();
}

//---------------------------------------------------------------------------//