function swap(what)
{
  var todo = '';
  var styles = new Array("bright","dark","neutral");

	for( var i = 0; i < styles.length; i++ ) {
		if (what == styles[i]) todo = "visible";
		else todo = "hidden";
		document.getElementById(styles[i]).style.visibility = todo;
	}
}

function hid_vis(id1,id2)
{
	document.getElementById(id1).style.visibility = "hidden";
	document.getElementById(id2).style.visibility = "visible";
}

function getstyle(typ)
{
	if (typ == '') var prstyle = '';
	else var prstyle = '?style=' + typ;
	
	document.getElementById('htmlcode').value = '<a href="http://pagerank.webfire.biz" target="_blank">' + "\n" + '<img src="http://pagerank.webfire.biz/pr.php' + prstyle + '" alt="Pagerank" border="0"></a>';
	hid_vis('styles','code');
}

function again()
{
	hid_vis('code','styles');
}

function preload()
{
	process_img = new Image()
	process_img.src = "/img/process.gif"
	document.install.email.focus();
}

function process()
{
	document.install.activate.disabled = true;
	hid_vis('inst','process');
	document.getElementById('process').innerHTML = 'Aktivierung l&auml;uft - bitte warten ...<br><br><img src="/img/process.gif" width="302" height="28" alt="Process">';
}
