
function show_edit_box(id) {
	document.getElementById(id).style.display='block';
}


function hide_edit_box(id){
	document.getElementById(id).style.display='none';
}


wmtt = null;
document.onmousemove = updateWMTT;
function updateWMTT(e) {
	x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
	y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
	if (wmtt != null) {
		wmtt.style.left = (x + 20) + "px";
		wmtt.style.top 	= (y + 20) + "px";
	}
}


function showWMTT(id) {
	wmtt = document.getElementById(id);
	wmtt.style.display = "block"
}


function hideWMTT() {
	wmtt.style.display = "none";
}



function einblenden(id) {
	var item = document.getElementById(id);
  
	if (item.style.display)
	value = '';
	else
	value = 'none';
  
	item.style.display = value;
}


function MM_findObj(n, d) {
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MAM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() {
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

 
function last_check(msg,url) {
	var answer = confirm (msg);
	if (answer)
	document.location=url;
}


function addsmilie_gbook(Zeichen) {
	document.gbook.msg.value =
	document.gbook.msg.value + Zeichen;
}
function addsmilie_pm(Zeichen) {
	document.pm.msg.value =
	document.pm.msg.value + Zeichen;
}
function addsmilie_bbform(Zeichen) {
	document.bbform.message.value =
	document.bbform.message.value + Zeichen;
}


function popup(seite,width,height)  {
	window.open(seite,"center","innerWidth="+ width +",innerHeight="+ height +",left=175,top=75,scrollbars=no,resizable=no");
}
