function openNewWindow(url, width, height, scrollbars) 
{
    if ((screen.height-height)<=150)
    	var TopPosition = 0;
    else
	    var TopPosition = (screen.height) ? (screen.height-height)/2 : 0;
    // - - - -
    var LeftPosition = (screen.width) ? (screen.width-width)/2 : 0;    
    // - - - - 
    var settings = 'scrollbars=' + scrollbars + ',menubar=no,height=' + height + ',width=' + width + ',resizable=yes,toolbar=no,location=no,status=no,' + 'top=' + TopPosition + ',left=' + LeftPosition;
    window.open(url,'',settings);    
}
