function openWindow(theURL,winName) { 
	var screenWidth 	= screen.availWidth;
	var screenHeight 	= screen.availHeight;
	
	var winWidth = 1024;
	var winHeight = 768;
	
	var features = '';
		
	if (screenWidth  <= 1024) {
		winWidth = screenWidth;
		winHeight = screenHeight;
	} 
	if (screenWidth  <= 1280 && screenWidth  > 1024) {
		winWidth = 1200;
		winHeight = 900;
	} 
	if (screenWidth  <= 1600 && screenWidth  > 1280) {
		winWidth = 1500;
		winHeight = 1000;
	} 

	var screenCenterX = (screenWidth - winWidth) / 2;
	var screenCenterY = (screenHeight - winHeight) / 2;
	
	winWidth = screenWidth;
	winHeight = screenHeight;
	screenCenterX = 0;
	screenCenterY = 0;
	
	features += 'width=' + winWidth;
	features += ',height=' + winHeight;
	features += ',left=' + screenCenterX;
	features += ',top=' + screenCenterY;	
	//alert (features);
	window.open(theURL,winName,features);
}
function resizeWindow() {	
	var winWidth 	= $(window).width();
	var winHeight 	= $(window).height();

	if (winWidth < 1024 || winHeight < 768) {
		self.resizeTo(1024, 768);
	}	
}