function _checkID()
{
	window.open('CheckID.aspx?id='+document.form1.elements["txtID"].value,"","status=no resizable=no height=200 width=300")
}
// ¹®ÀÚ¿­ÀÌ ³ÎÀÌ°Å³ª ºñ¾îÀÖ´ÂÁö È®ÀÎ
function isEmpty(s)
{ 
	return ((s == null) || (s.length == 0)) 
}

// ¼ýÀÚÀÎÁö È®ÀÎ
function isDigit(c)
{ 
	return ((c >= '0') && (c <= '9')) 
}

// ¿µ¹®ÀÚÀÎÁö È®ÀÎ
function isLetter(c)
{
	return (((c >= 'a') && (c <= 'z')) || ((c >= 'A') && (c <= 'Z')))
}

// ¼ýÀÚ·Î¸¸µÈ ¹®ÀÚ¿­ÀÎÁö È®ÀÎ.
function isDigitString(s)
{
	for(i=0; i<s.length; i++)
	{
		ch = s.charAt(i)
		
		if(!isDigit(ch))
			return false
	}
	return true
}

// ¿µ¹®ÀÚ·Î¸¸µÈ ¹®ÀÚ¿­ÀÎÁö È®ÀÎ.
function isLetterString(s)
{
	for(i=0; i<s.length; i++)
	{
		ch = s.charAt(i)
		
		if(!isLetter(ch))
			return false
	}
	return true
}

// ¿µ¹®ÀÚ/¼ýÀÚ·Î¸¸µÈ ¹®ÀÚ¿­ÀÎÁö È®ÀÎ	
function isLetterAndDigitString(s)
{	
	for(i=0; i<s.length; i++)
	{		
		c = s.charAt(i)
		
		if(!(isDigit(c) || isLetter(c))) return false
	}
	return true
}


// ÇÑ±Û·Î¸¸µÈ ¹®ÀÚ¿­ÀÎÁö È®ÀÎ
function isHangulString(s)
{	
	for(i=0; i<s.length; i++)
	{
		var code = s.charCodeAt(i)
		var ch = s.substr(i,1).toUpperCase()
		
		code = parseInt(code)
		
		if(!((ch < "0" || ch > "9") && (ch < "A" || ch > "Z") && ((code > 255) || (code < 0))))
		{
			return false
		}
	}
	return true
}


// ÀÌ¸ÞÀÏ ¹®ÀÚ¿­ÀÎÁö È®ÀÎ
function isEmailString(s)
{
	cntAt = 0
	cntDot = 0
	whereAt = 0
	whereFirstDot = 0
	
	for(i=0; i<s.length; i++)
	{
		ch = s.charAt(i)
		
		if(ch == '@')
		{
			if(i == 0 || i+5 > s.length) 
				return false
			whereAt = i
			cntAt++
		}
		else if(ch == '.')
		{
			if(i < 2 || i == s.length-1 || i == whereAt+1 || i == whereAt-1) 
				return false
			
			if(++cntDot == 2)
			{
				if(i != whereFirstDot+3)
					return false
			}
			else
				whereFirstDot = i
			
		}
		else if(!(isDigit(ch) || isLetter(ch) || ch == '_' || ch == '-')) 
		{
			return false
		}
			
	}
	
	if(cntAt != 1 || !(cntDot == 1 || cntDot == 2))
		return false
		
	return true
		
}

function isPhoneNumber(s1, s2, s3)
{
	if(s1.length < 2 || s1.length > 4)
		return false
	if(s2.length < 3 || s2.length > 4)
		return false
	if(s3.length != 4)
		return false
	
	if(!isDigitString(s) || !isDigitString(s2) || !isDigitString(s3))
		return false
	
	return true
	
}
/*			
*/