$(document).ready(function(){
var Check_data;
$('input:checkbox[name=insu_type]').each(function() {
if($(this).is(':checked'))
Check_data+= "|"+($(this).val());
});
var R_check = "";
var splitDATA = Check_data.split("|");
for (var i=1; i<splitDATA .length; i++) {
console.log("=="+splitDATA [i]);
R_check = splitDATA [i];
}
if(R_check == "R"){
if($("#date").val() == "") {
alert("날짜를 입력하세요.");
$("#date").focus();
return false;
}
if($("#time").val() == "") {
alert("시간을 입력하세요.");
$("#time").focus();
return false;
}
}
});