//=======================================================================================================================
// (c)Knusperleicht
//=======================================================================================================================
/*==========================================================================
 * url,...
 *==========================================================================
 */
function klonLink(klongb) 
{
linkText = prompt("Titel des Links:","");
linkUrl = prompt("Link der Homepage eingeben:","http://www.");
if ((linkUrl != null) && (linkUrl != "")) 
	{
	if ((linkText != null) && (linkText != ""))
		klonforum.newContent.value += "[url="+linkUrl+"]"+linkText+"[/url] ";
	}
klonforum.newContent.focus();
}
/*==========================================================================
 * liste
 *==========================================================================
 */
function klonListe(klongb) 
{
linkListe = prompt("Listentext eingeben:","");
if ((linkListe != null) && (linkListe != "")) 
	{
	klongb.newContent.value += "[ul][li]"+linkListe+"[/li][/ul] ";
	}
klongb.newContent.focus();
}

/*==========================================================================
 * farbenwechsel, fett, kursiv, ...
 *==========================================================================
 */

function textChange(tag, art)
{
    var tag, art, code;

    cutText = document.selection.createRange().text;
    
    if (cutText != "") 
    {
    	if(art != "")
      {
      	document.selection.createRange().text = "["+tag+"]["+art+"]"+ cutText +"[/"+art+"][/"+tag+"]";
      } else {
    		document.selection.createRange().text = "["+tag+"]" + cutText +"[/"+tag+"]";
    		return;
      }
      
    } else {
    	
			gbForm.gbKommentar.value += "["+tag+"]"+art+"[/"+tag+"]";
   		gbForm.gbKommentar.focus();
			
			
      return;
      
    }
          
    document.posting.text.value += code+" ";
    document.posting.text.focus();
}



