function SmilieAdd(smilie)
  {
  window.document.dings.text.value = 
  window.document.dings.text.value + (smilie);
  }
  
function OpenInput(was, beschreibung)
  {
  input = prompt(beschreibung, "");
   if((input != null) && (input != "")) 
   {
      window.document.dings.text.value = 
      window.document.dings.text.value + "[" + was + "]" + input + "[/" + was + "]";
   }
  }

function OpenWindow(url, gro1, gro2, name)
  {
  window.open("" + url + "", "" + name + "", "width=" + gro1 + ",height=" + gro2 + ",top=1,left=1,resizable=yes, scrollbars");
  }

function forenjump()
  {
  location.href = document.forenliste.select.value;
  }

function OpenInputUrl(was, beschreibung, beschreibung2)
  {
  input = prompt(beschreibung, "");
   if((input != null) && (input != "")) 
   {
      urlbeschreibung = prompt(beschreibung2, "");
       if((urlbeschreibung != null) && (urlbeschreibung != "")) 
       {
       window.document.dings.text.value = 
       window.document.dings.text.value + "[" + was + "=" + input + "]" + urlbeschreibung + "[/" + was + "]";
       } else {
       window.document.dings.text.value = 
       window.document.dings.text.value + "[" + was + "]" + input + "[/" + was + "]";
       }
   }
  }

function confirm_newpm() {
	input_box=confirm("Du hast eine neue Private Nachricht. Klicke OK, um sie anzusehen oder Abbrechen, um dieses Fenster zu schliessen.");
	if (input_box==true) {
		second_box=confirm("Im neuen Fenster öffnen?\n\n(Klicke Abbrechen, um Inbox in diesem Fenster zu öffnen.)");
		if (second_box==true) {
			window.open('profil.php?show=pms'); 
		} else {
			window.location="profil.php?show=pms";
		}
	} else {
	// Output when Cancel is clicked
	}
}
