function ajaxpollProcess() { return false; } function com_poll_formCheck(poll_id, template) { Ajax.init("/cjs/ajax/ajax.poll.php?com_poll_id="+poll_id+"&template="+template, null , 'GET' , null , false , false ); var pform = "com_poll"; var rsXml = Ajax.rltXml(); var auth = Ajax.rltXmlOnce(rsXml, "auth"); var status = Ajax.rltXmlOnce(rsXml, "status"); var com_poll_id = Ajax.rltXmlOnce(rsXml, "com_poll_id"); var MEMBER_AUTH = Ajax.rltXmlOnce(rsXml, "MEMBER_AUTH"); if(Common.int(com_poll_id) > 0) { if(Common.int(MEMBER_AUTH) < Common.int(auth)) { if(Common.int(MEMBER_AUTH) == 0) { alert('·Î±×ÀÎÀ» ÇØÁÖ¼¼¿ä.'); } else { alert('ÅõÇ¥ ±ÇÇÑÀÌ ¾ø½À´Ï´Ù.'); } return false; } } switch (Common.int(status)) { case 2 : alert('ÅõÇ¥±â°£ÀÌ Áö³­ ¼³¹®ÀÔ´Ï´Ù.'); return false; break; case 3 : alert('ÀϽÃÁßÁöµÈ ¼³¹®ÀÔ´Ï´Ù.'); return false; break; default : FormCheck.setCheck(pform, 'com_poll_select', 'y', 'º¸±â', 'checkbox', '', '', ''); var jsCheck = FormCheck.init(pform); if(jsCheck == false) { return false; } else { return true; } break; } } function com_poll_formSubmit() { var poll_id = document.getElementById('com_poll_id'); var template = document.getElementById('template'); var check = com_poll_formCheck(poll_id, template); if(check == false) { return false; } else { window.open('/chtml/poll.php',document.com_poll.target,'width=447,height=354,scrollbars=yes,resizable=no'); return true; } } function com_poll_result(id, tem) { window.open('/chtml/poll.php?com_poll_basic=result&com_poll_id=' + id + '&template=' + tem, 'cafe24_poll_result', 'width=447,height=354,scrollbars=yes,resizable=no'); }