//document.title = "AHABA - ±Û·Î¹ú½ºÅ¸Æ÷ÅÐ ¾ÆÇÏ¹Ù";
document.title = "AHABA - Global Star Portal";

function bluring() {
	if (event.srcElement.tagName == "A" || event.srcElement.tagName == "IMG") document.body.focus();
}

document.onfocusin = bluring;

function wopen(url, t, w, h) {
	var sw = (screen.Width - w) / 2;
	var sh = (screen.Height - h) / 2;

	window.open(url, t, 'Width=' + w + 'px, Height=' + h + 'px, Left=' + sw + ', Top=' + sh);
}

function Space_All(str) {
	var index, len;
	while (true) {
		index = str.indexOf(" ");
		if (index == -1) break;
		len = str.length;
		str = str.substring(0, index) + str.substring((index + 1), len);
	}

	return str;
}

function keydown() {
	if (event.keyCode == 27) {
		musicstop();
		return false;
	}
}

function musicstop() {
	if (top && top.procFrame) {
		var PROC_FRAME = eval('top.procFrame');
		try { PROC_FRAME.P_stop(); }
		catch (e) {}
	}
}

//·Î±×ÀÎ ÆË¾÷
function wopen_login(url, t) {
	var w=400;
	var h=392;
	var sw = (screen.Width - w) / 2;
	var sh = (screen.Height - h) / 2;

	window.open(url, t, 'Width=' + w + 'px, Height=' + h + 'px, Left=' + sw + ', Top=' + sh);
}

//¾ÆÇÏ¹Ù LPG°¡ÀÌµå ÆË¾÷
function guide_pop(){
	window.open('/guide/guide.php','guide','scrollbars=auto,left=0, top=0,width=1024,height=700');
	}