<!--
// Html bearbeiten          html_bearbeiten.js         2008-03-14

/* Bearbeitungs- oder Info Box -----------
var wBox = new Array( 0 );
wBox["url"]=;
wBox["name"]=;
wBox["width"]=;
wBox["height"]=;
wBox["left"]= 160;
wBox["top"]= 200;
*/
var wBox;

function boxOpen ( aBox, parameter ) {
	aBox["left"]= aBox["left"] ? aBox["left"] : 160;
	aBox["top"] = aBox["top"]  ? aBox["top"]  : 200;

	if( parameter ) {
		parameter = "?si=" + si + "&" + parameter;
		// wBoxClose();
	}
	else {
		parameter= "";
	}
	var wProperties= "width="+aBox["width"]+",height="+aBox["height"]+",left="+aBox["left"]+",top="+aBox["top"];
	if( wBox== null ) {
		wBox = window.open( aBox["url"]+parameter, aBox["name"], wProperties );
		wBox.focus();
	}
	else if( wBox.closed== true ) {
		wBox = window.open( aBox["url"]+parameter, aBox["name"], wProperties );
	} else {
		if( wBox.name != aBox["name"] ) {
			wBoxClose();
			wBox = window.open( aBox["url"]+parameter, aBox["name"], wProperties );
		}
		wBox.location.href=aBox["url"]+parameter;
		wBox.focus();
	}
}
function wBoxClose () {
	if( wBox!= null ) {
		wBox.close();
	}
	wBox= null;
}

function edit( feld ) {
	if( si == key ) {
		boxOpen( editWindow, 'feld=' + feld );
	}	
}

// -->
