	function voteHandler(event_id,item_pkid){
		if(confirm("您確定要投票嗎？")){
			waitting("投票中，請您稍後...");
			var callback = {
				success : function(o) { YAHOO.vw.wait.hide(); eval(o.responseText); },
				failure : function(o) { YAHOO.vw.wait.hide(); }
			}
			var url="/vendor/event/index.php?action=vote&event_id="+event_id+"&item_pkid="+item_pkid;
			var conn=YAHOO.util.Connect.asyncRequest("GET", url, callback);
		}
	}
	function show_mem_vote_info(event_id,item_pkid) {
		YAHOO.vw.wait = new YAHOO.widget.Panel("wait",
		{ width: "350px", fixedcenter: true, close: true, draggable: false, zindex:4, modal: true, visible: false } );
		YAHOO.vw.wait.setHeader("請您填寫聯絡資料，方便中獎時寄送獎品");
		var body="<form name='infoForm' onSubmit='return chkInfoForm(this);'><input type='hidden' name='event_id' value='"+event_id+"'><input type='hidden' name='item_pkid' value='"+item_pkid+"'><div align='left'>所在地區：<select name='contact_area'><option value='north'>北部地區</option><option value='midland'>中部地區</option><option value='south'>南部地區</option></select>（電影票分區抽獎以此為據）<br/>獎品郵寄地址：<input type='text' name='contact_address' size='30' maxlength='50'><br/>聯絡電話：<input type='text' name='contact_phone' size='20' maxlength='30'></div><div align='right'><input type='submit' value='確定送出'></div></form>";
		YAHOO.vw.wait.setBody(body);
		YAHOO.vw.wait.render(document.body);
		YAHOO.vw.wait.show();
	}
	function chkInfoForm(obj){
		if(!obj.contact_address.value) {
			alert('請您填寫獎品郵寄地址');
			obj.contact_address.focus();
			return false;
		} else if(!obj.contact_phone.value) {
			alert('請您填寫聯絡電話');
			obj.contact_phone.focus();
			return false;
		} else {
			var event_id=obj.event_id.value;
			var item_pkid=obj.item_pkid.value;
			//if(event_id==1) {
				//var contact_area=obj.contact_area.options[obj.contact_area.selectedIndex].value;
			//}
			var contact_area=obj.contact_area.options[obj.contact_area.selectedIndex].value;
			var contact_phone=obj.contact_phone.value;
			var contact_address=obj.contact_address.value;
			var callback = {
				success : function(o) { YAHOO.vw.wait.hide(); eval(o.responseText); },
				failure : function(o) { YAHOO.vw.wait.hide(); }
			}
			var url="/vendor/event/index.php?action=newmemvoteinfo";
			var post_var="event_id="+event_id;
		  post_var+="&item_pkid="+item_pkid;
			//if(event_id==1) {
		  	//post_var+="&contact_area="+contact_area;
			//}
		  post_var+="&contact_area="+contact_area;
			post_var+="&contact_phone="+contact_phone;
			post_var+="&contact_address="+contact_address;
			var conn=YAHOO.util.Connect.asyncRequest("POST", url, callback, post_var);
			return false;
		}
	}

