// JavaScript Document

function popup2(url, x, y, p) {
  fenster=window.open(url,p,'height='+x+',width='+y+',status=no,location=no,resizable=yes,scrollbars=yes,fullscreen=no,top=200,left=200');
  fenster.focus();
}
var fenster2 = null;


function popup3(url, p) {
  fenster2=window.open(url,"p1","height=500,width=610,status=no,location=no,resizable=yes,scrollbars=yes,fullscreen=no,top=200,left=200");
  if(fenster2 == true){
    fenster2.focus();
  }
  
}
//Achtung geht nur falls  NAME="link"
//<select class="DataFont" NAME="link" SIZE="1" onChange="gotoLink(this.form)">
function gotoLink(form) {
  var OptionIndex=form.link.selectedIndex;
  parent.location = form.link.options[OptionIndex].value;
}

//Original: Ronnie T. Moore -->
//Web Site: The JavaScript Source -->
//Begin
function textCounter(field, countfield, maxlimit) {
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
else
countfield.value = maxlimit - field.value.length;
}

function textCounter2(field, countfield, maxlimit) {
if (field.value.length > maxlimit)
field.value = field.value.substring(0, maxlimit);
else
countfield.value = maxlimit - field.value.length;
}

//wird nicht gebraucht. Ist da falls Popup2 Probleme machen sollte
function popup(filename,width,height, jobs) {
	var winl = (screen.width - width) / 2;
	var wint = (screen.height - height) / 2;
	if (typeof fenster == 'undefined' || fenster.closed == true) {
		fenster = window.open(''+filename,jobs,'scrollbars=yes,menubar=no,toolbar=no,status=yes,directories=no,location=no,width='+width+',height='+height+',top='+wint+',left='+winl+',resizable=yes');
		} else {
		fenster.close();
		fenster = window.open(''+filename,jobs,'scrollbars=yes,menubar=no,toolbar=no,status=yes,directories=no,location=no,width='+width+',height='+height+',top='+wint+',left='+winl+',resizable=yes');
	}
	if (parseInt(navigator.appVersion) >= 4) { fenster.window.focus(); }
}
