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

}

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

}

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

//========================================================================
// poll result
//========================================================================
function result(pidx,width,height,pollGroup){
	var loc = "/poll/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/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 = "/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.pas.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;
    }

}