var win;

function openPop(url,width,height) {
	if (win && !win.closed) {
		win.focus();
	} else {
		win = window.open(url, 'win', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=' + width +',height=' + height);
	}
}

function checkPop() {
	return (win && !win.closed) ? true : false;
}

function closePop() {
	win.close();
}
