
openWindow = function(url, name, w, h, x, y, _scrollbars){
	var wW = (w!=null) ? w : screen.width-50;
	var wH = (h!=null) ? h : screen.height-150;
		
	var wX = (x!=null) ? x : Math.round(screen.width/2-(wW/2));
	var wY = (y!=null) ? y : Math.round(screen.height/2-(wH/2));

	var wscroll = (_scrollbars != null) ? _scrollbars : 0;

    var name = (name != null) ? name : 'dyPopup';

    var win = window.open(url, name, 'resizable=0,scrollbars='+wscroll+',status=0,location=0,toolbar=0,menubar=0,width='+wW+',height='+wH+',screenX='+wX+',screenY='+wY+',left='+wX+',top='+wY+'');

    return win;
}

