
function openWindow(url, id, w, h) {
	window.open(url, id, 'width='+w+',height='+h+',location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,titlebar=no,toolbar=no');
}

function getCanvasWidth() {
	return document.body.clientWidth || innerWidth;
}
function getCanvasHeight() {
	return document.body.clientHeight || innerHeight;
}

function MoveToCenter() {
	window.moveTo(((screen.width-getCanvasWidth()-30)/2),((screen.height-getCanvasHeight()-100)/2))
}

function btn_Clk(FnBtn) {
	var Lab = document.getElementById(FnBtn);

	if (Lab.style.display == "none") {
		Lab.style.display = "";
	} else {
		Lab.style.display = "none";
	}
}

