function chk_text(sel, msg) {
	if(!sel.value){
		window.alert(msg);
		sel.focus();
		return false;
	}else{
		return true;
	}
}
function chk_text_length(sel, len, msg) {
	if(sel.value.length > len){
		window.alert(msg);
		sel.focus();
		return false;
	}else{
		return true;
	}
}
function chk_select(sel, msg) {
	if(sel.selectedIndex==0){
		window.alert(msg);
		sel.focus();
		return false;
	}else{
		return true;
	}
}
function chk_radio(sel, cnt, msg) {
	var n=0;
	for(i=0; i<cnt; i++){
		if(sel[i].checked){
			n++;
		}
	}
	if(n==0){
		window.alert(msg);
		sel[0].focus();
		return false;
	}else{
		return true;
	}
}

// ¼ýÀÚ¸¸ ¹ÞÀ½
function num_only(){
	if((event.keyCode<48) || (event.keyCode>57)){
		event.returnValue=false;
	}
}

