function chkradio1(){   
	var m;
	var check			 
	check=false
	
	m = document.pollview1.selbutton.length				 
	 
	for (var i= 0 ; i < m ; i++){				 
		if ( document.pollview1.selbutton[i].checked==true){
			check= true		
		}			
	}
	
	if (check==false) {			
		alert("¼±ÅÃÇØ ÁÖ¼¼¿ä")			
		return false			
	}			
return true		 
}


function chksubmit1(){		 
	if(chkradio1()) {
		document.pollview1.submit();
	}
}

function add_file(sid) {
	winobj = window.open('poll_file_upload.asp?sid='+sid, 'event', 'width=400, height=150, top=200, left=200');
	winobj.focus();
}

function chkcom() {
	if(document.getElementById("writer") == null) {
	}else {
		if(document.regfrm.Writer.value == "") {
			alert('ÀÛ¼ºÀÚ¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
			document.regfrm.Writer.focus();
			return;
		}
	}

	if(document.getElementById("pass") == null) {
	}else {
		if(document.regfrm.Password.value == "") {
			alert('ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇÏ¼¼¿ä');
			document.regfrm.Password.focus();
			return;
		}
	}

	if(document.regfrm.comments.value=='') {
		alert('ÇÑÁÙ ´ä±ÛÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä');
		document.regfrm.comments.focus();
		return;
	}
	return true;
 }
 
 
 function submit_poll_com(){
	
	if(chkcom())	{	
		document.regfrm.submit();
	}
 
 }


 function del_poll_com(comID,pollID) {
	document.frmcomment.comID.value = comID;
	document.frmcomment.pollID.value = pollID;
	document.frmcomment.password.value = "0000000000";
	document.frmcomment.submit();
}

function guest_del_poll_com(comID,pollID) {
	window.open('/news/poll/pollDeleteComment.asp?comID='+comID+'&pollID='+pollID,'','width=300, height=100,scrollbars=no,resizable=no,menubar=no,status=no,toolbar=no, directories=no, location=no,top=300,left=300');
}