// JavaScript Document - Global Functions
function newPopup(URL, name, W, H, center, X, Y) {
	if (center == true) {
			X = (screen.width/2)-(W/2);
			Y = (screen.height/2)-(H/2);
	}
	
	if(H <= 400){
		var newPop = window.open(URL, name, 'width='+W+',height='+H+',toolbars=no, scrollbars=yes, status=no,left='+X+',top='+Y+'');
	}else{
		var newPop = window.open(URL, name, 'width='+W+',height='+H+',toolbars=no, scrollbars=no, status=no,left='+X+',top='+Y+'');
	}
	
	if (window.focus) {
		newPop.focus();
	}
	return newPop;
}