var letzter;
var click;
function mouseover(dieser)
{
  if (letzter != dieser && letzter)
  {
  	letzter.style.background="#FFFFFF";
  }
  letzter = dieser;
	dieser.style.background="#EEEEEE";
  	dieser.style.cursor="hand";
}
function mouseout(dieser)
{
  if (click != dieser)
  {
		dieser.style.background="#FFFFFF";
	}
}
function mouseclick(dieser)
{
  if (click != dieser && click)
  {
  	click.style.background="#FFFFFF";
  }
  click = dieser;
  letzter = null;
  dieser.style.background="#FFC0CB";
}


function NewWindow(mypage, myname, w, h, scroll, res)
{
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+res;
	win=window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion)>=4)
	{
		win.window.focus();
	}
}

function NewWindow1(mypage, myname, w, h, scroll, res)
{
	var winl = (screen.width-w)/2;
	var wint = (screen.height-h)/2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable='+res;
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion)>=4)
	{
		win.window.focus();
	}
	return win;
}

function userprofil(id,online,urlpre,urlpost)
{
  width = 710;
  height = 500;
  if (typeof online == 'undefined') online='';
  if (typeof urlpre == 'undefined') urlpre='';
  if (typeof urlpost == 'undefined') urlpost='';
  win = NewWindow(urlpre+'nickpage.php?id='+id+urlpost+'&online='+online, 'nickpage_'+id, width, height, 'yes','no');
}

