//var rootUrl= "/tw_new/";
function showAddress(elementId)
{
	var adresse = '<p>Windheimstraße 21<br/>30451 Hannover</p><p><a href="mailto:tim@timwahrendorff.de" >&gt;tim@timwahrendorff.de</a> </p>';
	
	document.getElementById(elementId).innerHTML = adresse;
}
function showSomethingInId(elementId, something)
{
	//var adresse = '';
	
	document.getElementById(elementId).innerHTML = something;
}
function checkIfSaved(){
	Check = confirm("Page is not saved. Continue?");
		
	if (Check == false)
	{
		return false;
	}
	else
	{
		return true;
	}
}
function open_url(url){
  MeinFenster = window.open(url, 'popup');
  MeinFenster.focus();
}
function eraseCheck()
{
   Check = confirm("Wirklich löschen?");
   if (Check==true)
   {
   return true;
   }
   else {return false}
}
function sendCheck()
{
   Check = confirm("Willst Du den Newsletter wirklich schon abschicken?");
   if (Check==true)
   {
		return true;
   }
   else {return false}
}

function checkInvite()
{
	Check = confirm("Nutzer einladen und neues Passwort zusenden?");
   if (Check==true)
   {
   return true;
   }
   else {return false}
}
function imageChange(root,bt_name,bt_zustand)
{
	if(bt_name=='login')
	{
		if(bt_zustand==0)
		{
		normal = new Image();
		normal.src = root+"/css/bilder/icons/door.png";     /* erste Standard-Grafik */
		window.document.images[login].src = normal.src;
		}
		if(bt_zustand==1)
		{
		high = new Image();
		high.src = root+"/css/bilder/icons/door_in.png"; /* erste Highlight-Grafik */
		window.document.images[login].src = high.src;
		}
	}
	if(bt_name=='logout')
	{
		if(bt_zustand==0)
		{
		normal = new Image();
		normal.src = root+"/css/bilder/icons/door.png";     /* erste Standard-Grafik */
		window.document.images[logout].src = normal.src;
		}
		if(bt_zustand==1)
		{
		high = new Image();
		high.src = root+"/css/bilder/icons/door_out2.png"; /* erste Highlight-Grafik */
		window.document.images[logout].src = high.src;
		}
	}
    
}
function chkFormular () {   if (document.Formular.User.value == "") { 
    alert("Bitte Ihren Namen eingeben!"); 
    document.Formular.User.focus(); 
    return false; 
   } 
 }