function gotop()
{
	scroll(0,0);
}
function getScrollPosition()
{
	var scroll_position_y;
	if(typeof pageYOffset != "undefined")
	{
		scroll_position_y = window.pageYOffset;
	}
	else
	{
		scroll_position_y = document.body.scrollTop;
	}
	return scroll_position_y;
}
function openNewsletter()
{
	var winWidth = 420;
	var winHeight = 370;
	var winSize = 'width=' + winWidth + ',height=' + winHeight;
	var thewindow = window.open('http://web97.srv1.solutions.at/newsletter/index.php', 'Newsletter', winSize);
	thewindow.focus();
	//thewindow.moveTo(0,0);
}
function Lvl_openWin(u,n,w,h,l,t,c,f,x) 
{ //v1.0 4LevelWebs
	var ww=((screen.width-w)/2);
	if(c==1)
	{
		l=ww;
		t=(screen.height-h)/2;
	}
	if(c==2)
	{
		l=ww
	}
	//f+=',top='+t+',left='+l;
	LvlWin = window.open(u,n,f);
	//if(x==1)
	//{
		LvlWin.focus()
	//}
	document.MM_returnValue=false;
}
function openArchiv (url, breite, hoehe) {
      links = (screen.width/2)-(breite/2);
      oben = (screen.height/2)-(hoehe/2);
      thewin = window.open(url,"archiv","height="+hoehe+",width="+breite+",status = no,toolbar = no,menubar = no,location = no,resizable = no,titlebar = no,scrollbars = no,fullscreen = no,top ="+oben+",left ="+links);
	  thewin.focus();
}

function openFile(path, file, name)
{
	//alert("openFile" + file + " / " + name);
	location.href='download.cfm?d=' + path + '&f=' + file + '&name=' + name;
}

function renderFlashIE()
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%" title="main" id="main">');
	document.write('<param name="movie" value="index.swf" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="flashvars" value="doc_url=' + document.URL + '">');
	document.write('<embed src="index.swf" flashvars="doc_url=' + document.URL + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%" id="main" name="main"></embed>');
	document.write('</object>');
}