/* °ø¹éÇÊµå Ã¼Å© */
function txtInput_IsEmpty(argStr) {
    if (argStr.length == 0) return true;
    for (var i = 0; i<argStr.length; i++) {
        if ( (" " == argStr.charAt(i)) || ("¡¡" == argStr.charAt(i)) )
    	    {           }
        else
            return false;
    }
    return true;
}

// ¼ýÀÚÀÎÁö ÆÇº°ÇÏ°í ¿À·ù¸Þ½ÃÁö Pop Up
 function IsIntegerRtnMsg(obj,msg,len)	{
 	var st = obj.value;
 	if (!txtInput_IsEmpty(st)) {
 		for (j=0; (j<st.length); j++) {
 			if (((st.substring(j,j+1) < "0")||(st.substring(j,j+1) > "9"))&&(st.substring(j,j+1)!="-")) {
 				alert(msg+"¼ýÀÚ·Î ÀÔ·ÂÇÏ½Ê½Ã¿À.");
 				obj.focus();
 				obj.select();
 				return false;
 			}
 		}
 	}	else	{
 			alert(msg+" ÀÔ·ÂÇÏ½Ê½Ã¿À");
 			obj.focus();
 			obj.select();
 			return false;
 	}
 	if (len != null) {
 		if (st.length != len)	{
 			alert(msg+""+len+"ÀÚ·Î ÀÔ·ÂÇÏ½Ê½Ã¿À.");
 			obj.focus();
 			obj.select();
 			return false;
 		}
 	}
 	return true;
 }	
 
 // ¼ýÀÚÀÎÁö ÆÇº°ÇÏ°í ¿À·ù¸Þ½ÃÁö Pop Up
 function IsIntegerChkMsg(obj,msg)	{
 	var st = obj.value;
 	if (obj.value != "" || obj.length > 0) {
 		for (j=0; (j<st.length); j++) {
 			if (((st.substring(j,j+1) < "0")||(st.substring(j,j+1) > "9"))) {
 				alert(msg+"¼ýÀÚ·Î ÀÔ·ÂÇÏ½Ê½Ã¿À.");
 				obj.focus();
 				obj.select();
 				return false;
 			}
 		}
 	}	else	{
 			alert(msg+" ÀÔ·ÂÇÏ½Ê½Ã¿À");
 			obj.focus();
 			obj.select();
 			return false;
 	}
 	
 	return true;
 }

