// JavaScript Document

function openDemoWindow(url, win_name, w_size, h_size)	{	

	    var size = 'width=' + w_size + ', height=' + h_size;
		var a_window = window.open(url,"win_name", size);    	
		var screen_width = window.screen.availWidth;
		var screen_height = window.screen.availHeight;
		var height_size = parseInt(h_size / 2);
		var width_size = parseInt(w_size / 2);
		var left_point = parseInt(screen_width / 2) - width_size;
		var top_point = parseInt(screen_height / 2) - height_size;
		a_window.moveTo(left_point, top_point);
				
	}
