//¼³¹®Á¶»ç ±Û¾²±â
function vote_send(){
  if (vote_form.name.value=="") {
		alert("ÀÛ¼ºÀÚ¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		vote_form.name.focus();
		return;
  }
  if (vote_form.title.value=="") {
		alert("¼³¹®Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		vote_form.title.focus();
		return;
  }
  if (vote_form.ex1.value=="") {
		alert("º¸±â1¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		vote_form.ex1.focus();
		return;
  }
  if (vote_form.ex2.value=="") {
		alert("º¸±â2¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		vote_form.ex2.focus();
		return;
  }
  if (vote_form.ex3.value=="") {
		alert("º¸±â3¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		vote_form.ex3.focus();
		return;
  }
  if (vote_form.ex4.value=="") {
		alert("º¸±â4¸¦ ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		vote_form.ex4.focus();
		return;
  }
  vote_form.action="vote_write_ok.asp";
  vote_form.submit();
}


//ÅõÇ¥°á°úº¸±â
function vote_pop(ident)
{
	url = "../popup/pop_poll2.asp?ident=" + ident ;
	window.open(url, "v_p","toolbar=no, menubar=no, scrollbars=no, resizable=no, width=600, height=440");
}

//ÅõÇ¥ÇÏ±â
function vote_submit(ident){
 if (AnswerCheck() == false) { alert("¼±ÅÃÇØ ÁÖ½Ê½Ã¿ä."); return; }

  for(var i=0; i < vote_form.ex.length ; i++){
   if(vote_form.ex[i].checked == true){
	var b = vote_form.ex[i].value;
   }
  }

  url = "../poll/poll_ok.asp?ex=" + b + "&ident=" + ident ;
  window.open (url,"vote_submit","toolbar=no, menubar=no, scrollbars=no, resizable=yes, width=600, height=440, left=50, top=50");
}

//¶óÀÌºêÆúÅõÇ¥ÇÏ±â
function livevote_submit(ident){
 if (AnswerCheck() == false) { alert("¼±ÅÃÇØ ÁÖ½Ê½Ã¿ä."); return; }

  for(var i=0; i < vote_form.ex.length ; i++){
   if(vote_form.ex[i].checked == true){
	var b = vote_form.ex[i].value;
   }
  }

  location.href = "../poll/livepoll_ok.asp?ex=" + b + "&ident=" + ident ;
}

function AnswerCheck()	{
 var form = document.vote_form;
 var len = form.ex.length;

 for(var i=0; i<len; i++){
  if(form.ex[i].checked){
	return true;
	break;			
  }
 }	
 return false;
}

//ÀÌ¹Ì ÅõÇ¥
function vote_nowview(ident,part){
 alert("ÀÌ¹Ì ÅõÇ¥ÇÏ¼Ì½À´Ï´Ù");

/* if (part == "1"){
	 url = "../popup/pop_poll2.asp?ident=" + ident ;
     window.open (url,"vote_view","toolbar=no, menubar=no, scrollbars=no, resizable=yes, width=600, height=440, left=50, top=50");
 }else{
	 location.href = "livepoll_rank.asp?idx="+ident+"&part=1";
 }*/
 
}

//°¨»óÆò
function star_send(){
 aaa = star_form.content.value;
 if (star_form.content.value=="") {
		alert("°¨»óÆòÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä");
		star_form.content.focus();
		return;
  }
  if (aaa.indexOf("<")>-1) {
		alert("ÅÂ±×´Â »ç¿ëÇÒ¼ö ¾ø½À´Ï´Ù.");
		star_form.content.focus();
		return;
  }
  if (aaa.length > 51) {
		alert("µ¶ÀÚÆòÀº 50ÀÚ ÀÌÇÏ ÀÔ´Ï´Ù");
		star_form.content.focus();
		return;
  }
  star_form.submit();
}

var boodschap = 'ÀÏº» ¸¸È­ÀÇ Áø¼ö!!! ¿ÃÄÃ·¯ ¸¸È­¸¦ ¸Á°¡Â¯¿¡¼­ Áñ±â¼¼¿ä!!!';
function dgstatus()
{
      window.status = boodschap;
	timerID= setTimeout("dgstatus()", 30);
}

dgstatus();