var prjChooser, btnPic;
		
function goToProject(data){
	window.open('project.cfm?pid=' + data.id + '&hg=1', '_self');
}
		
function chooser(pt){	
	window.open('project_chooser.cfm?projecttype=' + pt, '_self' );
}

function choose(pt){
	var arrayPageSize = getPageSize();
	var arrayPageScroll = getPageScroll();

	var myWidth = arrayPageSize[0];
	var myHeight = arrayPageSize[1];
	var myTop = arrayPageScroll[1] + (arrayPageSize[3] / 10);
	var myLeft = arrayPageScroll[0];

	var div_ajax = document.getElementById('div-ajax');

	
    prjChooser = new ProjectChooser({
    	url:'/admin/data/get_project_list.cfm?project_type=' + pt,
    	width 	: div_ajax.clientWidth, 
    	height	: div_ajax.clientHeight + 250, //Changed from 150 to 250
		top		: div_ajax.offsetTop,		
		left 	: getOffsetLeft('div-ajax')
    });
	
	prjChooser.show(this.Ext.get('div-ajax').getFxEl(), goToProject);
	
}

