function launchWindow(url) {

	

	if ( editContentLabel=='' || typeof(editContentLabel)=='undefined' ){
		var editContentLabel = 'Edit content:';
	}
	
	if(blankerPresent){
		var myBlanker = new Blanker();
		myBlanker.onUncover=function(){
			
		}
	}
	
	var newWindow = new Windower();
	var windowDim = getScreenDimensions();
	var sa = getScrollAmount();
	
	if(blankerPresent){
		
		myBlanker.onUncover=function(){
			newWindow.close();
		}
	}
	
	newWindow.onOpen=function(){
		if(blankerPresent){
			myBlanker.cover();
		}
	}
	
	newWindow.onClose=function(){
		if(blankerPresent){
			myBlanker.uncover();
		}
	}
	
	newWindow.buildWindow(windowDim.w/2 - defaultWindowWidth/2, sa.y+(windowDim.h/2 - defaultWindowHeight/2), defaultWindowWidth, defaultWindowHeight, 999, {supressButtonGraphics:true});
	newWindow.setTitle(editContentLabel);
	newWindow.setStyle("titlebar", ["background", "fontSize", "color", "border"], ["#ffffff", "small", "#aaaaaa", "0px white solid"]);
	newWindow.setStyle("closebutton", ["background", "border"],["url(admin/html_images/closebtnout.jpg) no-repeat", "none"]);
	newWindow.setStyle("minimisebutton", ["background", "border"],["url(admin/html_images/minbtn.gif) no-repeat", "none"]);
	newWindow.setStyle("resizecorner", ["backgroundColor", "backgroundImage"], ["#CCCCCC", "url(admin/html_images/resizecornerbg.gif)"]);
	newWindow.titleBarInner.style.position = "absolute";
	newWindow.titleBarInner.style.top = "3px";
	newWindow.titleBarInner.style.left = "2px";
	newWindow.titleBarInner.style.background = "none";
	newWindow.titleBarInner.style.textAlign = "left";
	newWindow.onMinimise = function() {
		newWindow.setStyle("minimisebutton", "background","url(admin/html_images/maxbtn.gif) no-repeat");
	};
	newWindow.onMaximise = function() {
		newWindow.setStyle("minimisebutton", "background","url(admin/html_images/minbtn.gif) no-repeat");
	};
	newWindow.closeBtn.onmouseover = function() {
		newWindow.setStyle("closebutton", ["background", "border"],["url(admin/html_images/closebtnin.jpg) no-repeat", "none"]);
	};
	newWindow.closeBtn.onmouseout = function() {
		newWindow.setStyle("closebutton", ["background", "border"],["url(admin/html_images/closebtnout.jpg) no-repeat", "none"]);
	};

	//alert("launch window");
	winReq.open("GET", url);
	winReq.onreadystatechange = function() {
		if (winReq.readyState==4) {
			if ( winReq.responseText.indexOf('<!--IFRAME-->') == -1 ){
				newWindow.setContent(winReq.responseText);
			} else {
				newWindow.setContent(url);
			}
			tabber = new Tabber(); 
			//alert($_t(newWindow.content, "FORM")[0].id);
			tabber.build($_t(newWindow.content, "FORM")[0], "FIELDSET", $("tabber_view"));
		}
	}
	winReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;');
	winReq.send(null);
	
	function getPageSize() {	
		var xScroll, yScroll, windowWidth, windowHeight;
		if (window.innerHeight && window.scrollMaxY) {
			xScroll = this.doc.scrollWidth;
			yScroll = (this.isFrame ? parent.innerHeight : self.innerHeight) + (this.isFrame ? parent.scrollMaxY : self.scrollMaxY);
		} else if (this.doc.body.scrollHeight > this.doc.body.offsetHeight){
			xScroll = this.doc.body.scrollWidth;
			yScroll = this.doc.body.scrollHeight;
		} else {
			xScroll = this.doc.getElementsByTagName("html").item(0).offsetWidth;
			yScroll = this.doc.getElementsByTagName("html").item(0).offsetHeight;
			xScroll = (xScroll < this.doc.body.offsetWidth) ? this.doc.body.offsetWidth : xScroll;
			yScroll = (yScroll < this.doc.body.offsetHeight) ? this.doc.body.offsetHeight : yScroll;
		}
		if (self.innerHeight) {
			windowWidth = (this.isFrame) ? parent.innerWidth : self.innerWidth;
			windowHeight = (this.isFrame) ? parent.innerHeight : self.innerHeight;
		} else if (document.documentElement && document.documentElement.clientHeight) {
			windowWidth = this.doc.documentElement.clientWidth;
			windowHeight = this.doc.documentElement.clientHeight;
		} else if (document.body) {
			windowWidth = this.doc.getElementsByTagName("html").item(0).clientWidth;
			windowHeight = this.doc.getElementsByTagName("html").item(0).clientHeight;
			windowWidth = (windowWidth == 0) ? this.doc.body.clientWidth : windowWidth;
			windowHeight = (windowHeight == 0) ? this.doc.body.clientHeight : windowHeight;
		}
		var pageHeight = (yScroll < windowHeight) ? windowHeight : yScroll;
		var pageWidth = (xScroll < windowWidth) ? windowWidth : xScroll;
		return new Array(pageWidth, pageHeight, windowWidth, windowHeight);
	};
}