<!--

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; 
  document.MM_sr=new Array; 
  for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){
		document.MM_sr[j++]=x; 
		if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];
	}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function swapImage($name,$ziel) {
	src=document.images[$name].src;
	pos=src.indexOf('.jpg');
	path=src.substring(0,pos-4);
	document.images[$ziel].src = path + '_b.jpg';
}

//* Foto Links anzeigen (name: c_nn_b_01)
function showFoto($name,$ziel) {
	src=document.images[$name].src;
	pos=src.indexOf('_a_');
	path=src.substring(0,pos);
	//* document.write(path + '  -  ' + src);
	document.images[$ziel].src = path + '_b_01.jpg';
}

function restoreImage($name, $img) { //v3.0
	p=document.getElementById($name);
	document.images[$name].src = p.oSrc;
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function changeLocation(URL, param)	{
	if(param) {
		if(param.substring(0,1) != "?") param = "?" + param;
	}
	document.parentWindow.location.href = URL + param;
}

function changeHREF ($name) {
	document.getElementById($name).href="javascript:swapImage('s2','s3');";
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

var windowOpenCloseReference;
function OpenCloseExtWin(targetwin, width, height, resizable, toolbar, menubar, tarlocation, status, scrollbars) 
{ 
		if(!targetwin) targetwin='SiteExtWin';
		if(!width) width=800;
		if(!height) height=600;
		if(!resizable) resizable='yes';
		if(!toolbar) toolbar='yes';
		if(!menubar) menubar='yes';
		if(!tarlocation) tarlocation='yes';
		if(!status) status='yes';
		if(!scrollbars) scrollbars='yes';
		
		
		if(windowOpenCloseReference) windowOpenCloseReference.close();
		windowOpenCloseReference = window.open("", targetwin ,"width=" + width + ",height=" + height + ",resizable=" + resizable + ",toolbar=" + toolbar + ",menubar=" + menubar + ",location=" + tarlocation + ",status=" + status + ",scrollbars=" + scrollbars);
		windowOpenCloseReference.focus();
}

//* window.location.href setzen auf php-datei, parametrisiert, OPTIONS-Feld-Auswertung
//*  Aufruf: optionNav(scriptpath [,paramString[,optParamName,optList[,optTargetNew]]])
//*          (bei Auslassen eines Parameters '' oder null übergeben!
//*  scriptpath: Pfad php-datei (path/datei.php)
//*  paramString: ?param='value'[&param='value'] 
//*  optParamName: parametername
//*  optList: SELECT.name (SELECT-name eines FORM mit OPTIONS zur Auswahl), SELECTED wird bei optParamName als wert eingesetzt
//*  optTargetNew: Neues Fenster (name)
function optionNav(scriptpath) {
	var args = optionNav.arguments;
	if(args.length > 1) var paramString = args[1];
	if(args.length > 2) var optParamName = args[2];
	if(args.length > 3) var optList = args[3];
	if(args.length > 4) var optTargetNew = args[4];
	if(optList) var opt = (optList.options[optList.selectedIndex].value);
	var pars = "";
	if(paramString) {
		if(paramString.substring(0,1) != "?") pars = "?";
	} else if(optParamName) {
		if(optParamName.substring(0,1) != "?") pars = "?";
	}
	if (paramString) pars = pars + paramString;
	if (optParamName && optList) pars = pars + "&" + optParamName + "='" + opt + "'";
	var url = scriptpath + pars;
	if (optTargetNew) win = window.open(url,optTargetNew);
	else if (scriptpath) document.parentWindow.location.href = url;
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
   if (selObj.options[selObj.selectedIndex].value!='no') {
      eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
      if (restore) selObj.selectedIndex=0;
   }
}

function showPicture(picPath, picName, width, height){
	if(picPath.substring(picPath.length-1) != "/") picPath = picPath + "/";
	globPicPath = picPath+picName;
	if(picName) {
		NewWindow=window.open(globPicPath,"ZOOM","width=" + width + ",height=" + height + ",resizable=yes,scrollbars=no");
		NewWindow.focus();
	}
}

function showFile(fileURI, fileName){
	if(fileURI.substring(fileURI.length-1,1) != "/") fileURI = fileURI + "/";
	filePath = fileURI+fileName;
	if(fileName) {
		NewWindow=window.open(filePath,"ZOOM","resizable=yes,scrollbars=no");
		NewWindow.focus();
	}
}

function showURL(fileName){
	if(fileName) {
		if(fileName.substring(0,4) != "http") fileName = "http://" + fileName;
		NewWindow=window.open(fileName,"ZOOM","resizable=yes,scrollbars=auto,toolbar=yes,menubar=yes");
		NewWindow.focus();
	}
}

function showMessage(text){
	if(text) {
		NewWindow=window.open("Info" ,"Info","resizable=yes,scrollbars=auto,toolbar=yes,menubar=yes,width=300,height=140");
		NewWindow.focus();
		NewWindow.document.write(text);
	}
}

function SetCookie(Bezeichner, Wert, Verfall) {
 var jetzt = new Date();
 var Auszeit = new Date(jetzt.getTime() + Verfall);
 document.cookie = Bezeichner+"="+Wert+"; expires="+Auszeit.toGMTString()+";";
}

function noSpamMail(titel,pre,post,domain,subject,cssclass,cssfile) {
	wwidth = 300;
	wheight = 140;
	wleft = (screen.width / 2) - (wwidth / 2);
	wtop = (screen.height / 2) - (wheight / 2);
	NewWindow=window.open('NoSpam','NoSpamMail','width=' + wwidth + ', height=' + wheight + ', menubar=no, toolbar=no, location=no, status=no, resizable=no, dependent=yes, left=' + wleft + ', top=' + wtop);
	NewWindow.document.write('<html>\n<head>\n');
	NewWindow.document.write('<title>NoSpam-Email-Window</title>\n');
	if (cssfile) NewWindow.document.write('<link rel="stylesheet" type="text/css" href="' + cssfile + '">\n');
	NewWindow.document.write('</head>\n<body>\n');
	NewWindow.document.write('<br><br>\n');
	if (titel) NewWindow.document.write('&nbsp;&nbsp;' + titel + '<br><br>\n');
	if (subject) subject = '?subject=' + subject; else subject = '';
	NewWindow.document.write('&nbsp;<a ');
	if (cssclass) NewWindow.document.write('class="' + cssclass + '" ');
	NewWindow.document.write('href="mailto:' + pre + '&#64;' + post + '.' + domain + subject + '">');
	NewWindow.document.write(pre + '&#64;' + post + '.' + domain);
	NewWindow.document.write('</a>\n');
	NewWindow.document.write('<br /><br /><br />\n');
	NewWindow.document.write('<div align="center"><a class="vklink" href="javascript: window.close();">close</a></div>\n');
	NewWindow.document.write('</body>\n</html>\n');
	NewWindow.document.close();
	NewWindow.focus();
}

function Go (x) {
  if ((x == "nothing") || (x == "")) {
    document.forms['issues'].reset();
    document.forms['issues'].elements[0].blur();
    return;
  } else {
      top.location.href = x;
      document.forms['issues'].reset();
      document.forms['issues'].elements[0].blur();
  }
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
   if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
     document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
 }
MM_reloadPage(true);

function set_focus(divid) {
    document.getElementById(divid).className = 'active';
}

function leave_focus(divid) {
    document.getElementById(divid).className = 'inactive';
   }
   
//->



