// *******************************************************
// *
// * javalib.js
// * Java-Funktionen für venuszeit.de
// * Stand 08-06-24
// *
// *******************************************************

function load3frames(dolocation, doframe){
var newlocation=eval("frames." + doframe +".location");
newlocation.href = dolocation;
}

function MM_jumpMenu(targ,selObj,restore){
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

function checkFrameset() {

if(parent.frames['oberesFenster'] ) {
if(parent.frames['oberesFenster'].obengeladen) {
parent.frames['oberesFenster'].displayonlinebesucher();
parent.frames['oberesFenster'].displayonline('4');
}
}
}

function zeigehauptseite(useronline,div)
{

	if (document.getElementById)
	{

		x = document.getElementById(div);
		x.innerHTML = '';
		x.innerHTML = '<div class="' + div + '">' + useronline + '</div>';
	}
	else if (document.all)
	{
		x = document.all[div];
		x.innerHTML = useronline;
	}
	else if (document.layers)
	{

		x = document.layers[div];
		useronline = '<p class="netscape">' + useronline + '</p>';
		x.document.open();
		x.document.write(useronline);
		x.document.close();
	}
}

function showfunction(displayfunction)
{
eval(displayfunction);
}

function pageset(eintrag, mitlaufc)
{
document.displaysite.eintrag.value = eintrag;
document.displaysite.mitlaufc.value = mitlaufc;
document.displaysite.submit();
}

function pageset2(selectvalue)
{
var explode = selectvalue.split(";");
document.displaysite.eintrag.value = explode[0];
document.displaysite.mitlaufc.value =explode[1];
document.displaysite.submit();
}

function pageset3(url, target)
{
  jumpto=eval("parent."+target);
  location.href = url;
}

function profile(url, name, width, height) {
	if(!name) name = "profil";
	if(!width) width = 600;
	if(!height)  height = 400;
	var ow = window.open(url, name, 'resizable=yes,scrollbars=yes,menubar=no,toolbar=no,width='+ width +',height='+ height +',top=0,left=0');
	ow.focus();
}
