function ShowWindowURL(wName,wTitle,wTop,wLeft,wHeight,wWidth,wURL,wMin,wMax,wClose,wCenter,wModal,iFrame){
	var wMaximized = false;
	var wy_theme = 'wygrey';
	winW = window.innerWidth;
    winH = window.innerHeight;
	var index=0;
	Windows.windows.each(function(win){index++;});
	index++;
	var wzi=index+2000;
	//wTop=1+index*22;
	//wLeft=0;
	if(wModal)
		wy_theme='wayak';
		
	if(wMaximized){
		wTop=20;
		wLeft=0;
		wHeight=winH-90;
		wWidth=winW-5;
	}
  	win = new Window(wName, {title:wTitle, className: wy_theme, minimizable:wMin, maximizable:wMax, closable:wClose, top:wTop, left:wLeft, height:wHeight, width:wWidth, resizable: true, wiredDrag:true, destroyOnClose:true, gridX:20, gridY:20, opacity:1, showEffect:Element.show, hideEffect: Effect.SwitchOff});
	if(iFrame) win.setURL(wURL);
	else win.setAjaxContent(wURL, {method: 'get'});
	win.setConstraint(true, {top:75});
	//var	wTitle='VALS';
	//win.setStatusBar(wTitle);
	win.setLocation(wTop,wLeft);
	if (wCenter==false){
		if (wModal==false)
  			win.show();
		else
			win.show(true);
	}else{
		if (wModal==false)
			win.showCenter();
		else
			win.showCenter(true);		
	}
    Windows.focus(wName);
	win.toFront();
}
