var LoadData = function(action,VALUE,UpdateArea) {
	new Request.HTML({
		url:'control.php', method: 'post',data: 'ajaxaction='+action+'&Value='+VALUE,headers:'application/x-www-form-urlencoded',update: $(UpdateArea),evalScripts: true,
		onFailure:function(){
		},
		onRequest:function(){
			$(UpdateArea).set('html','<img src="images/loading.gif" border="0" title="loading" />');
		},
		onSuccess:function(){

		}
}).send();
}

var myShowWindow=function(PARA){

var Werte = PARA.split("|");

ID = Werte[0];
TITLE = Werte[1];
OPTION = Werte[2];
TAKEAJAX = Werte[3];
WIDTH = Werte[4];
HEIGHT = Werte[5];
MODAL = Werte[6];
POSLEFT = Werte[7];
POSTOP = Werte[8];
ID2 = Werte[9];

//alert(HIEGHT);

if($(ID+'_main')==null){
	if(POSLEFT=='' && POSTOP=='' && ID2!=''){
	POSLEFT=$(ID2).getPosition().x;
	POSTOP=$(ID2).getPosition().y;
	}

	 this.tempDiv=new Element('div').setProperty('id',ID).setStyle('visibility','hidden').inject($('mainBody'));

	 mylilwindow=new OwnWindoo($(ID), {
				fxDuration: 5000,
				maxOpacity: 1,
				width:WIDTH,
				height:HEIGHT,
				timeIn: 200,
				timeOut: 500,
				fixed:false,
				ownPosition:true,
				offsets: {'x': POSLEFT, 'y': POSTOP},
				modal:MODAL,
				effecting:true,
				stayalive:true,
				transitionEffect: Fx.Transitions.Expo.easeOut,
				startFrom: {'x': POSLEFT, 'y': POSTOP},
				moveTo: {'x': POSLEFT, 'y': POSTOP},
				title:TITLE,
				text:OPTION,
				draggMe:true,
				resizeMe:true,
			    resizeLimit:{y: [100, 900],x:[100,800]},
			    takeajax:TAKEAJAX,
				ajaxfile:'control.php',
				ajaxoption:OPTION,
				className: 'Win',
				onAjaxComplete:function(){

				}
			});
		mylilwindow.showMe();
	}
}