function bbsTrim(str)  // Remove Blank Function
{
	var index, len, bJudge

	while(true)
	{
		bJudge = true;
		index = str.indexOf(' ');
		if (index == -1) break;
		if (index == 0)
		{
			len = str.length;
			str = str.substring(0, index) + str.substring((index+1),len);
		}
		else
		{
			bJudge = false;
		}

		index = str.lastIndexOf(' ');
		if (index == -1) break;
		if (index == str.length - 1)
		{
			len = str.length;
			str = str.substring(0, index) + str.substring((index+1),len);
		}
		else
		{
			if(bJudge == false)
			{
				break;
			}
		}
	}
	return str;
}

function bbsStringValidate(strString)  //¹®ÀÚ¿­À» °Ë»çÇÏ¿© ¿µ¹®ÀÚ¿Í ¼ýÀÚ¸¸ °¡´ÉÇÏµµ·Ï ÇÑ´Ù.(True False ¹ÝÈ¯)
{
	for(var i=0; i < strString.length; i++)
	{
		var strCode = strString.charCodeAt(i);

		if((strCode >= 97 && strCode <= 122) || (strCode >= 65 && strCode <= 90) || (strCode >= 48 && strCode <= 57))
		{
		}	
		else
		{
			return false;
		}
	}
	
	return true;
}

function WindowOpen(u,t,c,w,h)
{
	wid = (screen.availWidth - w)/2;
	hei = (screen.availHeight - h)/2;

	window.open(u,t,c + ',left=' + wid + ',top=' + hei);
} 


