// JavaScript Document
function popup(url, name, w, h){
    myleft = (screen.width) ? (screen.width - w)/2 : 100;
		mytop = (screen.height) ? (screen.height - h)/2 : 100;
		properties = 
			"width=" + w +
			",height=" + h +
			",status=no" +
			",resizable=no" +
			",scrollbars=no" +
			",top=" + mytop +
			",left=" + myleft;
    window.open(url, name, properties);
}

