function ShowSubComment(CommNo)
{
	SelectComm = eval("document.all.List_"+CommNo+".style.display");
	if(SelectComm=="none")
		eval("document.all.List_"+CommNo+".style.display='block'");
	else
		eval("document.all.List_"+CommNo+".style.display='none'");
}
function recApp(recNum) {
	var ref = "appRecomm.php?number="+recNum;
	window.open(ref, 'arec', 'width=380, height=175');
}
function scrapApp(recNum,kind) {
	var ref = "/inc/sub/appScrap.php?number="+recNum+"&kind="+kind;
	window.open(ref, 'ascr', 'width=380, height=175');
}
function subCommIn() {
	var fn = document.subcommform;
	if(fn.subcomment.value == "") {
		alert("내용을 입력하세요!");
		fn.subcomment.focus();
		return false;
	}
	fn.action = "subCommInput.php";
	fn.submit();
}
function subCommIn2() {
	var fn = document.subcommform;
	if(fn.subcomment.value == "") {
		alert("내용을 입력하세요!");
		fn.subcomment.focus();
		return false;
	}
	fn.action = "subCommInput.php";
	fn.submit();
}
function show_cal(formname,field) {
	var ref = "/inc1/calendar.php?formname="+formname+"&field="+field;
	window.open(ref,"cal","width=180,height=210,left=180,top=200");
}
function voteIt() {
	var fn = document.votepoll;
	var no = fn.voteNum.length;
	var chradio = true;
	var cnt=0;

		for(var i = 0; i < no; i++ ){
			if(fn.voteNum[i].checked == true){
				cnt++;
			}
		}

		if(cnt==0){
			  alert("선택하여 주세요.");
			  return;
		}else{
			fn.action = "pollVote.php";
			fn.submit();
		}

}
