//##############################################################################
// poll Âü¿©
function vote(pidx,width,height,pollGroup){
	var aa= document.pollForm1.aa.value ;
	if( aa == 0){
		alert("\n´äº¯À» ¼±ÅÃÇÏ¼¼¿ä."); 
		return false;
	}else{
		var loc = "/s_poll/act_ok.php?pidx="+pidx+"&voteNum="+aa+"&pollGroup="+pollGroup;
		window.open(loc,"","width="+width+",height="+height+",menubar=no,scrollbars=yes,resize=no");
	}

}

//##############################################################################
// ÀÌ¹ÌÁö poll Âü¿©
function vote1(form){
	var aa= form.aa.value ;
	if( aa == 0){
		alert("\n\r´äº¯À» ¼±ÅÃÇÏ¼¼¿ä.\n\r"); 
		return false;
	}
	form.submit();
	return true ;
}

function vote_form(form){
	var aa= form.aa.value ;
	if( aa == 0){
		alert("\n\r´äº¯À» ¼±ÅÃÇÏ¼¼¿ä.\n\r"); 
		return false;
	}
	form.submit();
	return true ;

}


//##############################################################################
// poll ¸®½ºÆ®
function list(width,height,pollGroup){
	var loc = "/poll.php?pmode=poll_list&pollGroup="+pollGroup ;
	window.open(loc,"","width="+width+",height="+height+",menubar=no,scrollbars=yes,resize=no");
}



//##############################################################################
// poll °á°ú
function result(pidx,width,height,pollGroup){
	var loc = "/poll.php?pmode=poll_result&pidx="+pidx+"&pollGroup="+pollGroup;
	window.open(loc,"","width="+width+",height="+height+",menubar=no,scrollbars=yes,resize=no");
}


//##############################################################################
// ÀÌ¹ÌÁö poll Âü¿©
function imgAct(pidx,width,height,pollGroup){
	var loc = "/poll.php?pmode=poll_act&pidx="+pidx+"&pollGroup="+pollGroup;
	window.open(loc,"","width="+width+",height="+height+",menubar=no,scrollbars=yes,resize=no");
	return ;
}


//#####################################################################################
// »ó¼¼ÀÌ¹ÌÁö º¸±â
function imageView1(img,img_width,img_height){
	var loc = "/s_poll/PopView.php?img="+img;
	window.open(loc,'',"width="+img_width+",height="+img_height+",scrollbars=no");
}



//#####################################################################################
// ²¿¸®±Û ´Þ±â
function commentCheck(form){
	if(form.name.value == "" ){
		alert('\n\rÀÌ¸§À» ÀÔ·ÂÇÏ¼¼¿ä\n\r');
		form.name.focus();
		return false;
    }
    
	if(form.pass.value == "" ){
		alert('\n\rºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä\n\r');
		form.pass.focus();
		return false;
    }
    
	if(form.content.value == "" ){
		alert('\n\rÇÑ±Û 125ÀÚ ÀÌ³»ÀÇ ³»¿ëÀ» ÀÔ·ÂÇÏ¼¼¿ä\n\r');
		form.content.focus();
		return false;
    }

	return true;
}



//#####################################################################################
// ²¿¸®±Û »èÁ¦
function check5(form){
 	if(form.pass.value == "" ){
		alert('\n\rºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇÏ¼¼¿ä\n\r');
		form.pass.focus();
		return false;
    }

}
