<!--- Hide script from old browsers
// Image mit Text in einem POPUP öffnen
//
var Fenster1;
function FensterOeffnen (Adresse, Name, Attrib) {

    if (Fenster1) {
        Fenster1.close();
  	}

  	Fenster1 = window.open(Adresse, Name, Attrib);
    Fenster1.focus();

}

function alerttest () {
	alert('Hier sollte nun das Editfenster geöffnet werden!!');
}

function imgback(imgname, imfld) {

//	alert('Bildname: '+imgname);
    opener.document.getElementById(imfld).value = imgname;
    if(imgname == '') {
    	opener.document.getElementById('param_'+imfld).value = '';
    } else {
	    if (document.getElementById('impos')){
	        var impos = document.getElementById('impos').value;
     //       alert('Position:!'+document.getElementById('impos').value);
            switch (impos) {
	        case 'links neben dem Text':
	            impos = 'float:left;';
	            break;
	        case 'rechts neben dem Text':
	            impos = 'float:right;';
	            break;
	        case 'mitte unter dem Text':
	            impos = 'align:center;';
	            break;
	        case 'links unter dem Text':
	            impos = 'align:left;';
	            break;
	        case 'rechts unter dem Text':
	            impos = 'align:right;';
	            break;
	        default:
	            impos = 'float:left;';
	        }
	    }

	    var imszw = "width='200'";
	    if (document.getElementById('imsizew')){
	        imszw = 'width="'+document.getElementById('imsizew').value+'"';
	    }
	    var imszh = "";
	    if (document.getElementById('imsizeh') && document.getElementById('imsizeh').value != ''){
	        imszh = 'height="'+document.getElementById('imsizeh').value+'"';
	    }

	//    alert('->'+impos+' -w '+imszw+' -h '+imszh);

	    var mtop = '0px';
	    if (document.getElementById('margtop')){
	        mtop = document.getElementById('margtop').value+"px";
	    }
	    var mrig = '0px';
	    if (document.getElementById('margright')){
	        mrig = document.getElementById('margright').value+"px";
	    }
	    var mbot = '0px';
	    if (document.getElementById('margbot')){
	        mbot = document.getElementById('margbot').value+"px";
	    }
	    var mleft = '0px';
	    if (document.getElementById('margleft')){
	        mleft = document.getElementById('margleft').value+"px";
	    }
	    var imopts = imszw+' '+imszh+' style="'+impos+' margin:'+mtop+' '+mrig+' '+mbot+' '+mleft+';"';
	    opener.document.getElementById('param_'+imfld).value = imopts;
    }
//   alert(opener.document.getElementById('param_'+imfld).value);

//    alert('Opener-Name: Elem '+opener.document.getElementById("bild1").value);
    opener.document.getElementById("addcont").submit();
}
function delimsel(imfld, frm){
	document.getElementById(imfld).value = '';
    document.getElementById('param_'+imfld).value = '';
    document.getElementById(frm).submit();
}
function imgparm(imfld) {
var fldname = "parm_"+imfld;

}


function navin(divid){
    document.getElementById(divid).style.borderWidth = '1px';
    document.getElementById(divid).style.borderColor = 'white';
    document.getElementById(divid).style.borderLeftColor = 'black';
    document.getElementById(divid).style.borderTopColor = 'black';
    document.getElementById(divid).style.color = 'white';
}
function navout(divid){
    document.getElementById(divid).style.borderWidth = '1px';
    document.getElementById(divid).style.borderColor = 'black';
    document.getElementById(divid).style.borderLeftColor = 'white';
    document.getElementById(divid).style.borderTopColor = 'white';
    document.getElementById(divid).style.color = '#094D94';
}
-->