﻿$(document).ready(function(){
	$("#votezz").click(function(){
		var cid=$("#voteID1").val();
		var voteId;
		$("input[@name='voteId4']").each(function(){
					if($(this).attr("checked")){
						voteId=$(this).val();
					}
		});
		//alert('vote.php?action=vote&cid='+cid);
		$.ajax({
						url: 'vote.php?action=vote&cid='+cid+'&voteId='+voteId, 
						type: 'POST',
						//dataType: 'html',
						//data: 'type=1&parentId='+$(this).val(),
						timeout: 2000,
						error: function(){
							alert("文档加载失败!");
						},
						success: function(msg){
						alert(msg);
						} 
					});
	});
});
