function vote(id, vote, current_user){
		//alert('vote, time');
		random_hash = Math.random();
		//alert(id);
		$('#vote').html('<img src="../images/load.gif" />');
		$.post("vote.php",{save:'true', random:random_hash, id:id, vote:vote, current_user:current_user},function(data){
			$('#vote').html(data);
		});

}

function start_it(id){
		random_hash = Math.random();
		$('#vote').html('<img src="../images/load.gif" />');
		$.post("vote.php",{save:'false', id:id, random:random_hash},function(data){
			$('#vote').html(data);
		});
}

function save_light(){
		var addtl;
		var msg;
		email=$('#email').val();
	if(email==''){
			$('#email_warning').text('Please enter an email address to continue!');
	}else{
		$('#save_button').html('<img src="../images/load.gif" />');
		addtl=$('#suggestions').val();
		$.post("vote_save.php",{addtl:addtl, email:email},function(data){
		$('#vote').html(data);
		$('#finish').css('display','block');
		});
		}
}

