function idcheck(obj)
{
	var id_tmp = obj.value;	
	for(i = 0; i < id_tmp.length ; i++){
		if(id_tmp.charAt(i) >= '0' && id_tmp.charAt(i) <= '9')
			continue;
		else if(id_tmp.charAt(i) >= 'a' && id_tmp.charAt(i) <= 'z')
			continue;
		//else if(id_tmp.charAt(i) >= 'A' && id_tmp.charAt(i) <= 'Z')
			//continue;
		else{
			alert("\ È¸¿ø ¾ÆÀÌµð¿¡´Â ¼Ò¹®ÀÚ, ¼ýÀÚ¸¸ »ç¿ëÇÏ½Ç¼ö ÀÖ½À´Ï´Ù..\n´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä..");
			obj.select();
			obj.focus();
			return false;
		}
	}
	if(txtInput_IsEmpty(id_tmp))
	{
		alert("\nÈ¸¿ø ¾ÆÀÌµð¸¦ ÀÔ·ÂÇÏ¼¼¿ä..\n")
		obj.select();
		obj.focus();
		return false;
	}
	else if((id_tmp.length < 4 )||(id_tmp.length > 12))
	{
		alert("\nÈ¸¿ø ¾ÆÀÌµð´Â 4ÀÚ ÀÌ»ó 12ÀÚ¸® ÀÌÇÏÀÔ´Ï´Ù.\n ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä..\n");
		obj.select();
		obj.focus();
		return false;
	}	
	return true;
}

function passcheck( obj1, obj2 ){

	var id_tmp = obj1.value;	
	for(i = 0; i < id_tmp.length ; i++){
		if(id_tmp.charAt(i) >= '0' && id_tmp.charAt(i) <= '9')
			continue;
		else if(id_tmp.charAt(i) >= 'a' && id_tmp.charAt(i) <= 'z')
			continue;
		else if(id_tmp.charAt(i) >= 'A' && id_tmp.charAt(i) <= 'Z')
			continue;
		else{
			alert("\ È¸¿ø ¾ÆÀÌµð¿¡´Â ¿µ¹®, ¼ýÀÚ¸¸ »ç¿ëÇÏ½Ç¼ö ÀÖ½À´Ï´Ù..\n´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä..");
			obj.select();
			obj.focus();
			return false;
		}
	}

	if(txtInput_IsEmpty(id_tmp)){
		alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä");
		obj1.select();
		obj1.focus();
		return false;
	}
	else if((id_tmp.length < 6 )||(id_tmp.length > 12))
	{
		alert("\nÈ¸¿ø ºñ¹Ð¹øÈ£´Â 6ÀÚ ÀÌ»ó 12ÀÚ¸® ÀÌÇÏÀÔ´Ï´Ù.\n ´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä..\n");
		obj1.select();
		obj1.focus();
		return false;
	}	
	if(obj2!=null){
		if(obj1.value != obj2.value){
			alert("ºñ¹Ð¹øÈ£¿Í ºñ¹Ð¹øÈ£ È®ÀÎÀÌ ÀÏÄ¡ÇÏÁö ¾Ê½À´Ï´Ù.");
			obj2.select();
			obj2.focus();
			return false;
		}
	}
	return true;
}

function passcheck_e( obj1, obj2 ){

	var id_tmp = obj1.value;	
	for(i = 0; i < id_tmp.length ; i++){
		if(id_tmp.charAt(i) >= '0' && id_tmp.charAt(i) <= '9')
			continue;
		else if(id_tmp.charAt(i) >= 'a' && id_tmp.charAt(i) <= 'z')
			continue;
		else if(id_tmp.charAt(i) >= 'A' && id_tmp.charAt(i) <= 'Z')
			continue;
		else{
			alert("\ È¸¿ø ¾ÆÀÌµð¿¡´Â ¿µ¹®, ¼ýÀÚ¸¸ »ç¿ëÇÏ½Ç¼ö ÀÖ½À´Ï´Ù..\n´Ù½Ã ÀÔ·ÂÇÏ¼¼¿ä..");
			obj.select();
			obj.focus();
			return false;
		}
	}

	if(txtInput_IsEmpty(id_tmp)){
		alert("Please write password.");
		obj1.select();
		obj1.focus();
		return false;
	}
	else if((id_tmp.length < 6 )||(id_tmp.length > 12))
	{
		alert("password < 6 and password > 12");
		obj1.select();
		obj1.focus();
		return false;
	}	
	if(obj2!=null){
		if(obj1.value != obj2.value){
			alert("password and re_enter password difference.");
			obj2.select();
			obj2.focus();
			return false;
		}
	}
	return true;
}
