function removeInputTip(objectId, standartTxt){
	if(document.getElementById(objectId).value == standartTxt){
		document.getElementById(objectId).value = "";
		document.getElementById(objectId).style.color = "#000000";
	}
}

function printFlash(divID,url,width,height,param,flashvars)
{
	nb = Math.ceil(Math.random()*1000000);
	var d = document.getElementById(divID);
	var arrParam = param.split(",");
	var strIE = "";
	var strFF = "";


	if(arrParam[0] != '')
	{
		for(var c=0;c<arrParam.length;c++)
		{
			var spar = arrParam[c].split("=");
			strIE += "<param name='" + spar[0] + "' value='" + spar[1] + "' />";
			strFF += spar[0] + "='" + spar[1] + "' ";
		}
	}
	if(flashvars != '')
	{
		strIE += "<param name='FlashVars' value=\"" +  flashvars + "\" />";
		strFF += "flashvars=\"" + flashvars + "\" ";
	}

	d.innerHTML = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' width='" + width + "' height='" + height + "' id='id_" + nb + "' align='middle'><param name='allowScriptAccess' value='always' /><param name='wmode' value='transparent' /><param name='movie' value='" + url + "' /><param name='quality' value='high' />" + strIE + "<embed src='" + url + "' wmode='transparent' quality='high' " +  strFF + " width='" + width + "' height='" + height + "' name='nm_" + nb + "' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";
}

function popup(newLink, newWidth, newHeight)
{
	var tm = new Date();
	var hndl = "rro_win_"+tm.getTime();
	window.open(newLink,hndl,"scrollbars=no,resizable=yes,status=no,height=" + newHeight + ",width=" + newWidth);
}

<!-- Popup mit Scrollballken
function popup_scroll(newLink, newWidth, newHeight)
{
	var tm = new Date();
	var hndl = "rro_win_"+tm.getTime();
	window.open(newLink,hndl,"scrollbars=yes,resizable=yes,status=no,height=" + newHeight + ",width=" + newWidth);
}
//Funktion, die den HTTP-Request je nach Browser erstellt
function create_HTTP_con()
{

	if(window.XMLHttpRequest)
	{
		HTTP_con = new XMLHttpRequest();
		return true;
	}
	else if(window.ActiveXObject)
	{
		HTTP_con = new ActiveXObject("Microsoft.XMLHTTP");
		return true;
	}
	else
	{
		return false;
	}
}

//Funktion zum Lesen eines Files per AJAX
function readFile(path, target)
{

	if(create_HTTP_con())
	{

		HTTP_con.onreadystatechange = function()
		{
			if(HTTP_con.readyState == 4)
			{
				res = HTTP_con.responseText;

				document.getElementById(target).innerHTML = res;
			}
		}
		HTTP_con.open ('GET', path, true);
	}
		HTTP_con.send ('');

}

function check(url,question)
{
	dcsn = confirm(question);
	if(dcsn == true)
	{
		location.href = url;
	}

}


//Navigations-Funktionen
function absLeft(el) {
 return (el.offsetParent)?
 el.offsetLeft+absLeft(el.offsetParent) : el.offsetLeft;
}
function absTop(el) {
 return (el.offsetParent)?
 el.offsetTop+absTop(el.offsetParent) : el.offsetTop;
}

getAbsolutePos = function(el) {
	var SL = 0, ST = 0;
	var is_div = /^div$/i.test(el.tagName);
	if (is_div && el.scrollLeft)
		SL = el.scrollLeft;
	if (is_div && el.scrollTop)
		ST = el.scrollTop;
	var r = { x: el.offsetLeft - SL, y: el.offsetTop - ST };
	if (el.offsetParent) {
		var tmp = this.getAbsolutePos(el.offsetParent);
		r.x += tmp.x;
		r.y += tmp.y;
	}
	return r;
};

function hideMen_delay ()
{
	tmout=setTimeout("hideMen()",300);
}



function shMen (tblnb)
{
	clearTimeout(tmout);
	hideMen();
	chStyle(tblnb);

	mc = document.getElementById("menc_"+tblnb);
	if (navigator.appVersion.charAt (0)<'5')
	{
		var absL = absLeft(document.getElementById("men_"+tblnb));
		var absT = absTop(document.getElementById("men_"+tblnb)) + 20;
	}
	else
	{
		pos = getAbsolutePos(document.getElementById("men_"+tblnb));
		var absL = pos.x;
		var absT = pos.y + 20;
	}

	mc.style.left=absL+"px";
	mc.style.top=absT+"px";
	mc.style.zIndex="1";
	mc.style.visibility='visible';
}

function chkNl(e,x)
{

	var key;
	if(x == "nl")
	{
		if(window.event)

				key = window.event.keyCode;

		else
		{

				key = e.which;
		}

		if((key == 13) || (key == 13))
		{
			readFile('content/283/newsletter.php?connect=1&nl_email='+document.getElementById('nl_email').value,'newsletter');
		}

	}
}