<!--
    function pollExec ( myForm, displayMode, poll_id, width, height ) {

        var obj = eval ( "myForm.d_poll_item" );

        if ( typeof( obj ) == 'undefined' ) {
            alert ( 'You are not authorized to vote.' );
            return false;
        }
        var chk = checkedIndex ( obj );

        if ( chk < 0 ) {
            alert ( 'Please choose an option.' );
            return false;
        } else {
            poll_no = parseInt ( chk );
            if ( displayMode == '1' ) { // ÇöÀçÃ¢
                document.PollForm.poll_exec.value           = 'poll_exec';
                document.PollForm.poll_id.value             = poll_id    ;
                document.PollForm.poll_no.value             = poll_no + 1;
                document.PollForm.submit()                               ;
            } else if ( displayMode == '2' ) { // »õÃ¢
//              var pollWin = popWindow('about:blank',width, height,-1, -1, 'pollWin');
//              var pollWin = window.open('about:blank','pollWin','toolbar=no,menubar=no,resizable=yes,scrollbars=yes,top=0,left=0,width=800,height=600');
//              var pollWin = popWindow('about:blank',width, height,-1, -1, 'pollWin');

                var pollWin = window.open('about:blank','pollWin','toolbar=no,menubar=no,resizable=no,scrollbars=yes,top=0,left=0,width=' + width + ',height=' + height );
                pollWin.focus();
                document.PollForm.target ='pollWin';
                document.PollForm.poll_exec.value           = 'poll_exec';
                document.PollForm.poll_id.value             = poll_id    ;
                document.PollForm.poll_no.value             = poll_no + 1;
                document.PollForm.submit()                               ;
            }
        }
/*
        if ( displayMode == '1' ) { // ÇöÀç Ã¢
            
        } else { // »õÃ¢
            var url = baseDir + 'dpoll.php?id=' + id + '&exec=&no=' + no;
            document.PollForm.exec.value = 'poll_exec';
            document.PollForm.id.value   = id         ;
            document.PollForm.no.value   = checkedIndex ( obj );
            var noticePop = window.open(url,'notice_pop','toolbar=no,menubar=no,resizable=yes,scrollbars=no,top=0,left=0,width=800,height=600');
            noticePop.focus();
        }
*/
    }

    function pollResult ( displayMode, baseDir, poll_id, width, height  ) {
        var pollPop;
        var url  = '';
        if ( displayMode == '1' ) { // ÇöÀç Ã¢
            url = baseDir + 'dpoll.php';
            document.PollForm.target                 = ''               ;
            document.PollForm.poll_id.value          = poll_id          ;
            document.PollForm.poll_exec.value        = 'poll_result'    ;
            document.PollForm.poll_no.value          = ''               ;
            document.PollForm.action                 = url              ;
            document.PollForm.submit();
        } else { // »õÃ¢

            url  = baseDir + 'dpoll.php?poll_id=' + poll_id;
            url += '&poll_id='           + poll_id         ;
            url += '&poll_exec='         + 'poll_result'   ;
            var pollWin = window.open(url,'pollWin','toolbar=no,menubar=no,resizable=no,scrollbars=yes,top=0,left=0,width=' + width + ',height=' + height );

/*
            var pollWin = window.open('_blank','pollWin','toolbar=no,menubar=no,resizable=no,scrollbars=yes,top=0,left=0,width=' + width + ',height=' + height );
            url = baseDir + 'dpoll.php'
            document.PollForm.target                 = 'pollWin'        ;
            document.PollForm.poll_id.value          = poll_id          ;
            document.PollForm.poll_exec.value        = 'poll_result'    ;
            document.PollForm.poll_skin_name.value   = poll_skin_name   ;
            document.PollForm.poll_start_date.value  = poll_start_date  ;
            document.PollForm.poll_end_date.value    = poll_end_date    ;
            document.PollForm.poll_title_limit.value = poll_title_limit ;
            document.PollForm.poll_opiniony_yn.value = poll_opiniony_yn ;
            document.PollForm.poll_display_mode.value= displayMode      ;
            document.PollForm.poll_no.value          = ''               ;
            document.PollForm.action                 = url              ;
            document.PollForm.submit();
*/
            pollWin.focus();
            return false;
        }
    }

    function pollWriteCommentData(myForm) {
        if ( typeof ( myForm.name ) == 'object' && ( getValue(myForm.name) == '' || inStrAllBlankCheck ( myForm.name ) ) ) {
            alert ("Please type name.");
            myForm.name.focus();
            return false;
        }

        if ( typeof ( myForm.password ) == 'object' && myForm.password.value == '' ) {
            alert ("Please type password.");
            myForm.password.focus();
            return false;
        }

        if ( typeof ( myForm.memo ) == 'object' && ( myForm.memo.value == '' || inStrAllBlankCheck ( myForm.memo ) ) ) {
            alert ("Please type content.");
            myForm.memo.focus();
            return false;
        }
        if ( typeof ( myForm.poll_id ) == 'undefined' ) {
            alert ( 'Comment Skin Error.\nPlease contact the webmaster.' );
            return;
        }

        var url = '';
            url += getOnlyURL(document.location.href) + '?poll_exec=insert_comment_exec';
            if ( typeof(id) != 'undefined' ) { url += '&id=' + id; } // °Ô½ÃÆÇ ¾ÆÀÌµð
            url += '&exec_gubun=poll'; // ¼³¹® ÀÇ°ß±Û ÀÔ·Â
/*
            if ( typeof ( id ) != 'undefined' ) {
                url += '&id=' + id;
            }
            if ( typeof ( document.PageForm.exec.value ) != 'undefined' ) {
                url += '&exec=' + document.PageForm.exec.value;
            }
*/
//          url += '&poll_skin_name=' + poll_skin_name + '&poll_start_date=' + poll_start_date + '&poll_end_date=' + poll_end_date + '&poll_title_limit=' + poll_title_limit + '&poll_opiniony_yn=' + poll_opiniony_yn + '&poll_display_mode=' + poll_display_mode;
        myForm.action = url;
    }

    function sendMail(myForm) {
        if ( myForm.from_mail.value != '' && !isEmail(myForm.from_mail) ) {
            alert ( 'Please type email address again.' );
            myForm.from_mail.focus();
            return false;
        }

        if ( myForm.from_name.value == '' || inStrAllBlankCheck(myForm.from_name) ) {
            alert ( 'Please type name.' );
            myForm.from_name.focus();
            return false;
        }

        if ( myForm.title.value == '' || inStrAllBlankCheck(myForm.title) ) {
            alert ( 'Please type subject.' );
            myForm.title.focus();
            return false;
        }

        if ( myForm.content.value == '' || inStrAllBlankCheck(myForm.content) ) {
            alert ( 'Please type content.' );
            myForm.content.focus();
            return false;
        }

        document.MailForm.from_mail.value = myForm.from_mail.value;
        document.MailForm.from_name.value = myForm.from_name.value;
        document.MailForm.title.value     = myForm.title.value    ;
        document.MailForm.content.value   = myForm.content.value  ;
        document.MailForm.action='form_mail.php?send_mail_method=' + document.MailForm.send_mail_method.value;
        document.MailForm.submit();
        return false; // myFormÀÇ ¼­ºê¹Ô ½ÇÇà ÁßÁö
    }
//-->
