function go(x)
{
 if (x != "-")
 {
  location.href = x;
 }
}

function wwh ()
{
 if (isFinite(window.innerWidth))
 {
  ww = window.innerWidth;
  wh = window.innerHeight;
 }
 else if (isFinite(document.body.clientWidth))
 {
  ww = document.body.clientWidth;
  wh = document.body.clientHeight;
 }
 else if (isFinite(document.documentElement.clientWidth))
 {
  ww = document.documentElement.clientWidth;
  wh = document.documentElement.clientHeight;
 }
 window.location.href="index.php?ww="+ww+"&wh="+wh;
}

function ow (Adresse)
{
  Fenster1 = window.open(Adresse, "Dateiwahl", "width=300,height=400,left=100,top=200");
  Fenster1.focus();
}

function sm(v)
{
 var x;
 if (document.getElementById)
 {
  x = document.getElementById(v);
 }
 else if (document.all)
 {
  x = document.all[v];
 }
 x.submit();
}

function login()
{
 md5idvl('tun');
 md5idvl('tpw');
 sm('form');
}

function clrvl(id)
{
 var x;
 if (document.getElementById)
 {
  x = document.getElementById(id);
 }
 else if (document.all)
 {
  x = document.all[id];
 }
 x.value = "";
}

function flink()
{
 var enterURL   = window.prompt("Geben sie die URL an", "http://");
 if ((enterURL)&&(enterURL != "http://"))
 {
  var enterTITLE = window.prompt("Welcher Text soll am Lin stehen ?", "Irgend eine Seite");
  if ((enterTITLE) && (enterTITLE != "Irgend eine Seite"))
  {
   var ToAdd = " [l]"+enterURL+"[l] "+enterTITLE+" [l] ";
   document.form.txtfld.value+=ToAdd;
  }
 }
}
function fimg()
{
 var enterURL   = window.prompt("Geben sie die Url des Bildes an", "http://");
 if ((enterURL)&&(enterURL != "http://"))
 {
  var ToAdd = " [b]"+enterURL+"[b] ";
  document.form.txtfld.value+=ToAdd;
 }
}
function fhl2()
{
 var enterURL   = window.prompt("Geben sie den Text der Überschrift ein.", "Überschrift 2");
 if (enterURL)
 {
  var ToAdd = " [u2]"+enterURL+"[u2] ";
  document.form.txtfld.value+=ToAdd;
 }
}
function fhl3()
{
 var enterURL   = window.prompt("Geben sie den Text der Überschrift ein.", "Überschrift 3");
 if (enterURL)
 {
  var ToAdd = " [u3]"+enterURL+"[u3] ";
  document.form.txtfld.value+=ToAdd;
 }
}
function fhl1()
{
 var enterURL   = window.prompt("Geben sie den Text der Überschrift ein.", "Überschrift 1");
 if (enterURL)
 {
  var ToAdd = " [u1]"+enterURL+"[u1] ";
  document.form.txtfld.value+=ToAdd;
 }
}
function ftb()
{
 var enterURL   = window.prompt("Geben sie den Text ein.", "Text");
 if (enterURL)
 {
  var ToAdd = " [vt]"+enterURL+"[vt] ";
  document.form.txtfld.value+=ToAdd;
 }
}

