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