function TSOpenWindow(URL,windowWidth, windowHeight, windowResizable, windowScrollbars) {
	var TSWindow = "";
	var tsHeight=0;
	var tsWidth=0;
	var increment=10;
	var windowFeatures;
	var left, top;
	
	if(!Number(windowWidth))
		windowWidth = window.screen.availWidth;
	if(!Number(windowHeight))
		windowHeight = window.screen.availHeight;
	
	left = (screen.width) ? (screen.width-Number(windowWidth))/2 : 0;
	top = (screen.height) ? (screen.height-Number(windowHeight))/2 : 0;

	windowFeatures = "left="+left+", top="+top+", resizable="+windowResizable+", scrollbars="+windowScrollbars;	
	try{
	if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
		TSWindow = window.open(URL, '', windowFeatures);
		while(tsHeight < windowHeight || tsWidth < windowWidth ){
			tsWidth = (tsWidth < windowWidth ) ? tsWidth+increment : windowWidth;
			tsHeight = (tsHeight < windowHeight ) ? tsHeight+increment : windowHeight;
			TSWindow.resizeTo(tsWidth, tsHeight);
			
		}
	}
	else
		TSWindow = window.open(URL, '', windowFeatures);
	}
	catch(err){return false;}	
	return;	
}
