function toggleMe(a)
{
  var e = document.getElementById(a);
  if(!e)
  {
    return(true);
  }
  if(e.style.display == 'block')
  {
    e.style.display = 'none';
  } 
  else 
  {
    e.style.display = 'block';
  }
//  return true;
}

function goToReplybox() 
{
  location.href = location.href + "#replyboxanchor";
}

function video(id, width, height)
{
  myleft = 20;
	mytop = 20;
	settings="width=" + width + ",height=" + height + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no";
	win=window.open("./?seite=videopopup&video_id="+ id ,"video",settings);
	win.focus();
}

function videofile(id, sort, width, height)
{
  myleft = 20;
	mytop = 20;
	settings="width=" + width + ",height=" + height + ",top=" + mytop + ",left=" + myleft + ",scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no,dependent=no";
	win=window.open("./?seite=videopopup&story_id="+ id +"&sort="+ sort,"video",settings);
	win.focus();
}

function resettext(feld)
{
    if(feld.value=="Standard")
    {
        feld.value="";
    }
} 
