function wnetc_disp (id,style) {
	if (document.getElementById) {
	var mydiv=document.getElementById(id);
	if (style == undefined) style=(mydiv.style.display=='block'?'none':'block');	
	mydiv.style.display=style;
	}
}

function nav_un(id)
{
	document.getElementById('nav_' + id).style.background = "";
}

function nav_hi(id)
{
	document.getElementById('nav_' + id).style.background = "no-repeat url(../gfx/navbg.gif)";
}

function option1()
{
	wnetc_disp ('option1_choose', 'block');
}

function option1_sel(value, bgcolor)
{
	wnetc_disp ('option1_choose', 'none');
	document.getElementById('option1_color').style.background = bgcolor;
	document.getElementById('option1').value = value;
	
}

function openwindow(url,width,height) {
	osm=window.open(url,"fenster","width="+width+",height="+height+",scrollbars=yes,status=no");
	osm.focus();
}

function wnetc_delimage(id, text)
{
	confirm_value = confirm(text);
	if (confirm_value == true)
	{
		wnetc_disp("img" + id + "_thumb", "none");
		wnetc_disp("img" + id, "block");
		document.getElementById("img" + id + "del").value = 1;
	}
}

function wnetc_deldownload(id, text)
{
	confirm_value = confirm(text);
	if (confirm_value == true)
	{
		wnetc_disp("download" + id + "_show", "none");
		wnetc_disp("download" + id, "block");
		document.getElementById("download" + id + "del").value = 1;
	}
}

function wnetc_replimage(id)
{
	wnetc_disp("img" + id + "_thumb", "none");
	wnetc_disp("img" + id, "block");
}

function wnetc_repldownload(id)
{
	wnetc_disp("download" + id + "_show", "none");
	wnetc_disp("download" + id, "block");
}

function umRepPass()
{
	wnetc_disp("passwordChange", "block");
	wnetc_disp("passwordShow", "none");
}

function redirectTimeout(url, timeout)
{
	redirectUrl = url;
	Timer = setTimeout('redirect()', timeout);
}

function redirect(url)
{
	window.location = redirectUrl;
}

function followlink(link, text)
{
	confirm_value = confirm(text);
	if (confirm_value == true)
	{ 	window.location=link;	}
}
