<!--
ns=((navigator.appName=="Netscape") && (parseInt(navigator.appVersion)>=3));
ie=((navigator.appName=="Microsoft Internet Explorer") && (parseInt(navigator.appVersion)>=4));

function openWindow(string)

	{

		if ((ns))
		window.open(string,"displayWindow","toolbar=no,width=560,height=610,directories=no,status=no,scrollbars=no,resizable=no,menubar=no,screenX=450,screenY=0");

		if ((ie))
		window.open(string,"displayWindow","toolbar=no,width=560,height=610,directories=no,status=no,scrollbars=no,resize=no,menubar=no,left=30,top=10");
       }  
	   
function openWindow_2(string)

	{

		if ((ns))
		window.open(string,"displayWindow","toolbar=no,width=300,height=500,directories=no,status=yes,scrollbars=no,resizable=no,menubar=no,screenX=100,screenY=20");

		if ((ie))
		window.open(string,"displayWindow","toolbar=no,width=300,height=500,directories=no,status=yes,scrollbars=no,resize=no,menubar=no,left=30,top=10");
    }
	
function openWindow_4(string)
{

		if ((ns))
		window.open(string,"displayWindow","toolbar=no,width=620,height=400,directories=no,status=yes,scrollbars=yes,resizable=no,menubar=no,screenX=50,screenY=10");

		if ((ie))
		window.open(string,"displayWindow","toolbar=no,width=620,height=400,directories=no,status=yes,scrollbars=yes,resize=no,menubar=no,left=50,top=10");
}  

function markSelection (tagName, element) {
   if (document.selection) {
     var range = document.selection.createRange();
     if (range.parentElement() == element)
       range.text = '<' + tagName + '>' + range.text + '<\/' + tagName + '>';
   }
}

function linkSelection (tagName, element) {
   if (document.selection) {
     var range = document.selection.createRange();
	 var link = prompt("Geben Sie bitte das Verweisziel ein","http://");
     if (range.parentElement() == element)
       		range.text = '<' + tagName + ' href="' + link + '" target="_blank" class="textlink">' + range.text + '<\/' + tagName + '>';
   }
}

function preselect()
{
  document.forms.form1.cm.selectedIndex = 0;
}

function nachoben()
{
  s = document.forms.form1.cm.selectedIndex;
  if (s!=-1 & s>0)
  {
     t = document.forms.form1.cm.options[s].text;
	 document.forms.form1.cm.options[s].text = document.forms.form1.cm.options[s-1].text;
	 document.forms.form1.cm.options[s-1].text = t;
     v = document.forms.form1.cm.options[s].value;
	 document.forms.form1.cm.options[s].value = document.forms.form1.cm.options[s-1].value;
	 document.forms.form1.cm.options[s-1].value = v;
	 document.forms.form1.cm.selectedIndex = s-1;

	 order = document.forms.form1.cm.options[0].value;
	 for (i=1;i< document.forms.form1.cm.length;i++)
	 {
	   order = order + "," + document.forms.form1.cm.options[i].value;
	 }
	 document.forms.form1.cmorder.value = order;
  }
}

function nachunten()
{
  s = document.forms.form1.cm.selectedIndex;
  if (s!=-1 & s<document.forms.form1.cm.length-1)
  {
     t = document.forms.form1.cm.options[s].text;
	 document.forms.form1.cm.options[s].text = document.forms.form1.cm.options[s+1].text;
	 document.forms.form1.cm.options[s+1].text = t;
     v = document.forms.form1.cm.options[s].value;
	 document.forms.form1.cm.options[s].value = document.forms.form1.cm.options[s+1].value;
	 document.forms.form1.cm.options[s+1].value = v;
	 document.forms.form1.cm.selectedIndex = s+1;

	 
	 order = document.forms.form1.cm.options[0].value;
	 for (i=1;i< document.forms.form1.cm.length;i++)
	 {
	   order = order + "," + document.forms.form1.cm.options[i].value;
	 }
	 document.forms.form1.cmorder.value = order;
  }
}

// -->
